> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://murf.ai/api/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://murf.ai/api/docs/_mcp/server.

# Create transcription

POST https://in.api.murf.ai/v1/transcription/speech-to-text
Content-Type: multipart/form-data

Upload one audio file and transcribe it with Finch. Send finch_indic_1.0 to https://in.api.murf.ai and finch_global_1.0 to https://us-east.api.murf.ai. A model or language served by the other host returns 400 with redirect_url. Authenticate with the api-key header. xi-api-key, Authorization: Bearer, and the api_key query parameter also work; if more than one is sent, the query parameter is used, then the api-key or xi-api-key header, then Bearer. Prefer the api-key header. The query parameter puts the key in URLs and logs. POST /v1/transcription/upload calls this same handler; use this path. Without webhook, the call returns 200 with the transcript. If the job is still running after 20 seconds, the server sends the 200 headers and then a space every 10 seconds until the JSON is ready. A failure after those headers is a detail object in that same body. The synchronous wait stops at 600 seconds and the job keeps running; poll it with the transcription_id. With webhook=true the call returns 202, and Murf later POSTs the result to webhook_url. That POST is not signed. Set a hard-to-guess webhook_url. See the File transcription guide for the webhook body, retries, and polling.

Reference: https://murf.ai/api/docs/api-reference/speech-to-text/file

## Servers

- `https://in.api.murf.ai` (Finch-Indic (finch_indic_1.0))
- `https://us-east.api.murf.ai` (Finch-Global (finch_global_1.0))

## Request

### Headers

- `api-key` (string, optional) — Your Murf API key. xi-api-key, Authorization: Bearer, and the api_key query parameter also authenticate this call. If more than one is sent, the query parameter is used, then the api-key or xi-api-key header, then Bearer. Avoid the query parameter: the key is stored in URLs and access logs.

### Body (multipart/form-data)

This endpoint expects a multipart form containing a file.

- `file` (file, required) — Audio file. WAV, FLAC, or OGG (Vorbis or Opus). M4A, AAC, MP4, and WebM cannot be decoded. Stereo is mixed down to mono and the audio is resampled to 16 kHz. Maximum upload 1 GB. Maximum audio length 3600 seconds.
- `model` (enum, optional) — Required, unless model_id is sent. finch_indic_1.0 on in.api.murf.ai, or finch_global_1.0 on us-east.api.murf.ai.
- `model_id` (enum, optional) — Alias for model.
- `language_code` (string, optional) — A language tag for the model, such as hi or en_IN. Omit it, or send auto, to detect the language.
- `keyterms` (list of string, optional) — Phrases to boost. Repeat the form field once per phrase. There is no strength setting.
- `timestamps_granularity` (enum, optional) — word includes words. none omits words.
- `bvc` (boolean, optional) — Beta. true removes background voices before transcription. Adds about 3 to 4 minutes of processing per hour of audio. If the enhancement pool is busy, the file is transcribed without it. Included in the Speech to Text price.
- `zero_retention` (boolean, optional) — Workspace setting. A request cannot turn it off. When it is on, the audio file is not stored. The transcript remains available for 24 hours.
- `webhook` (boolean, optional) — Beta. true returns 202 and delivers the result to webhook_url.
- `webhook_url` (string, optional) — Required when webhook is true. Murf POSTs the result here. The request is not signed. Use a hard-to-guess URL.
- `webhook_metadata` (string, optional) — A JSON string. Returned unchanged on the webhook.

## Response

### 200

Transcript. After the early 200 headers on a long job, this body can instead be a detail error. Check for detail before reading text.

- `transcription_id` (string, optional)
- `language_code` (string, optional)
- `language_probability` (double, optional)
- `text` (string, optional) — Empty when the file contains no speech. That is a successful transcript.
- `audio_duration_secs` (double, optional)
- `words` (list of SpeechToTextWord, optional) — Omitted when timestamps_granularity is none.

### 202

Transcription started. The result is delivered to webhook_url.

- `message` (string, optional)
- `request_id` (string, optional)
- `transcription_id` (string, optional)

## Errors

### 400 Bad Request Error

Bad request. The model or language belongs on the other host (the body includes redirect_url), the file part has no filename (No file provided), the audio cannot be decoded (Unable to decode audio file), or the audio is longer than 3600 seconds.

- `any`

### 401 Unauthorized Error

Missing or invalid API key. The body detail is invalid_api_key.

- `any`

### 402 Payment Required Error

The account cannot be charged for this request.

- `any`

### 413 Content Too Large Error

The upload is larger than 1 GB.

- `any`

### 422 Unprocessable Entity Error

The request has no file form field. Returned before the API key is checked. The body is detail, an array whose first item has loc ["body", "file"] and msg "Field required".

- `any`

### 429 Too Many Requests Error

offline transcription capacity reached when the server already has 8 file jobs running, or concurrency_limit_reached from the account check. These are different errors.

- `any`

### 500 Internal Server Error

transcription_failed or internal_error. The body is detail with code, message, and transcription_id.

- `any`

### 503 Service Unavailable Error

billing_unavailable. Billing could not be reached.

- `any`

### 504 Gateway Timeout Error

processing_timeout. The job did not finish within the longer of 15 minutes and the audio length. The body is detail with code, message, and transcription_id.

- `any`

## Types

### SpeechToTextWord

