Skip to main content
Localize uploaded video or audio with a full translate and dub pipeline: speech recognition, script translation, AI dubbing (cloned or preset voices), and rendered output. Optional subtitles and lip sync. Async only — dubbed files arrive via Webhook.
This API re-dubs your media in the target language. It is not plain text translation and does not return only subtitles — you get new dubbed video or audio files.

Task types

If you request at but the material is video, the server may run video translation (vt) instead. Check taskType in the acceptance response and webhook.

Workflow

1

Provide media

Either finish the full material upload flow and pass the registered materialId, or pass a public HTTPS sourceUrl (CDN or public S3). A sourceUrl returns a task immediately and downloads in the background. If the account cannot cover one minute, the request returns 402. If the probed duration costs more than the remaining credits, the task becomes failed and the webhook uses 402 with message insufficient quota.
2

Configure webhook

Set your webhook URL on API Configuration and copy the generated secret for verification
3

Submit task

POST /openapi/v1/task/media-translation/create-async with X-Idempotency-Key
4

Receive results

Webhook request body when event is openapi-media-translation

Request outline

Required fields include taskType, exactly one of source.materialId or source.sourceUrl, language.target, options.voiceClone.mode, and options.voiceClone.provider. source.materialId must come from a fully completed material upload (or from list materials after a successful upload). Do not use a materialId from an in-progress gen-upload-url / multipart initiate response. source.sourceUrl is a public HTTPS file URL, such as a CDN or public S3 address. It must be anonymously downloadable, and it cannot be sent together with materialId. HTTP and private-network addresses are rejected. The create call returns taskId before the download finishes. Poll the task or wait for the openapi-media-translation webhook: failed with 402 / insufficient quota means the file was longer than the remaining credits. Use Supported languages for locale codes. For the full options tree, see the request body in Create media translation (async).
Request body (registered material)
Request body (public URL)
options.voiceClone.provider selects the clone engine and is required. Use one of V1–V5; for engine characteristics and selection guidance, see Supported clone methods. options.voiceClone.mode is also required and accepts role, mix, or sentence.

Responses

  • HTTP Response (immediate): acceptance — taskId, status, createdAt, effective taskType
  • Webhook (on completion): deliverables in data.result (CDN URLs)
Do not expect final video/audio URLs in the create-async HTTP response.

Voice fields in webhook results

Translated script lines and per-line TTS results may include voiceId and provider. Copy both exactly as returned — do not build or guess values. If you let users edit translated text and resubmit lines, store and resend voiceId and provider together. See Voices.

Task management

Poll GET /openapi/v1/tasks/detail as a fallback. See Products overview.