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

# Create a dubbing project from an uploaded video asset

POST https://api.synthesia.io/v2/dubbing
Content-Type: application/json

Use this endpoint to create a dubbing project from an uploaded video asset. Currently only S3 signed URLs are supported (using other URLs will return a `501` error)

Reference: https://developers.synthesia.io/docs/video-api-reference/dubbing/create-a-dubbing-project-from-an-uploaded-video-asset

## Authentication

- `Authorization` header (required) — API Key authentication via header

## Request

### Body (application/json)

This endpoint expects a Dubbing_createADubbingProjectFromAnUploadedVideoAsset_Request.

- `Dubbing_createADubbingProjectFromAnUploadedVideoAsset_Request`
  - Create from uploaded asset: CreateDubbingProjectApiRequestFromSourceAssetId
  - Create from video URL: DubbingCreateADubbingProjectFromAnUploadedVideoAssetRequest1

## Response

### 202

Accepted - Dubbing project created successfully.

- `createdImportedAsset` (_ImportedAssetId, required)

## Errors

### 400 Bad Request Error

Bad Request - Failed to create dubbing project. This can occur when: - The request validation fails - The source asset video URL is broken or inaccessible - There are errors creating the dubbed videos

- `CreateADubbingProjectFromAnUploadedVideoAssetRequestBadRequestError`
  - CreateDubbingProjectApiResponseFail: CreateDubbingProjectApiResponseFail
  - CreateADubbingProjectFromAnUploadedVideoAssetRequestBadRequestError1

### 403 Forbidden Error

Forbidden - Wrong API key.

- `error` (string, required)
- `context` (string, optional)

### 404 Not Found Error

Asset ID was not found.

- `error` (string, required)
- `context` (string, optional)

### 501 Not Implemented Error

Not Implemented

- `error` (string, optional)

## Types

### CreateDubbingProjectApiRequestFromSourceAssetId

