Image Translation

Translate the text inside images and creatives while keeping the design. Analyze, render, review and download.

Image Translation replaces the text in an image with its translation and keeps the layout, fonts and pictures. There are two ways in: one call for a quick translation, or an analysis you can check before anything renders.

Start a job

For one image into one language, call Translate an image with the image as file, the sourceLanguage (or auto) and the targetLanguage. You get a jobId and a translationVersionId back straight away.

To check the plan first, or to translate into several languages, call Analyze an image instead. Send the image as file, a public sourceUrl, or the sourceKey of an image your organization already holds.

Check the analysis

After Analyze an image, poll Get the analysis every 3 to 10 seconds until status is completed. Its data lists every text region it found (text_regions) and the visual elements (elements), such as logos.

Render the translation

Call Translate an analyzed image with one targetLanguage or several targetLanguages. Change wording per region with overrides and swap logos with logoReplacements. Each language returns its own translationVersionId.

Collect it

Poll Get a translation every 5 to 15 seconds until status is completed or failed, then download it or save it to your assets.

Languages

Languages are keys, not ISO codes: for example english_united_states, french_france or hindi_india. Get them from List languages and use each language's name. With a translation memory in tmId, use the languages of that memory: its approved translations are reused, and new ones are stored back.

Fast mode

With fastMode=true, Analyze an image renders every target language as soon as the analysis finishes, with no further call. You can't check the plan first, and the renders are charged when you start the job. Without fast mode, you pay for each render when you call Translate an analyzed image.

Statuses

Get the analysis:

statusMeaning
analyzingStill running. Keep polling.
completedDone. data holds the plan.
failedThe analysis failed. Call Retry a failed job.
direct-translateThe job was made with Translate an image, which has no analysis.

Get a translation:

statusMeaning
pending, translatingStill running. Keep polling.
completedtranslatedImageUrl is ready, and translationData holds the source and translated text of each region.
failederrorCode and failureReason say why. The AI_* codes are usually worth a retry.

Review the text

A translation's text is kept per region, keyed by the region ID from the analysis.

Edit the image

AI edits change the picture and keep the translated text:

An edit with a translationVersionId makes a new translation. An edit without one, a resize, or Re-run the analysis makes a new analysis version, which becomes current; switch back with Make an analysis version current.

Permissions

Each endpoint page lists the permission it needs. The API key needs them on the role of the person who created it.

ResourceCoversActions used
translate_photo.image_translatorJobs, translations, review, AI edits, analysis versions and the overlay library.create, delete, export, read, update

Credits

Analyzing, rendering, re-analyzing, every AI edit and every retry are charged when they start. Without enough credits the API returns 402 and nothing starts. If the work fails on our side, the credits are refunded. Each endpoint that charges says so on its page, with the current rates. Estimate credits prices a batch before you start, and Get a job's credit usage shows what a job cost. See Credits.

To create images, adapt designs to new formats or translate DITA maps, see Image creation and adaptation.

On this page