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
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
Render the finished video (or, with audioOnly, the audio) for one language of a job. The export runs as its own job: track it with Get a job using data.id, then download the file with Get a download URL.
Permission: translate_video.process_log:export. An API key acts with the role of the member who created it.
Credits: A plain export is free. With lipSync, the seconds of video marked for lip-sync are charged when the export starts, at the rate of the lip-sync model. Refused with 402 while your organization owes credits. Refunded if the export fails on our side.
| Rate | What it covers | Price |
|---|---|---|
| Video Export | Exporting the finished video — free. An export that applies lip-sync is charged as Lip-Sync on Export instead. | 0 credits per minute |
| Lip-Sync on Export (sync-3) | Exporting with lip-sync rendered on sync-3. Charged per minute of lip-synced video, in place of the (free) plain export. | 2000 credits per minute |
| Lip-Sync on Export (lipsync-2-pro) | Exporting with lip-sync rendered on lipsync-2-pro. Charged per minute of lip-synced video, in place of the (free) plain export. | 1200 credits per minute |
| Lip-Sync on Export (lipsync-2) | Exporting with lip-sync rendered on lipsync-2. Charged per minute of lip-synced video, in place of the (free) plain export. | 750 credits per minute |
| Lip-Sync on Export (latentsync) | Exporting with lip-sync rendered on latentsync. Charged per minute of lip-synced video, in place of the (free) plain export. | 300 credits per minute |
Headers
Optional. Any unique string you choose, such as a UUID. If you retry with the same key and the same body, you get the first response back and no second export starts. Reusing a key with a different body returns 422. Header names are case-insensitive.
Bodyrequiredapplication/json
ID of the finished job to export (jobId from Start a job).
Output size, by the short side of the frame: 1080 gives 1920x1080 for a 16:9 video, 1080x1920 for 9:16 and 1080x1080 for 1:1. Not used when audioOnly is true.
Language of the video's audio: one of the job's target languages for the dubbed audio, or its source language for the original audio. A BCP-47 code from List languages.
Shape of the exported frame. Leave it out to keep the shape set in the editor; ORIGINAL keeps the source video's own shape.
How the frame fits the artboard: contain keeps the whole frame and adds bars, cover fills the artboard and crops what overflows.
With fitMode: cover, the part of the frame to keep. Ignored otherwise. Default: the centre.
Show child attributes
Horizontal position to keep: 0 is the left edge, 0.5 the centre, 1 the right edge.
Vertical position to keep: 0 is the top, 0.5 the centre, 1 the bottom.
Lip-sync the lines marked for lip-sync in the editor to the dubbed audio. This is charged (see Credits). If no lines are marked, no lip-sync API key is set, lip-sync is switched off, or the export is audio-only, the export goes ahead without lip-sync, is not charged for it, and warning says why.
Lip-sync model, used only with lipSync: true. It must belong to a lip-sync provider your organization has turned on and has an API key for (Settings → Voice & Lipsync), or the request fails with 400. Leave it out to use your organization's default model.
Burn in the captions of subtitleLanguage on their own timing, and name the file after that language. This flag does not remove the dub: for the original audio with burned-in subtitles, also set videoLanguage to the source language and embedSubtitle to true.
Export only the audio of videoLanguage, as a .wav file, with no video. The export job then has result.audio and no result.video.
Burn subtitles into the video picture. The subtitles are drawn on the frames; no separate subtitle track is added. To get subtitle files, use Get subtitles.
Language of the burned-in subtitles, if it differs from videoLanguage (for example, English subtitles over Hindi audio). Defaults to videoLanguage. A BCP-47 code the job has.
Export even if some lines of videoLanguage have errors, such as missing audio or invalid timing. Those lines are left silent instead of the request failing with 400.
Responses
200The export job was started. `warning` is set when lip-sync was asked for but will not run; the export then goes ahead without it.
The export job that was started.
Show child attributes
ID of the export job. Poll it with Get a job. Once it has succeeded, its result.video (or result.audio for an audio-only export) is the file to pass as s3Url to Get a download URL.
Type of the export job. Always VIDEO_EXPORT.
Set only when you asked for lip-sync and it will not run: lip-sync is switched off, no lip-sync API key is set, no lines are marked for lip-sync, or the export is audio-only. The export goes ahead without lip-sync and lip-sync is not charged.
400Nothing was started. A field failed validation, or: - `Some of the transcripts for the selected language are invalid or missing audio. Please fix the issues and try exporting again.`: send `ignoreTranscriptErrors: true` to export anyway. - `Lip-sync model "<model>" is not enabled for this organization.` - `No API key is set for <provider>. Add one in Settings → Voice & Lipsync.` - `We couldn't read this file's length`: the export is priced and its length could not be measured.
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 lip-sync seconds (or a priced export), 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 `processId` in your organization (`Process <processId> 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.
409A request with this `Idempotency-Key` is still being processed (`A request with this idempotency key is still in progress. Retry shortly.`).
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.
422This `Idempotency-Key` was already used with a different body (`This idempotency key was already used for a different request. Use a new key.`).
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 export could not be started. It is marked failed and any 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/export-video' \
--request POST \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Idempotency-Key: 5f0c1d9e-2b7a-4c3e-9f8d-6a1b2c3d4e5f' \
--header 'Content-Type: application/json' \
--data '{
"processId": "9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
"resolution": "1080",
"videoLanguage": "hi-IN",
"artboard": "16:9",
"fitMode": "contain",
"cropFocus": {
"x": 0.5,
"y": 0.5
},
"lipSync": false,
"lipSyncModel": "lipsync-2",
"subtitleOnly": false,
"audioOnly": false,
"embedSubtitle": false,
"subtitleLanguage": "en-US",
"ignoreTranscriptErrors": false
}'{
"data": {
"id": "3c7e2a91-5b4d-4f60-a8e2-0d9b1c6f7e34",
"processType": "VIDEO_EXPORT",
"warning": "Lip-sync was skipped: no lines are marked for lip-sync."
}
}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.