- `title` (string, required) — The title of the dubbed video to create.
- `targetLanguages` (list of enum, required) — The languages to dub the source media asset to.
  - Allowed values: `af`, `sq`, `am`, `ar`, `ar-DZ`, `ar-BH`, `ar-EG`, `ar-IQ`, `ar-JO`, `ar-KW`, `ar-LY`, `ar-MA`, `ar-QA`, `ar-SA`, `ar-SY`, `ar-TN`, `ar-AE`, `ar-YE`, `hy`, `as`, `az`, `eu`, `bn`, `bs`, `bg`, `ca`, `zh`, `zh-CN`, `zh-HK`, `zh-TW`, `hr`, `cs`, `da`, `nl`, `nl-BE`, `nl-NL`, `en`, `en-AU`, `en-CA`, `en-GB`, `en-HK`, `en-IN`, `en-IE`, `en-KE`, `en-MX`, `en-NZ`, `en-NG`, `en-PH`, `en-SG`, `en-ZA`, `en-TZ`, `en-US`, `et`, `fil`, `fi`, `fr`, `fr-BE`, `fr-CA`, `fr-FR`, `fr-CH`, `gl`, `ka`, `de`, `de-AT`, `de-DE`, `de-CH`, `el`, `gu`, `he`, `hi`, `hu`, `is`, `id`, `ga`, `it`, `ja`, `jw`, `kn`, `kk`, `km`, `ko`, `lo`, `lv`, `lt`, `mk`, `ms`, `ml`, `mt`, `mr`, `mn`, `ne`, `no`, `nb`, `nn`, `or`, `pa`, `ps`, `fa`, `pl`, `pt`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sr`, `si`, `sk`, `sl`, `so`, `es`, `es-AR`, `es-BO`, `es-CL`, `es-CO`, `es-CR`, `es-CU`, `es-DO`, `es-EC`, `es-SV`, `es-GQ`, `es-GT`, `es-HN`, `es-LA`, `es-MX`, `es-NI`, `es-PA`, `es-PY`, `es-PE`, `es-PR`, `es-ES`, `es-US`, `es-UY`, `es-VE`, `su`, `sw`, `sv`, `ta`, `ta-IN`, `ta-SG`, `ta-LK`, `te`, `th`, `tr`, `uk`, `ur`, `uz`, `vi`, `cy`, `zu`
- `sourceAssetId` (string, required) — The ID of the source media asset to create the dubbed video from.
- `sourceLanguage` (enum, required) — The language of the source media asset.
  - Allowed values: `af`, `sq`, `am`, `ar`, `ar-DZ`, `ar-BH`, `ar-EG`, `ar-IQ`, `ar-JO`, `ar-KW`, `ar-LY`, `ar-MA`, `ar-QA`, `ar-SA`, `ar-SY`, `ar-TN`, `ar-AE`, `ar-YE`, `hy`, `as`, `az`, `ba`, `eu`, `be`, `bn`, `bs`, `br`, `bg`, `my`, `ca`, `zh`, `zh-CN`, `zh-HK`, `zh-TW`, `hr`, `cs`, `da`, `nl`, `nl-BE`, `nl-NL`, `en`, `en-AU`, `en-CA`, `en-GB`, `en-HK`, `en-IN`, `en-IE`, `en-KE`, `en-MX`, `en-NZ`, `en-NG`, `en-PH`, `en-SG`, `en-ZA`, `en-TZ`, `en-US`, `et`, `fo`, `fi`, `fr`, `fr-BE`, `fr-CA`, `fr-FR`, `fr-CH`, `gl`, `ka`, `de`, `de-AT`, `de-DE`, `de-CH`, `el`, `gu`, `ht`, `ha`, `haw`, `he`, `hi`, `hu`, `is`, `id`, `it`, `ja`, `jw`, `kn`, `kk`, `km`, `ko`, `lo`, `la`, `lv`, `ln`, `lt`, `lb`, `mk`, `mg`, `ms`, `ml`, `mt`, `mi`, `mr`, `mn`, `ne`, `no`, `nb`, `nn`, `oc`, `pa`, `ps`, `fa`, `pl`, `pt`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sa`, `sr`, `sn`, `sd`, `si`, `sk`, `sl`, `so`, `es`, `es-AR`, `es-BO`, `es-CL`, `es-CO`, `es-CR`, `es-CU`, `es-DO`, `es-EC`, `es-SV`, `es-GQ`, `es-GT`, `es-HN`, `es-LA`, `es-MX`, `es-NI`, `es-PA`, `es-PY`, `es-PE`, `es-PR`, `es-ES`, `es-US`, `es-UY`, `es-VE`, `su`, `sw`, `sv`, `tl`, `tg`, `ta`, `ta-IN`, `ta-SG`, `ta-LK`, `tt`, `te`, `th`, `bo`, `tr`, `tk`, `uk`, `ur`, `uz`, `vi`, `cy`, `yi`, `yo`
- `lipsyncEnabled` (boolean, optional, default: false) — Whether to enable lipsync for the dubbed video.
- `burnedInCaptionsEnabled` (boolean, optional, default: false) — Whether to burn captions into the dubbed video. Applies to every dubbed video created by this request. The `captions.srt` and `captions.vtt` files are still returned either way.
- `videoDuration` (enum, optional, default: adaptive) — The duration of the video to create.
  - Allowed values: `adaptive`, `original`
- `visibility` (enum, optional, default: private) — The visibility of the dubbed video.
  - Allowed values: `private`, `public`

### DubbingCreateADubbingProjectFromAnUploadedVideoAssetRequest1

Create a dubbing project directly from a video URL. Only S3 signed URLs are supported (using other URLs will return a 501 error).