- `text` (string, optional)
- `start` (double, optional) — Seconds from the start of the file.
- `end` (double, optional) — Seconds from the start of the file.
- `type` (enum, optional)
  - Allowed values: `word`, `spacing`

## Examples

### Example 1

**Request**

```json
{
  "file": "<file: string>"
}
```

**Response**

```json
{
  "transcription_id": "string",
  "language_code": "string",
  "language_probability": 1.1,
  "text": "string",
  "audio_duration_secs": 1.1,
  "words": [
    {
      "text": "string",
      "start": 1.1,
      "end": 1.1,
      "type": "word"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://in.api.murf.ai/v1/transcription/speech-to-text"

files = { "file": "open('string', 'rb')" }
payload = {
    "bvc": ,
    "keyterms": ,
    "language_code": ,
    "model": ,
    "model_id": ,
    "timestamps_granularity": ,
    "webhook": ,
    "webhook_metadata": ,
    "webhook_url": ,
    "zero_retention": 
}

response = requests.post(url, data=payload, files=files)

print(response.json())
```

```javascript
const url = 'https://in.api.murf.ai/v1/transcription/speech-to-text';
const form = new FormData();
form.append('bvc', '');
form.append('file', 'string');
form.append('keyterms', '');
form.append('language_code', '');
form.append('model', '');
form.append('model_id', '');
form.append('timestamps_granularity', '');
form.append('webhook', '');
form.append('webhook_metadata', '');
form.append('webhook_url', '');
form.append('zero_retention', '');

const options = {method: 'POST'};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://in.api.murf.ai/v1/transcription/speech-to-text"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://in.api.murf.ai/v1/transcription/speech-to-text")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://in.api.murf.ai/v1/transcription/speech-to-text")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://in.api.murf.ai/v1/transcription/speech-to-text', [
  'multipart' => [
    [
        'name' => 'file',
        'filename' => 'string',
        'contents' => null
    ]
  ]
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://in.api.murf.ai/v1/transcription/speech-to-text");
var request = new RestRequest(Method.POST);
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation
let parameters = [
  [
    "name": "bvc",
    "value": 
  ],
  [
    "name": "file",
    "fileName": "string"
  ],
  [
    "name": "keyterms",
    "value": 
  ],
  [
    "name": "language_code",
    "value": 
  ],
  [
    "name": "model",
    "value": 
  ],
  [
    "name": "model_id",
    "value": 
  ],
  [
    "name": "timestamps_granularity",
    "value": 
  ],
  [
    "name": "webhook",
    "value": 
  ],
  [
    "name": "webhook_metadata",
    "value": 
  ],
  [
    "name": "webhook_url",
    "value": 
  ],
  [
    "name": "zero_retention",
    "value": 
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://in.api.murf.ai/v1/transcription/speech-to-text")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Example 2

**Request**

```json
{
  "file": "<file: string>"
}
```

**Response**

```json
{
  "transcription_id": "string",
  "message": "transcription_started",
  "request_id": "string"
}
```

**SDK Code**

```python
import requests

url = "https://in.api.murf.ai/v1/transcription/speech-to-text"

files = { "file": "open('string', 'rb')" }
payload = {
    "bvc": ,
    "keyterms": ,
    "language_code": ,
    "model": ,
    "model_id": ,
    "timestamps_granularity": ,
    "webhook": ,
    "webhook_metadata": ,
    "webhook_url": ,
    "zero_retention": 
}

response = requests.post(url, data=payload, files=files)

print(response.json())
```

```javascript
const url = 'https://in.api.murf.ai/v1/transcription/speech-to-text';
const form = new FormData();
form.append('bvc', '');
form.append('file', 'string');
form.append('keyterms', '');
form.append('language_code', '');
form.append('model', '');
form.append('model_id', '');
form.append('timestamps_granularity', '');
form.append('webhook', '');
form.append('webhook_metadata', '');
form.append('webhook_url', '');
form.append('zero_retention', '');

const options = {method: 'POST'};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://in.api.murf.ai/v1/transcription/speech-to-text"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://in.api.murf.ai/v1/transcription/speech-to-text")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://in.api.murf.ai/v1/transcription/speech-to-text")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://in.api.murf.ai/v1/transcription/speech-to-text', [
  'multipart' => [
    [
        'name' => 'file',
        'filename' => 'string',
        'contents' => null
    ]
  ]
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://in.api.murf.ai/v1/transcription/speech-to-text");
var request = new RestRequest(Method.POST);
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bvc\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"keyterms\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"language_code\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"timestamps_granularity\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_metadata\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_url\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"zero_retention\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation
let parameters = [
  [
    "name": "bvc",
    "value": 
  ],
  [
    "name": "file",
    "fileName": "string"
  ],
  [
    "name": "keyterms",
    "value": 
  ],
  [
    "name": "language_code",
    "value": 
  ],
  [
    "name": "model",
    "value": 
  ],
  [
    "name": "model_id",
    "value": 
  ],
  [
    "name": "timestamps_granularity",
    "value": 
  ],
  [
    "name": "webhook",
    "value": 
  ],
  [
    "name": "webhook_metadata",
    "value": 
  ],
  [
    "name": "webhook_url",
    "value": 
  ],
  [
    "name": "zero_retention",
    "value": 
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://in.api.murf.ai/v1/transcription/speech-to-text")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```