Dub video into another language
dubDub a video into targetLanguage: transcribes, translates, voices each line fitted to the original timing, and mixes it over the original audio (ducked by default, or muted); returns an MP4 plus target-language SRT/VTT/JSON (audioTrack:true adds an M4A). Price per target language: 5 credits per source minute (voiceTier basic) or 12 (standard), plus transcription 1/min and translation 2/min unless you reuse transcriptionJobId/subtitles and translationJobId/translatedSubtitles. Voices: get_catalog kind voices. Unsupported languages fail before charging. No voice cloning or lip sync.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"targetLanguage": "<targetLanguage>"
},
"name": "dub"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voice | No | Voice id from get_catalog {kind:'voices'} (listen to sampleUrl first). Omit for the default voice of the language and tier. | |
| fileId | No | Id of a file already uploaded with upload {action:'start'}, upload {action:'start_multipart'}, upload {action:'inline'} or import_url. Pass this or the media URL. | |
| api_key | No | Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared. | |
| mediaUrl | No | Public https link to the video or audio (direct file, chat attachment URL, Google Drive or Dropbox share link; YouTube is refused). Pass this or fileId. | |
| subtitles | No | Source-language SRT, VTT, or JSON. | |
| voiceTier | No | Defaults to the voice's tier, else basic. | |
| audioTrack | No | Also return the dubbed audio as M4A. | |
| maxCredits | No | Spending cap for this call in credits (1 credit = 1 cent). If the price is higher the call fails with 422 before charging. | |
| sourceLanguage | No | Language of the input captions or speech (ISO 639-1, e.g. en). Omit to auto-detect. | |
| targetLanguage | Yes | ISO 639-1: en, es, fr, zh, ja, ko, hi, ar, bn, pt, ru, ur, id, de, tr, it, vi. | |
| translationJobId | No | A translate job into targetLanguage. | |
| keepOriginalAudio | No | 'duck' (default) keeps the original audio at -18 dB under the dubbed voice; 'mute' removes it. | |
| transcriptionJobId | No | Reuses its cues and its stored media. | |
| translatedSubtitles | No | Target-language SRT, VTT, or JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Job id: pass it to get_job, resume_job, edit_transcript or as transcriptionJobId. | |
| kind | No | Job kind (transcribe, burn, caption, clips, shorts, trim, dub, translate, preview, metadata...). | |
| step | No | Current pipeline step while running. | |
| error | No | Failure reason when status is failed. | |
| result | No | Result when succeeded: url, files[{name, url}], clips, text... | |
| status | No | queued, running, succeeded or failed. | |
| progress | No | Progress (0-1) and ETA while running. | |
| warnings | No | Non-blocking notes. | |
| costCents | No | Credits charged (1 credit = 1 cent). | |
| expiresAt | No | When the result files are deleted. | |
| refundedCents | No | Credits refunded after a failure. |