- `title` (string, required) — The title of the dubbed video to create.
- `targetLanguages` (list of enum, required) — The languages to dub the source media asset to.
  - Allowed values: `af`, `sq`, `am`, `ar`, `ar-DZ`, `ar-BH`, `ar-EG`, `ar-IQ`, `ar-JO`, `ar-KW`, `ar-LY`, `ar-MA`, `ar-QA`, `ar-SA`, `ar-SY`, `ar-TN`, `ar-AE`, `ar-YE`, `hy`, `as`, `az`, `eu`, `bn`, `bs`, `bg`, `ca`, `zh`, `zh-CN`, `zh-HK`, `zh-TW`, `hr`, `cs`, `da`, `nl`, `nl-BE`, `nl-NL`, `en`, `en-AU`, `en-CA`, `en-GB`, `en-HK`, `en-IN`, `en-IE`, `en-KE`, `en-MX`, `en-NZ`, `en-NG`, `en-PH`, `en-SG`, `en-ZA`, `en-TZ`, `en-US`, `et`, `fil`, `fi`, `fr`, `fr-BE`, `fr-CA`, `fr-FR`, `fr-CH`, `gl`, `ka`, `de`, `de-AT`, `de-DE`, `de-CH`, `el`, `gu`, `he`, `hi`, `hu`, `is`, `id`, `ga`, `it`, `ja`, `jw`, `kn`, `kk`, `km`, `ko`, `lo`, `lv`, `lt`, `mk`, `ms`, `ml`, `mt`, `mr`, `mn`, `ne`, `no`, `nb`, `nn`, `or`, `pa`, `ps`, `fa`, `pl`, `pt`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sr`, `si`, `sk`, `sl`, `so`, `es`, `es-AR`, `es-BO`, `es-CL`, `es-CO`, `es-CR`, `es-CU`, `es-DO`, `es-EC`, `es-SV`, `es-GQ`, `es-GT`, `es-HN`, `es-LA`, `es-MX`, `es-NI`, `es-PA`, `es-PY`, `es-PE`, `es-PR`, `es-ES`, `es-US`, `es-UY`, `es-VE`, `su`, `sw`, `sv`, `ta`, `ta-IN`, `ta-SG`, `ta-LK`, `te`, `th`, `tr`, `uk`, `ur`, `uz`, `vi`, `cy`, `zu`
- `sourceVideoUrl` (string, required) — The public URL where the video to dub is available. At the moment only supporting s3 signed urls
- `lipsyncEnabled` (boolean, optional, default: false) — Whether to enable lipsync for the dubbed video.
- `burnedInCaptionsEnabled` (boolean, optional, default: false) — Whether to burn captions into the dubbed video. Applies to every dubbed video created by this request. The `captions.srt` and `captions.vtt` files are still returned either way.
- `videoDuration` (enum, optional, default: adaptive) — The duration of the video to create.
  - Allowed values: `adaptive`, `original`
- `visibility` (enum, optional, default: private) — The visibility of the dubbed video.
  - Allowed values: `private`, `public`
- `sourceLanguage` (enum, optional, nullable) — The language of the source media asset. If not specified, the language will be detected automatically.
  - Allowed values: `af`, `sq`, `am`, `ar`, `ar-DZ`, `ar-BH`, `ar-EG`, `ar-IQ`, `ar-JO`, `ar-KW`, `ar-LY`, `ar-MA`, `ar-QA`, `ar-SA`, `ar-SY`, `ar-TN`, `ar-AE`, `ar-YE`, `hy`, `as`, `az`, `ba`, `eu`, `be`, `bn`, `bs`, `br`, `bg`, `my`, `ca`, `zh`, `zh-CN`, `zh-HK`, `zh-TW`, `hr`, `cs`, `da`, `nl`, `nl-BE`, `nl-NL`, `en`, `en-AU`, `en-CA`, `en-GB`, `en-HK`, `en-IN`, `en-IE`, `en-KE`, `en-MX`, `en-NZ`, `en-NG`, `en-PH`, `en-SG`, `en-ZA`, `en-TZ`, `en-US`, `et`, `fo`, `fi`, `fr`, `fr-BE`, `fr-CA`, `fr-FR`, `fr-CH`, `gl`, `ka`, `de`, `de-AT`, `de-DE`, `de-CH`, `el`, `gu`, `ht`, `ha`, `haw`, `he`, `hi`, `hu`, `is`, `id`, `it`, `ja`, `jw`, `kn`, `kk`, `km`, `ko`, `lo`, `la`, `lv`, `ln`, `lt`, `lb`, `mk`, `mg`, `ms`, `ml`, `mt`, `mi`, `mr`, `mn`, `ne`, `no`, `nb`, `nn`, `oc`, `pa`, `ps`, `fa`, `pl`, `pt`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sa`, `sr`, `sn`, `sd`, `si`, `sk`, `sl`, `so`, `es`, `es-AR`, `es-BO`, `es-CL`, `es-CO`, `es-CR`, `es-CU`, `es-DO`, `es-EC`, `es-SV`, `es-GQ`, `es-GT`, `es-HN`, `es-LA`, `es-MX`, `es-NI`, `es-PA`, `es-PY`, `es-PE`, `es-PR`, `es-ES`, `es-US`, `es-UY`, `es-VE`, `su`, `sw`, `sv`, `tl`, `tg`, `ta`, `ta-IN`, `ta-SG`, `ta-LK`, `tt`, `te`, `th`, `bo`, `tr`, `tk`, `uk`, `ur`, `uz`, `vi`, `cy`, `yi`, `yo`

