Create Document Translation
Translate DOCX or SRT documents while preserving a document-based workflow and optional terminology guidance.
task_id. Poll Get Document Translation Status until the task reaches SUCCESS, then use the returned run_id with Get Document Translation Result to retrieve the translated document download URL.
Response
The create response contains only the task identifier:task_id: the identifier for the asynchronous document translation task.
run_id at creation time. The run_id is available from Get Document Translation Status once the task reaches SUCCESS.
Supported Inputs
Provide either:media_file: upload the document directly as multipart form data.media_url: provide a URL to the document file.
Language and Terminology
source_language: the language of the source document.target_language: the language to translate into.chosen_dictionaries: optional dictionary IDs to enforce approved terminology.translation_style: optional guidance for tone, wording, or terminology preferences. Omit this field when you do not need custom style instructions.
DOCX Example
SRT Example
task_id from this response so you can poll task status and fetch the final download URL.Authorizations
The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
Body
Source language of the document. Pass a locale tag (en-us, fr-fr, es-es). Numeric language IDs (1 or "1") still work but are deprecated. See all source languages.
"en-us"
Target language for the translated document. Pass a locale tag (fr-fr, es-es, de-de). Numeric language IDs still work but are deprecated. See all target languages.
"fr-fr"
Enter a distinctive name for your project that reflects its purpose or content. This name will be displayed in your CAMB.AI workspace dashboard and used to organize related assets, transcriptions, etc.. . Choose something memorable that helps you quickly identify this specific project among your other voice, audio and localization tasks.
3 - 255null
Provide details about your project's goals and specifications. Include information such as the target languages for translation or dubbing, desired voice characteristics, emotional tones to capture, or specific audio processing requirements, outlining the workflow here can serve as valuable documentation for organizational purposes.
3 - 5000null
Document file to translate. Supported formats include DOCX and SRT. Leave blank when using media_url.
URL to a document file for translation. Leave blank when uploading media_file.
""
Optional dictionaries to apply during document translation.
1Optional free-text guidance for the translation style.
Response
Successful Response