v1.0.0OpenAPI 3.1.1

Video Dubbing API

Download OpenAPI Document

Upload 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.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

Get the result

Export a video

Auth Required

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

Idempotency-Keystring

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.

Example: 5f0c1d9e-2b7a-4c3e-9f8d-6a1b2c3d4e5f

Bodyrequiredapplication/json

processIdstring · uuidrequired

ID of the finished job to export (jobId from Start a job).

Example: 9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b
resolutionstringrequired

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.

Enum values:4K2K1080720480360
Example: 1080
videoLanguagestringrequired

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.

Example: hi-IN
artboardstring

Shape of the exported frame. Leave it out to keep the shape set in the editor; ORIGINAL keeps the source video's own shape.

Enum values:ORIGINAL1:116:99:164:521:9
Example: 16:9
fitModestring

How the frame fits the artboard: contain keeps the whole frame and adds bars, cover fills the artboard and crops what overflows.

Enum values:containcover
Default: containExample: contain
cropFocusCropFocusDto

With fitMode: cover, the part of the frame to keep. Ignored otherwise. Default: the centre.

Show child attributes
xnumberrequired

Horizontal position to keep: 0 is the left edge, 0.5 the centre, 1 the right edge.

Example: 0.5Min: 0Max: 1
ynumberrequired

Vertical position to keep: 0 is the top, 0.5 the centre, 1 the bottom.

Example: 0.5Min: 0Max: 1
lipSyncboolean

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.

Default: falseExample: false
lipSyncModelstring

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.

Enum values:sync-3lipsync-2-prolipsync-2latentsync
Example: lipsync-2
subtitleOnlyboolean

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.

Default: falseExample: false
audioOnlyboolean

Export only the audio of videoLanguage, as a .wav file, with no video. The export job then has result.audio and no result.video.

Default: falseExample: false
embedSubtitleboolean

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.

Default: falseExample: false
subtitleLanguagestring

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.

Example: en-US
ignoreTranscriptErrorsboolean

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.

Default: falseExample: false

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.
application/json
dataExportVideoJobDtorequired

The export job that was started.

Show child attributes
idstring · uuidrequired

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.

Example: 3c7e2a91-5b4d-4f60-a8e2-0d9b1c6f7e34
processTypestringrequired

Type of the export job. Always VIDEO_EXPORT.

Enum values:VIDEO_EXPORT
Example: VIDEO_EXPORT
warningstring

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.

Example: Lip-sync was skipped: no lines are marked for lip-sync.
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.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
402Not enough credits for the lip-sync seconds (or a priced export), or your organization owes credits. Nothing was started.
application/json
statusCodenumberrequired

HTTP status code.

Example: 402
errorstringrequired

Always InsufficientCredits.

Example: InsufficientCredits
messagestringrequired

What happened, in plain words.

Example: You don't have enough credits to start this. It needs 120; you have 45.
requirednumberrequired

Credits this request needs.

Example: 120
availablenumberrequired

Credits your organization can spend now.

Example: 45
owednumberrequired

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.

Example: 0
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.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
404No job with this `processId` in your organization (`Process <processId> not found`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
409A request with this `Idempotency-Key` is still being processed (`A request with this idempotency key is still in progress. Retry shortly.`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
413The request body is larger than 25 MB.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
422This `Idempotency-Key` was already used with a different body (`This idempotency key was already used for a different request. Use a new key.`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500The export could not be started. It is marked failed and any credits are refunded.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/galaxy/translate-video/process-log/export-video
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

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.

List languages

Get transliteration suggestions

Models

AddedLanguageDto
AddLanguageItemDto
AddLanguagesDto
AddLanguagesResponseDto
AddLanguageVoiceDto
AutoExportItemDto
AutoExportsResponseDto
CatalogVoiceResponseDto
ClonedVoiceResponseDto
ClonedVoiceTrainingAudioResponseDto
CompleteMultipartUploadItemDto
CompleteMultipartUploadResponseDto
CreateOrgRuleDto
CropFocusDto
ElevenLabsVoiceSettingsDto
ExportLipSyncInfoResponseDto
ExportVideoDto
ExportVideoJobDto
ExportVideoResponseDto
HumanValidationResponseDto
InitMultipartUploadDto
InitMultipartUploadFileDto
InitMultipartUploadItemResponseDto
InitMultipartUploadResponseDto
InsufficientCreditsErrorDto
LanguageCapabilitiesDto
LanguageCatalogItemDto
LanguageListItemDto
LanguageListResponseDto
LipSyncModelOptionDto
MultipartPresignedPartDto
MultipartUploadedPartDto
PaginatedCatalogVoiceResponseDto
PaginatedClonedVoiceResponseDto
PaginatedProcessListResponseDto
PaginatedUploadListResponseDto
PaginatedVoiceResponseDto
PaginationMetaDto
PresignedExportUrlDataDto
PresignedExportUrlDto
PresignedExportUrlResponseDto
ProcessDataDto
ProcessDataResponseDto
ProcessFileDto
ProcessListAssigneeDto
ProcessListItemResponseDto
ProcessResultResponseDto
ProcessRunResponseDto
ProcessStatusResponseDto
ProcessStatusTaskItemDto
PronunciationRuleResponseDto
ProvidersDto
RejectedLanguageDto
RetryProcessResponseDto
SaveExportToDriveResponseDto
SourceTargetLanguagesDto
SpeakerLanguageProfileDto
SpeechCapabilityDto
StartAudioConfigDoc
StartInputDataDoc
StartProcessDto
StartProcessResponseDto
SubmitHumanValidationDto
SubtitleCaptionDto
SubtitleDownloadFileDto
SubtitleDownloadResponseDto
SyncPmExecutionResponseDto
SyncSpeechAudioDto
SyncTextToSpeechDto
TargetLanguageItemDto
TransliterationSuggestionsResponseDto
TvAbortMultipartUploadDto
TvCompleteMultipartUploadDto
TvMultipartPartUrlsDto
TvMultipartPartUrlsResponseDto
UpdateClonedVoiceDto
UpdateProcessDataDto
UploadedFileResponseDto
UploadFilesResponseDto
UploadFromAssetsDto
UploadListMetaDto
UploadSuccessResponseDto
VoiceAccentDto
VoiceAccentsResponseDto
VoiceListMetaDto
VoiceTypeProvidersDto