### _ImportedAssetId

- `id` (string, required)

### CreateDubbingProjectApiResponseFail

- `dubbedErrors` (list of DubbedVideosApiError, optional) — Errors related to the creation of the dubbed videos.

### CreateADubbingProjectFromAnUploadedVideoAssetRequestBadRequestError1

- `context` (string, optional)
- `error` (string, optional)

### DubbedVideosApiError

- `error` (string, optional, nullable) — The error type.
- `language` (string, optional, nullable) — The language of the error.

## Examples

**Request**

```json
{
  "sourceAssetId": "<uuid>",
  "sourceLanguage": "en",
  "targetLanguages": [
    "es-ES",
    "fr-FR"
  ],
  "title": "My dubbed video"
}
```

**Response**

```json
{
  "createdImportedAsset": {
    "id": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.synthesia.io/v2/dubbing"

payload = {
    "sourceAssetId": "<uuid>",
    "sourceLanguage": "en",
    "targetLanguages": ["es-ES", "fr-FR"],
    "title": "My dubbed video"
}
headers = {
    "Authorization": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.synthesia.io/v2/dubbing';
const options = {
  method: 'POST',
  headers: {Authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"sourceAssetId":"<uuid>","sourceLanguage":"en","targetLanguages":["es-ES","fr-FR"],"title":"My dubbed video"}'
};

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://api.synthesia.io/v2/dubbing"

	payload := strings.NewReader("{\n  \"sourceAssetId\": \"<uuid>\",\n  \"sourceLanguage\": \"en\",\n  \"targetLanguages\": [\n    \"es-ES\",\n    \"fr-FR\"\n  ],\n  \"title\": \"My dubbed video\"\n}")

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

	req.Header.Add("Authorization", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	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://api.synthesia.io/v2/dubbing")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"sourceAssetId\": \"<uuid>\",\n  \"sourceLanguage\": \"en\",\n  \"targetLanguages\": [\n    \"es-ES\",\n    \"fr-FR\"\n  ],\n  \"title\": \"My dubbed video\"\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://api.synthesia.io/v2/dubbing")
  .header("Authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"sourceAssetId\": \"<uuid>\",\n  \"sourceLanguage\": \"en\",\n  \"targetLanguages\": [\n    \"es-ES\",\n    \"fr-FR\"\n  ],\n  \"title\": \"My dubbed video\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.synthesia.io/v2/dubbing', [
  'body' => '{
  "sourceAssetId": "<uuid>",
  "sourceLanguage": "en",
  "targetLanguages": [
    "es-ES",
    "fr-FR"
  ],
  "title": "My dubbed video"
}',
  'headers' => [
    'Authorization' => '<apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.synthesia.io/v2/dubbing");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"sourceAssetId\": \"<uuid>\",\n  \"sourceLanguage\": \"en\",\n  \"targetLanguages\": [\n    \"es-ES\",\n    \"fr-FR\"\n  ],\n  \"title\": \"My dubbed video\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "sourceAssetId": "<uuid>",
  "sourceLanguage": "en",
  "targetLanguages": ["es-ES", "fr-FR"],
  "title": "My dubbed video"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.synthesia.io/v2/dubbing")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
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()
```