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
Get a job
Get detailed progress
List jobs
Add target languages
Add more target languages to a job. The whole list is checked first: if any language is invalid, nothing starts. Each accepted language runs as its own job, one at a time, once the original job has succeeded.
Permission: translate_video.process_log:create. An API key acts with the role of the member who created it.
Credits: Every language is charged when the request is accepted, for the original job's length: at the original job's rate, or at the subtitle-language rate when you add subtitles only. All languages are charged together, or none. Refunded if a language fails on our side.
| 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 |
| Add Subtitle Language | Adding a subtitle-only target language to an existing run. Charged per minute of source video, instead of the parent run's rate — no audio is synthesized. | 60 credits per minute |
Path Parameters
Job ID (jobId) returned by Start a job.
Bodyrequiredapplication/json
The languages to add, 1 to 20, no duplicates. Each runs as its own job, one after another, in this order.
Show child attributes
Language to add: a BCP-47 code from List languages. It must not be the source language or a language the job already has.
The voice for this language when diarization is not true: every speaker is dubbed with it. Falls back to defaultVoice.
Show child attributes
ID of the voice: a voice from List cloned voices, or a catalog voice from List standard voices or List native voices that supports the new language.
Name of a catalog voice, used when voiceId is not sent. With voiceType: instant-clone and no voiceId, the name of a new voice cloned from the speaker.
instant-clone to clone the speaker's own voice, or standard / native for a catalog voice from that list. Leave it out for a cloned voice ID or a standard voice.
Gender of the voice, such as male or female.
Accepted but ignored.
Voices for this language when diarization is true, keyed by speaker ID (the IDs in inputData.speakers of Get detailed progress). Falls back to defaultVoices. An empty object counts as sent and does not fall back.
Set to true to add the languages as translated subtitles only, with no dubbed speech; no voices are needed. Required for VIDEO_TO_SUBTITLE and SUBTITLE_TO_TRANSCRIPT_TRANSLATION jobs: without it, each language needs a voice.
Dubbing only. true: give each speaker their own voice with voices (or defaultVoices), which must not be empty. Otherwise one voice (or defaultVoice) with a voiceId or voiceName dubs every speaker.
Voices by speaker ID for every language that has no voices of its own. Used when diarization is true.
One voice for every language that has no voice of its own. Used when diarization is not true.
Show child attributes
ID of the voice: a voice from List cloned voices, or a catalog voice from List standard voices or List native voices that supports the new language.
Name of a catalog voice, used when voiceId is not sent. With voiceType: instant-clone and no voiceId, the name of a new voice cloned from the speaker.
instant-clone to clone the speaker's own voice, or standard / native for a catalog voice from that list. Leave it out for a cloned voice ID or a standard voice.
Gender of the voice, such as male or female.
Accepted but ignored.
Optional label. DUB_VIDEO marks the languages as dubs in operation of the response; it does not change what runs or what it costs.
Responses
201Every language was accepted and charged; each runs as its own job. `rejected` is always empty: any problem fails the whole request instead.
One entry per language, in the order you sent them.
Show child attributes
ID of the job that adds this language. Poll it with Get a job; when it succeeds, the language is part of the original job.
The language this job adds.
Type of the original job.
ADD_SUBTITLE_LANGUAGE when you sent subtitles: true, DUB_VIDEO when you sent that operation, otherwise ADD_LANGUAGE.
Always empty: if any language is invalid, the whole request fails with 400 and nothing is added.
Show child attributes
The language that was not added.
Why it was not added.
The original job's target languages after this request, including the new ones.
400Nothing was started or charged. A field failed validation (1 to 20 `languages`), or: - `Duplicate languages in request: <languages>` - `Languages can't be added to a failed process` (or `cancelled process`) - `Target language cannot be the same as source language: <language>` - `Target language already exists on process: <language>` - `Speaker voice map is required when diarization is enabled`, or `Voice is required`
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 all the languages, or your organization owes credits. Nothing was started.
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.
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
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.
404No job with this `id` in your organization, or it was deleted (`Process <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process 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.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
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/9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b/add-languages' \
--request POST \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"languages": [
{
"targetLanguage": "es-ES",
"voice": {
"voiceId": "6f3c2b1a-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
}
},
{
"targetLanguage": "fr-FR",
"voice": {
"voiceName": "Aria"
}
}
],
"subtitles": false,
"diarization": false,
"defaultVoices": {
"1": {
"voiceName": "Aria",
"voiceType": "standard"
},
"2": {
"voiceId": "6f3c2b1a-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
}
},
"defaultVoice": {
"voiceId": "6f3c2b1a-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
},
"operation": "DUB_VIDEO"
}'{
"accepted": [
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"targetLanguage": "es-ES",
"processType": "VIDEO_TO_SPEECH_TRANSLATION",
"operation": "ADD_LANGUAGE"
}
],
"rejected": [],
"targetLanguages": [
"hi-IN",
"es-ES",
"fr-FR"
]
}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.