Create project
POST https://api.elevenlabs.io/v1/dubbing/project Content-Type: multipart/form-data
Create a dubbing project from an uploaded file (file) or a source URL (source_url).
Returns as soon as the project record exists, before the source has been fetched: the project starts queued and reaches ready once its source has been transcribed. Add a language target to it for each language you want, or pass target_language to queue the first one here.
Creating a project incurs a minimum charge of one language: you are charged for at least one language's dubbing when the project is created, before any output exists. This charge prepays the first language target — the first target you add, or the one queued via target_language, consumes it — and each additional language is charged separately.
Preparation can take minutes on a long source, so we recommend passing webhook_ids to be notified when the project turns ready or failed, rather than polling for it.
Reference: https://elevenlabs.io/docs/api-reference/dubbing/create-project
Servers
Section titled “Servers”https://api.elevenlabs.io(Production, default)https://api.us.elevenlabs.io(Production US)https://api.eu.residency.elevenlabs.io(Production EU)https://api.in.residency.elevenlabs.io(Production India)https://api.sg.residency.elevenlabs.io(Production Singapore)
Request
Section titled “Request”Body (multipart/form-data)
Section titled “Body (multipart/form-data)”This endpoint expects a multipart form with multiple files.
file(file, optional) — The source media file to dub: an audio or video file of at most 3 GiB. Provide this orsource_url, not both.source_url(string, optional) — Public HTTP(S) URL the source media is fetched from server-side, subject to the same size and format limits as an upload. Provide this orfile, not both.reference(string, optional) — Optional free-form string (at most 500 characters) to identify the project on your end. Stored and echoed back verbatim; it does not affect the dub.source_language(string, optional) — BCP-47 language tag of the source media; must be a language the transcription model supports. Any region or script subtag is ignored, since transcription is per-language. Omit to auto-detect.model_id(V1DubbingProjectPostRequestBodyContentMultipartFormDataSchemaModelId, optional) — Dubbing model (dubbing_v1ordubbing_v2) every language target of this project is dubbed with. Defaults todubbing_v2. Fixed at create time — the source is prepared for this model, so neither the project nor an individual target can change it later.keyterms(list of string, optional) — Key terms to bias transcription and translation toward (for example, product or brand names). At most 1,000 terms; each term at most 50 characters and 5 words; the characters<>{}[]\are not allowed. Terms are trimmed and deduplicated. Repeat the field once per term, or pass a single JSON array.webhook_ids(list of string, optional) — IDs of workspace webhooks to notify as this project progresses — the alternative to polling, and what we recommend. Each receives adubbing_project_readyordubbing_project_failedevent for the project, and adubbing_language_completedordubbing_language_failedevent for every language under it;dubbing_language_completedcarries the output download URLs. At most 3 IDs, each already configured in your workspace — see Webhooks for how to create one and verify its signature. Repeat the field once per ID, or pass a single JSON array or comma-separated string. Delivery is best-effort and can repeat, so we recommend handling events idempotently.target_language(string, optional) — Optional shortcut: also create a language target in this BCP-47 language, queued to start once the project is ready — equivalent to creating the project and then creating one language target. Must be one of the languages the dubbing model supports, and a region-qualified tag must be one of the supported dialects. This is the first language target, so it consumes the project's minimum charge rather than adding to it. Its ID is returned inlanguage_ids.transcript(file, optional) — Enterprise only. Optional JSON transcript to use instead of transcribing the source: a{"segments": [...]}document, at most 20,000 segments and 4 MiB. See Bring your own transcript for the segment fields and their constraints.source_languageis required whenever a transcript is provided. If any segment carries atranslation,target_languageis required and every segment must carry one; those translations seed the target created viatarget_language, which then skips machine translation.
Response
Section titled “Response”Successful Response
project_id(string, required) — Unique identifier of the dubbing project.status(enum, required) — Lifecycle status of the project:queuedbefore the source is picked up,preparingwhile it is transcribed,readyonce transcription is done and language targets can start, orfailed. A project is never reported asprocessing— that value belongs to language targets.- Allowed values:
queued,preparing,processing,ready,failed
- Allowed values:
revision(integer, required) — Monotonic counter incremented whenever the source transcript is edited (segment add/edit/delete).created_at(string, required) — When the project was created.updated_at(string, required) — When the project was last updated.reference(string, optional, nullable) — The free-form string you supplied asreferencewhen creating the project, or null if you supplied none.source_language(string, optional, nullable) — BCP-47 language tag of the source media (null if auto-detected).model_id(string, optional, nullable) — Dubbing model every language target of this project is dubbed with. Fixed at create time and not selectable per language.media(DubbingSourceMediaInfo, optional, nullable) — Source media metadata, populated once the source has been fetched and decoded (shortly after create, before the project isready); null until then.language_ids(list of string, optional, default: []) — Identifiers of the language targets under this project. Populated when a single project is fetched, and on create whentarget_languagecreates one. Always empty in list responses — list the project's language targets instead.webhook_ids(list of string, optional, default: []) — IDs of the workspace webhooks notified as this project and its languages reachready,completed, orfailed.error(DubbingError, optional, nullable) — Why the project failed; null unlessstatusisfailed. Also null for the few projects that failed before failure reporting was introduced.warnings(list of VoicesNotPermittedWarning, optional) — Non-fatal conditions raised while preparing the source, empty when there are none. Reflects the latest preparation. Conditions raised while dubbing a particular language are reported on that language instead.
Errors
Section titled “Errors”422 Unprocessable Entity Error
Section titled “422 Unprocessable Entity Error”Validation Error
detail(list of ValidationError, optional)
DubbingSourceMediaInfo
Section titled “DubbingSourceMediaInfo”Metadata about the project's source media.
filename(string, optional, nullable) — Original filename of the uploaded source media (null for URL sources).duration_s(double, optional, nullable) — Duration of the source media, in seconds.has_video(boolean, optional, nullable) — Whether the source media contains a video stream.mime_type(string, optional, nullable) — MIME type of the uploaded source media (null for URL sources).
DubbingError
Section titled “DubbingError”message_type("error", required)error(string, required)
VoicesNotPermittedWarning
Section titled “VoicesNotPermittedWarning”type("voices_not_permitted", required) — Identifies this warning; branch on it to read the other fields.speaker_ids(list of string, required) — Speakers whose voices were not permitted for cloning. The dub used a replacement voice for each of them; all other speakers are unaffected.message(string, required) — Human-readable description of the warning, for display. The wording may change at any time, so we recommend branching ontypeinstead.
ValidationError
Section titled “ValidationError”loc(list of ValidationErrorLocItems, required)msg(string, required)type(string, required)
ValidationErrorLocItems
Section titled “ValidationErrorLocItems”Examples
Section titled “Examples”Request
{
"file": "<file: <file1>>",
"reference": "Q3 marketing video",
"source_language": "en",
"source_url": "https://example.com/promo.mp4",
"transcript": "<file: <file1>>"
}Response
{
"project_id": "proj_1601kwkyxp0hfzvtmyxwqxx6mcy3",
"status": "queued",
"revision": 0,
"created_at": "2026-07-03T10:15:30Z",
"updated_at": "2026-07-03T10:15:30Z",
"reference": "Q3 marketing video",
"source_language": "en",
"model_id": "dubbing_v2",
"language_ids": [],
"webhook_ids": [],
"warnings": []
}SDK Code
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
async function main() {
const client = new ElevenLabsClient();
await client.dubbing.project.create({});
}
main();
from elevenlabs import ElevenLabs
client = ElevenLabs()
client.dubbing.project.create(
file="example_file",
transcript="example_transcript",
)
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.elevenlabs.io/v1/dubbing/project"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\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=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nQ3 marketing video\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_language\"\r\n\r\nen\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_url\"\r\n\r\nhttps://example.com/promo.mp4\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"target_language\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transcript\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_ids\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "multipart/form-data; boundary=---011000010111000001101001")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.elevenlabs.io/v1/dubbing/project")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'multipart/form-data; boundary=---011000010111000001101001'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\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=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nQ3 marketing video\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_language\"\r\n\r\nen\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_url\"\r\n\r\nhttps://example.com/promo.mp4\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"target_language\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transcript\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_ids\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
response = http.request(request)
puts response.read_bodyimport com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
HttpResponse<String> response = Unirest.post("https://api.elevenlabs.io/v1/dubbing/project")
.header("Content-Type", "multipart/form-data; boundary=---011000010111000001101001")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\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=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nQ3 marketing video\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_language\"\r\n\r\nen\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_url\"\r\n\r\nhttps://example.com/promo.mp4\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"target_language\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transcript\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_ids\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
.asString();<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://api.elevenlabs.io/v1/dubbing/project', [
'multipart' => [
[
'name' => 'file',
'filename' => '<file1>',
'contents' => null
],
[
'name' => 'reference',
'contents' => 'Q3 marketing video'
],
[
'name' => 'source_language',
'contents' => 'en'
],
[
'name' => 'source_url',
'contents' => 'https://example.com/promo.mp4'
],
[
'name' => 'transcript',
'filename' => '<file1>',
'contents' => null
]
]
]);
echo $response->getBody();using RestSharp;
var client = new RestClient("https://api.elevenlabs.io/v1/dubbing/project");
var request = new RestRequest(Method.POST);
request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\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=\"model_id\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nQ3 marketing video\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_language\"\r\n\r\nen\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"source_url\"\r\n\r\nhttps://example.com/promo.mp4\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"target_language\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transcript\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"webhook_ids\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);import Foundation
let headers = ["Content-Type": "multipart/form-data; boundary=---011000010111000001101001"]
let parameters = [
[
"name": "file",
"fileName": "<file1>"
],
[
"name": "keyterms",
"value":
],
[
"name": "model_id",
"value":
],
[
"name": "reference",
"value": "Q3 marketing video"
],
[
"name": "source_language",
"value": "en"
],
[
"name": "source_url",
"value": "https://example.com/promo.mp4"
],
[
"name": "target_language",
"value":
],
[
"name": "transcript",
"fileName": "<file1>"
],
[
"name": "webhook_ids",
"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://api.elevenlabs.io/v1/dubbing/project")! 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()