End to End Image Translation
Creates a task to translate the text in an image or PDF into one or more target languages while keeping the original design. Send a multipart form with a source language, target languages, and a media URL.
Localizing Images and PDFs
Our image translation service localizes your images and PDFs by translating the text inside them while keeping the original design. It works on posters, signage, screenshots, menus, comics, and multi-page documents, in as many target languages as you need in a single call. This endpoint initiates an image translation task and returns arun_id and a task_id that allow you to track and retrieve your results.
Language Selection
Image translation needssource_language and target_languages in the form body:
source_language: the language of the text in your image. Locale tag (e.g.en-us) or numeric ID.target_languages: one or more output languages as a comma-separated string, for examplees-esores-es,pt-br. The SDKs accept an array and join it for you.
Supported Media Formats
Provide a publicly accessiblemedia_url. For optimal results, we recommend using high-resolution images with clearly legible text. Our service accepts the following formats:
- PNG (
.png) - JPG / JPEG (
.jpg,.jpeg) - WEBP (
.webp) - PDF (
.pdf) - ZIP of page images (
.zip), for multi-page sources
Export Format
The result is always delivered as a ZIP. The optionalexport_format field controls what is inside it:
ZIP(default): the translated page images.PDF: one PDF per target language.
ZIP. You can also change the format later with the export endpoint.
Request Example
Create an image translation task by sending a multipart form. Here’s how to request a Spanish translation of a hosted image using Python with therequests library:
project_name, project_description, and folder_id.
Next Steps: Monitoring Your Image Translation Task
After submitting your request, you’ll want to monitor its progress and retrieve the results once processing completes:- Use the
/image-translation/{task_id}endpoint to check your task’s status - Poll the status endpoint at reasonable intervals (we recommend 5-15 second intervals for most cases)
- Once the status shows as
SUCCESS, retrieve your translated pages from/image-translation/result/{run_id}
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
Language of the text in the source image. Pass a locale tag (en-us) or a numeric language ID. See all source languages.
"en-us"
Comma-separated target languages as locale tags or language IDs (e.g. es-es or es-es,pt-br). The SDKs take an array and join it. See all target languages.
"es-es"
URL of the image, PDF, or ZIP of page images.
null
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
ZIP (default) is a ZIP of page images. PDF is a ZIP of per-language PDFs. The download is always a ZIP.
ZIP, PDF Optional Studio folder to store the run in. Must belong to the API key's team.
null