Video Dubbing API
Download OpenAPI DocumentUpload a video, dub it into other languages with matched voices, and download the result.
Dub, subtitle or transcribe videos: upload the source, start a job, poll it, then collect the result. New here? Read Video Dubbing for the whole flow, then make your first call with the Quickstart.
Every request
Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.
Jobs run in the background, so every call returns straight away. Endpoints that charge credits say so on their page, with the current price; without enough credits they return 402 and nothing is created. See Credits.
Uploads
Every job starts from an upload. Send files up to about 100 MB with Upload files. For larger files, use a multipart upload: start it, PUT each part to its presigned URL, then complete it. Files already in your organization's assets can be used without uploading them again.
- POST/v1/galaxy/translate-video/upload
- POST/v1/galaxy/translate-video/upload/multipart/init
- POST/v1/galaxy/translate-video/upload/multipart/complete
- POST/v1/galaxy/translate-video/upload/multipart/abort
- POST/v1/galaxy/translate-video/upload/from-assets
- GET/v1/galaxy/translate-video/upload
- GET/v1/galaxy/translate-video/upload/{id}
- POST/v1/galaxy/translate-video/upload/multipart/part-urls
Upload files
Start a multipart upload
Complete a multipart upload
Abort a multipart upload
Upload from your assets
List uploads
Get an upload
Refresh multipart part URLs
Jobs
A job does the work: dubbing, subtitles or a translated transcript. Start it with your uploads and languages, then poll it until it finishes. Jobs run in the background, so every call returns straight away.
- POST/v1/galaxy/translate-video/process-log/run
- GET/v1/galaxy/translate-video/process-log/run/{id}
- GET/v1/galaxy/translate-video/process-log/{id}/status
- GET/v1/galaxy/translate-video/process-log
- POST/v1/galaxy/translate-video/process-log/{id}/add-languages
- POST/v1/galaxy/translate-video/process-log/{id}/human-validation
- POST/v1/galaxy/translate-video/process-log/{id}/retry
- PUT/v1/galaxy/translate-video/process-log/{id}
Start a job
Start dubbing, subtitling or translating the subtitles of an uploaded file. Choose the processType, pass the upload's id and fileKey in files, and set sourceLanguage and targetLanguages using BCP-47 codes from List languages. A job translates into one target language; add more with Add target languages. Options such as automatic export and voice approval go in inputData. If you leave out tmId, the translation memory for that language pair is used, or created. Credits are charged when the job starts: without enough, the API returns 402 and nothing starts. Returns a jobId straight away.
Permission: translate_video.process_log:create. An API key acts with the role of the member who created it.
Credits: Charged when the job starts: the measured length of the input at the rate of its processType (dubbing with more than one speaker costs more). Refunded in full if the job fails on our side; kept if you cancel it.
| Rate | What it covers | Price |
|---|---|---|
| Video Dubbing | Dubbing a video, with or without instant voice cloning. Per minute of source video; a multi-speaker run is charged a third more, since each speaker is separately transcribed, voice-matched and synthesized. | 300 credits per minute |
| Video → Subtitle | Subtitling a video. Charged per minute of source video. | 100 credits per minute |
| Subtitle → Transcript Translation | Translating an uploaded subtitle file. Charged per minute of subtitle timeline (the file carries its own timings — there is no source video). | 60 credits per minute |
Bodyrequiredapplication/json
What the job does. VIDEO_TO_SPEECH_TRANSLATION: dub a video or audio file into the target language. VIDEO_TO_SUBTITLE: transcribe a video or audio file and make subtitles. SUBTITLE_TO_TRANSCRIPT_TRANSLATION: translate a subtitle file (.srt or .vtt), keeping its timing. VIDEO_TO_TRANSCRIPT is accepted by validation but cannot be started yet (400).
The file to process, as returned by an upload: its id and fileKey, ideally with mediaType and extension. Usually a single file.
Show child attributes
The id of the upload, from Upload files or Complete a multipart upload.
The fileKey of the same upload: where the file is stored. Send it exactly as the upload returned it.
Optional. An https:// URL of the same file, used when it cannot be read through fileKey. Leave it out for files you uploaded.
Optional SHA-256 of the file, as 64 hex characters. Recorded with the job; the file is not checked against it at present.
Kind of file, from the upload's mediaType. Send it: the job is priced by measuring the first video or audio file (or, without one, the first file).
File extension without the dot, from the upload's extension, such as mp4, mov, mp3, wav, srt or vtt. If left out, it is read from fileKey.
Language spoken (or written) in the file: a BCP-47 code from List languages.
Language to translate into: a BCP-47 code from List languages. Send one. The job translates only the first language in the list; any others are recorded on the job but not translated, and cannot be added later because they are already on it. Add more languages with Add target languages.
A name for the job, shown in List jobs. Defaults to the job ID.
Ignored. Whether the video is re-encoded is set by your organization's settings, whatever you send.
Your own data to attach to the job, such as an ID from your system. It is stored with the job files but is not returned by any endpoint.
Options for the job. All optional; the keys listed here are the ones the job reads. Each key notes the process types it applies to. files, optimize and compress are set by the server and cannot be overridden.
Show child attributes
Dubbing only. Set to true to export a finished video for every target language as soon as the dub succeeds: 1080p, no lip-sync, no burned-in subtitles. Fetch the videos with Get auto-exported videos. Plain exports are free.
Dubbing only. Set to true to run the QE report on the translated transcript as soon as the dub succeeds, so you do not have to start it yourself. Needs the aiqe:create permission (403 otherwise, before anything is charged) and is charged on its own when it starts, per source word. What became of it is in the job's metadata.autoQe.
With autoQe: which transcript segments the QE report checks.
Dubbing only. Who answers the voice review after the speakers are found. ask: the job pauses (awaitingHumanValidation: true) until you call Approve speaker voices. clone_all: every speaker is cloned from their own voice and the job carries on without pausing; with more than 4 speakers it pauses for approval instead. catalog_auto: nobody is cloned and the job carries on without pausing. Each speaker then needs a catalog voice in speakers under the target language, or the job fails when it generates speech. An unknown value counts as ask.
Dubbing only. Whether you mean to clone the speakers (instant_clone) or use catalog voices (standard). It is recorded on the job and reported as usesInstantClone until the voices are approved. It does not pick voices by itself: the voices you approve, or voicePolicy, decide who is cloned.
Dubbing only. Voices for each speaker, keyed by speaker ID, then by BCP-47 code. Speaker IDs are assigned when the job detects the speakers, so you usually send voices with Approve speaker voices instead. When you do send this map, the job is priced for that many speakers from the start (dubbing with more than one speaker costs more).
How many people speak in the video, if you know. Speech recognition then looks for exactly that many. For dubbing it also sets the start price when speakers is not sent (dubbing with more than one speaker costs more). Leave it out to detect the number.
Dubbing and VIDEO_TO_SUBTITLE. Detect who speaks each line, so each speaker can get a voice of their own. A dubbing job turns it on itself once voices are approved.
Dubbing and VIDEO_TO_SUBTITLE. Tag each line with an emotion, such as happy or sad (otherwise neutral). Voices that support it then speak with that emotion.
Dubbing only. One voice for the whole video, for a single speaker: a voice ID from List cloned voices, List standard voices or List native voices. Once speakers are detected and approved, each speaker uses their own voice in speakers and this is only the fallback.
Dubbing only. Name of a catalog voice for the whole video, used when voiceId is not sent. It must support the target language.
Dubbing only. Which list voiceId or voiceName comes from: standard or native catalog voices, or instant-clone for a voice ID from List cloned voices.
Dubbing only. Fine-tuning for ElevenLabs voices; other voices ignore it.
Show child attributes
How steady the voice sounds from line to line. Lower values are more expressive.
How closely the speech keeps to the original voice.
How strongly the voice's speaking style is exaggerated.
Boost similarity to the original speaker.
VIDEO_TO_SUBTITLE and SUBTITLE_TO_TRANSCRIPT_TRANSLATION. The most characters a subtitle line may hold before it is split.
VIDEO_TO_SUBTITLE and SUBTITLE_TO_TRANSCRIPT_TRANSLATION. true re-splits subtitles to fit cpl. false keeps one subtitle per line on its original timing and only wraps long lines. Defaults to false for SUBTITLE_TO_TRANSCRIPT_TRANSLATION, so the translated file lines up cue for cue with yours, and true otherwise.
ID of a translation memory in your organization to translate through. Leave it out to use the translation memory for this language pair, which is created if there is none.
Project to file this job under; omit for none. See List projects. Projects only group jobs; they do not change who can see them.
Length of the file in seconds, if you know it. The job is priced by the length we measure; this is used only if the file cannot be measured. Without either, the request fails with 400.
Responses
201The job was created, its credits charged, and it is queued. Poll it with Get a job.
ID of the new job. Use it to poll the job or fetch results.
Always SCHEDULED: the job is waiting to start.
The processType you sent.
400Nothing was started or charged. A field failed validation, or: - `No Conductor workflow for process type VIDEO_TO_TRANSCRIPT`: this `processType` cannot be started yet. - `Select a translation memory for this translation.`: no `tmId` was sent and none could be found or created for the language pair. - `We couldn't read this file's length`: an input's duration could not be measured and no `durationSeconds` was sent, so the job cannot be priced. A plain-text script gets `…: a plain-text script has no timings. Upload it as an .srt or .vtt file.`
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
402Not enough credits for the measured duration, or your organization owes credits. Nothing was created.
HTTP status code.
Always InsufficientCredits.
What happened, in plain words.
Credits this request needs.
Credits your organization can spend now.
Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.
403`inputData.autoQe` was sent by a member without the `aiqe:create` permission (`Auto QE report needs permission to run AI quality evaluations. …`). Nothing was created or charged.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
404`projectId` is not a project in your organization (`Project not found`).
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
413The request body is larger than 25 MB.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500The job could not be set up or started, for example because `tmId` is not a translation memory you can use. If it was already charged, the job is marked failed and its credits are refunded.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/galaxy/translate-video/process-log/run' \
--request POST \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"processType": "VIDEO_TO_SPEECH_TRANSLATION",
"files": [
{
"id": "4d2a7f10-8c3b-4e9a-b1f5-2e6d9c0a7b38",
"fileKey": "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/uploads/4d2a7f10-8c3b-4e9a-b1f5-2e6d9c0a7b38/launch.mp4",
"mediaType": "video",
"extension": "mp4"
}
],
"sourceLanguage": "en-US",
"targetLanguages": [
"hi-IN"
],
"processName": "Product launch video",
"compress": false,
"metadata": {
"externalId": "cms-48213"
},
"inputData": {
"autoExport": true,
"voicePolicy": "clone_all",
"speakerCount": 2
},
"tmId": "b7d1e9a2-4c3f-4a8b-9e6d-1f2a3b4c5d6e",
"projectId": "7e57d004-2b97-4e7a-b45f-5387367791cd",
"durationSeconds": 92.4
}'{
"jobId": "9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
"status": "SCHEDULED",
"processType": "VIDEO_TO_SPEECH_TRANSLATION"
}Get a job
Get detailed progress
List jobs
Add target languages
Approve speaker voices
Retry a failed job
Rename a job
Results
Once a job has finished, read its output, render the dubbed video for each language, and download files and subtitles.
- GET/v1/galaxy/translate-video/process-log/{id}/result
- POST/v1/galaxy/translate-video/process-log/export-video
- POST/v1/galaxy/translate-video/process-log/presigned-export-url
- GET/v1/galaxy/translate-video/process-log/{id}/exports
- GET/v1/galaxy/translate-video/process-log/{id}/subtitle-download
- GET/v1/galaxy/translate-video/process-log/export-lip-sync
- POST/v1/galaxy/translate-video/process-log/{id}/save-to-drive
Get the result
Export a video
Get a download URL
Get auto-exported videos
Get subtitles
List lip-sync models
Save an export to assets
Voices
The voices a dub can use: the standard and native catalogs, and the voices cloned for your organization.
- GET/v1/galaxy/translate-video/voice
- GET/v1/galaxy/translate-video/voice/accents
- GET/v1/galaxy/translate-video/voice/standard
- GET/v1/galaxy/translate-video/voice/standard/{id}
- GET/v1/galaxy/translate-video/voice/native
- GET/v1/galaxy/translate-video/voice/native/{id}
- GET/v1/galaxy/translate-video/voice/cloned
- GET/v1/galaxy/translate-video/voice/cloned/{id}
- PUT/v1/galaxy/translate-video/voice/cloned/{id}
- POST/v1/galaxy/translate-video/sync-api/text-to-speech
List voices
List accents
List standard voices
Get a standard voice
List native voices
Get a native voice
List cloned voices
Get a cloned voice
Update a cloned voice
Generate speech
Pronunciation dictionaries
Rules that tell generated voices how to say a word everywhere in your organization, such as a brand or product name.
List pronunciation rules
Create a pronunciation rule
Languages
Languages are identified by keys such as english_united_states, not ISO codes. List languages returns the keys a job accepts.