Image Translation API
Download OpenAPI DocumentTranslate the text inside images and creatives, create on-brand variants and adapt layouts, keeping the design.
This API covers two kinds of work: translating images, and creating, editing and adapting them for your brand. New here? Read Image Translation for the translation flow and Image creation and adaptation for the rest, then make your first call with the Quickstart.
Every request
Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.
For one image into one language, call Translate an image and poll Get a translation. To check the plan first, or to translate into several languages, call Analyze an image, poll Get the analysis, then Translate an analyzed image.
Languages are keys such as english_united_states and hindi_india, not ISO codes. With a translation memory (tmId), use the languages of that memory.
Rendering runs in the background, so start calls return IDs straight away and you poll for the result. Endpoints that charge credits say so on their page, with the current price; without enough credits they return 402 and nothing is created. Estimate credits prices a batch before you start it. See Credits.
Translation jobs
A job is one source image and the languages it is translated into. Start one with Translate an image (one language, no checks) or Analyze an image (a plan you can check, any number of languages), then render, retry, file and delete it here.
- POST/v1/galaxy/translate-photo/image-translator/upload/presign
- GET/v1/galaxy/translate-photo/image-translator/analyze/estimate
- POST/v1/galaxy/translate-photo/image-translator/direct-translate
- POST/v1/galaxy/translate-photo/image-translator/analyze
- GET/v1/galaxy/translate-photo/image-translator/result/{jobId}
- POST/v1/galaxy/translate-photo/image-translator/{id}/translate
- POST/v1/galaxy/translate-photo/image-translator/{id}/retry
- GET/v1/galaxy/translate-photo/image-translator/jobs/list
- GET/v1/galaxy/translate-photo/image-translator/{id}
- PUT/v1/galaxy/translate-photo/image-translator/{id}
- PATCH/v1/galaxy/translate-photo/image-translator/{id}/project
- GET/v1/galaxy/translate-photo/image-translator/{id}/usage
Get an upload URL
Estimate credits
Translate an image
Analyze an image
Get the analysis
The state of a job’s current analysis and, once status is COMPLETED, its plan in data: every piece of text found (text_regions) and the visual elements (elements). Poll every 3 to 10 seconds until status is COMPLETED or FAILED. Use region IDs as keys in overrides, and the IDs of logo elements in logoReplacements, when you translate.
Permission: translate_photo.image_translator:read. An API key acts with the role of the member who created it.
Path Parameters
Job ID (jobId), returned by Translate an image or Analyze an image.
Responses
200The current analysis.
Always 200.
SCHEDULED or RUNNING (keep polling), COMPLETED (data holds the plan) or FAILED. direct-translate for a job made with Translate an image, which has no analysis.
The image the current analysis version works on. After a resize or an edit, this is the edited image.
The original image, which never changes.
URL of the plan as a JSON file. Null until it is ready.
Language of the text in the image.
The first (or only) target language.
Every target language, when the job was started with several. Null for one.
The translation memory the job uses. Null without one.
The plan: the text found and what to do with it. Null until status is COMPLETED.
Show child attributes
Version of the plan format.
Every piece of text found in the image.
Show child attributes
ID of the text region. Use it as the key in overrides when you translate.
The element this text belongs to (see elements).
The text found in the image.
What the analysis plans for it: translate, or keep (such as a brand name).
A first translation suggested by the analysis. The translation step may replace it.
How the text looks.
Show child attributes
The closest font family, as guessed by the analysis.
Font style.
Font weight.
Text alignment.
Text color.
Estimated font size.
Clockwise rotation of the text in degrees, 0 to 359. Absent for horizontal text.
Where the text is: [x1, y1, x2, y2] as fractions (0 to 1) of the image width and height, from the top-left corner.
How sure the text recognition is, from 0 to 1.
The visual elements found: logos, people, products and so on.
Show child attributes
ID of the element. Use the ID of a logo element as the key in logoReplacements.
What kind of element it is.
A short name for it.
A description of it.
How freely it may change.
Show child attributes
How freely the element may change. Text on an immutable element is kept unless an override says otherwise.
Why the element has this level.
Where it is: [x1, y1, x2, y2] as fractions (0 to 1) of the image width and height, from the top-left corner.
Clockwise rotation in degrees, 0 to 359.
Its main colors and style.
People in the image and how they look.
Instructions the renderer uses. The contents may change; do not depend on them.
How confident the analysis is.
Show child attributes
How sure the analysis is overall, from 0 to 1.
Whether a person should check the plan before translating.
Why it needs review, when it does.
The language the analysis found in the image.
Unsaved edits the web editor keeps on this version. Usually null.
Aspect ratio of this version after a resize, such as 9:16.
Number of the current analysis version.
ID of the current analysis version.
How many analysis versions the job has.
An older per-step tally kept for the web app. It is not what was charged: use Get a job's credit usage.
Images attached to the job in the editor.
Show child attributes
ID of the asset.
Its name, from the uploaded file name.
URL of the image.
Name of the job.
True when the caller is assigned to review only some languages of a job someone else started.
Where the job came from.
The picture this job was opened from to edit, when another feature handed it over — { kind: "playground_document_image", logId, imageId, label? } for a picture of a Playground document translation. Null otherwise.
Only with direct-translate: why there is no plan.
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
404No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/galaxy/translate-photo/image-translator/result/e7b9d10a-f259-460b-98c5-4c1efc8f4491' \
--header 'x-api-key: YOUR_API_KEY'{
"statusCode": 200,
"status": "COMPLETED",
"message": "This job was translated directly via API. Open the Review page to see the result.",
"imageUrl": "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg",
"originalSourceUrl": "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/uploads/5b7c9d1e.png",
"analysisResultUrl": "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/analysis-output/4d6f8a0c.json",
"sourceLanguage": "english_united_states",
"targetLanguage": "french_france",
"targetLanguages": [
"french_france",
"hindi_india"
],
"tmId": "550e8400-e29b-41d4-a716-446655440000",
"data": {
"schema_version": "1.0",
"detected_source_language": "English",
"text_regions": [
{
"id": "tr_1",
"element_id": "el_1",
"source_text": "Summer sale: 50% off",
"action": "translate",
"localized_text": "Soldes d’été : -50 %",
"typography": {},
"bbox_norm": [
0.1,
0.62,
0.9,
0.74
],
"ocr_confidence": 0.97
}
],
"elements": [
{
"id": "el_3",
"category": "logo",
"label": "Brand logo",
"description": "White wordmark in the top-left corner.",
"bbox_norm": [
0.05,
0.04,
0.25,
0.14
],
"rotation_deg": 0,
"protection": {},
"visual_properties": {
"dominant_colors": [
"#FFFFFF"
],
"style": "flat"
}
}
],
"people_localization": [
{
"element_id": "el_5",
"label": "Model",
"description": "Woman smiling."
}
],
"rebuild_plan": {
"preserve_composition": true,
"preserve_lighting": true
},
"quality_checks": {
"overall_confidence": 0.92,
"needs_review": false,
"review_reasons": []
}
},
"userEdits": null,
"aspectRatio": null,
"versionNumber": 1,
"versionId": "a1c3e5f7-1234-4abc-9def-0123456789ab",
"totalVersions": 1,
"consumed": {
"totalConsumedInConfigure": 50,
"totalConsumedInReview": 0
},
"assets": [
{
"id": "c3e5a7b9-3456-4cde-9f01-23456789abcd",
"name": "logo",
"url": "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png"
}
],
"name": "summer-sale",
"viewerLanguageRestricted": false,
"source": "translate-photo",
"origin": null
}Translate an analyzed image
Retry a failed job
List jobs
Get a job
Update a job
Move a job to a project
Get a job's credit usage
Translations
A translation is one rendered image in one language. Every render and every AI edit makes a new one, so a job can hold many. Poll a translation until it is completed, then download it or save it to your assets.
- GET/v1/galaxy/translate-photo/image-translator/{id}/translations
- GET/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}
- GET/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/download
- POST/v1/galaxy/translate-photo/image-translator/versions/{versionId}/save-to-drive
- GET/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/usage
List translations
Get a translation
Download a translation
Save a translation to assets
Get a translation's credit usage
Translation review
Check and correct the text of a translation region by region: change its wording, mark it verified or approved, and keep your translation memory in step in either direction. Changing text here does not render the image again.
- PUT/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/region-text
- PUT/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/region-status
- PUT/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/bulk-region-status
- PUT/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/sync-to-tm
- PUT/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/sync-from-tm
Edit a region's text
Set a region's status
Set the status of several regions
Sync a translation to the TM
Update a translation from the TM
AI edits
Change the picture without touching the translation: edit a masked area, change single elements with instructions, place another image into the design, change the whole image with a prompt, or change its shape. Edits with a translationVersionId make a new translation; the others make a new analysis version.
- POST/v1/galaxy/translate-photo/image-translator/{id}/element-edit
- POST/v1/galaxy/translate-photo/image-translator/{id}/annotation-edit
- POST/v1/galaxy/translate-photo/image-translator/{id}/area-edit
- POST/v1/galaxy/translate-photo/image-translator/{id}/master-prompt
- POST/v1/galaxy/translate-photo/image-translator/{id}/asset-compose
- POST/v1/galaxy/translate-photo/image-translator/{id}/resize
- POST/v1/galaxy/translate-photo/image-translator/{id}/reanalyze
Edit elements with instructions
Edit by point annotations
Edit a masked area
Regenerate with a prompt
Add an image to the design
Change the aspect ratio
Re-run the analysis
Analysis versions
Each re-analysis, resize or edit without a translationVersionId makes a new analysis version of a job, which becomes current. List them, see what each cost, and switch back to an earlier one.
List analysis versions
Make an analysis version current
Get an analysis version's credit usage
Overlay assets
Your organization's library of images to place into designs, such as logos, stickers and icons. Every job can use them, as an image to add to the design or as a logo replacement.
List library assets
Upload a library asset
Add a library asset from your assets
Created images
Generate images from a text prompt and edit them with instructions, a mask or changes to single elements. Each call waits for the image and returns it. Created images stay in your history until you delete them; save the ones you keep to your assets, or hand them to image translation.
- POST/v1/galaxy/translate-photo/image-creator/generate
- GET/v1/galaxy/translate-photo/image-creator
- POST/v1/galaxy/translate-photo/image-creator/{id}/edit
- POST/v1/galaxy/translate-photo/image-creator/{id}/analyze
- POST/v1/galaxy/translate-photo/image-creator/{id}/retry
- POST/v1/galaxy/translate-photo/image-creator/{id}/save-to-drive
- POST/v1/galaxy/translate-photo/image-creator/translation-sources
- POST/v1/galaxy/translate-photo/image-creator/upload/presign
Generate an image
List created images
Edit a created image
Detect image elements
Retry a failed image
Save an image to assets
Prepare images for translation
Get an upload URL for an edit
Image collections
Named groups of created images, such as the images for one campaign. An image can be in several collections, and adding it does not move or copy it.
Create a collection
List collections
Get a collection
Update a collection
Add images to a collection
Brand kits
A brand kit holds a brand identity: colors, fonts, tone of voice, visual style and a logo. Extract one from a website, images or a PDF, check it, then save it. Brand kits belong to your organization.
- POST/v1/brand-kit/upload/presign
- POST/v1/brand-kit/extract
- POST/v1/brand-kit
- GET/v1/brand-kit
- GET/v1/brand-kit/{id}
- PATCH/v1/brand-kit/{id}
- POST/v1/brand-kit/{id}/upload/presign
- POST/v1/brand-kit/{id}/fonts/{role}
- PATCH/v1/brand-kit/{id}/fonts/{role}
- GET/v1/brand-kit/{id}/fonts/{role}
- GET/v1/brand-kit/{id}/fonts/{role}/faces/{faceId}
Get an upload URL
Extract a brand identity
Create a brand kit
List brand kits
Get a brand kit
Update a brand kit
Get an upload URL for a brand kit
Upload a brand font
Choose a brand font’s weight
Download a brand font
Download a brand font style
Layout adaptation
Adapt one design to many formats. Upload the source image and create a design: Pro designs are analyzed first, so each format gets a layout plan you can check, while Flash designs are rendered straight away. Then create a variant for every format you need.
- POST/v1/galaxy/translate-photo/adapt/upload/presign
- POST/v1/galaxy/translate-photo/adapt/upload/check
- POST/v1/galaxy/translate-photo/adapt/assets
- GET/v1/galaxy/translate-photo/adapt/assets
- GET/v1/galaxy/translate-photo/adapt/{id}
- GET/v1/galaxy/translate-photo/adapt/tasks/{taskId}
- POST/v1/galaxy/translate-photo/adapt/{id}/approve
- POST/v1/galaxy/translate-photo/adapt/{id}/clean-background
- POST/v1/galaxy/translate-photo/adapt/{id}/adapt
- POST/v1/galaxy/translate-photo/adapt/{id}/elements
- GET/v1/galaxy/translate-photo/adapt/{id}/elements
- POST/v1/galaxy/translate-photo/adapt/assets/{id}/rename
- PATCH/v1/galaxy/translate-photo/adapt/assets/{id}/project
Get a design upload URL
Check a design upload
Create a design
List designs
Get a design
Get a design task
Approve a design
Generate a clean background
Create variants
Add a design element
List design elements
Rename a design
Move a design to a project
Adapted variants
A variant is one design in one format. Poll it until its plan or image is ready, approve or revise a Pro layout plan, review and fix the result, and export the image. Every render, edit, fix and recrop makes a new version, and you can switch back to any of them.
- GET/v1/galaxy/translate-photo/adapt/{id}/variants
- GET/v1/galaxy/translate-photo/adapt/variants/{variantId}
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/approve-plan
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/regenerate-plan
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/regenerate-image
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/review
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/fix-issues
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/edit-mask
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/recrop
- GET/v1/galaxy/translate-photo/adapt/variants/{variantId}/versions
- GET/v1/galaxy/translate-photo/adapt/variants/{variantId}/versions/{versionId}
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/versions/{versionId}/activate
- GET/v1/galaxy/translate-photo/adapt/variants/{variantId}/export
- POST/v1/galaxy/translate-photo/adapt/variants/export
- POST/v1/galaxy/translate-photo/adapt/variants/{variantId}/save-to-drive
- POST/v1/galaxy/translate-photo/adapt/mask/upload/presign
List variants
Get a variant
Approve a layout plan
Revise a layout plan
Regenerate a variant image
Review a variant
Fix review issues
Edit a variant
Recrop a variant
List variant versions
Get a variant version
Activate a variant version
Export a variant
Export several variants
Save a variant to assets
Get a mask upload URL
DITA maps
Translate a ZIP of DITA content (.ditamap, .dita, .xml and .svg files) with a translation memory, keeping its folders and markup. Upload the ZIP once for any number of target languages, poll each language's files, then build a translated ZIP per language.
- POST/v1/galaxy/translate-photo/dita-map/upload/presign
- POST/v1/galaxy/translate-photo/dita-map/initialize
- GET/v1/galaxy/translate-photo/dita-map/zip-logs
- GET/v1/galaxy/translate-photo/dita-map/{id}/files
- POST/v1/galaxy/translate-photo/dita-map/{id}/generate-translation-zip
- GET/v1/galaxy/translate-photo/dita-map/file/{id}/download
- POST/v1/galaxy/translate-photo/dita-map/{id}/retry
- POST/v1/galaxy/translate-photo/dita-map/file/{id}/retry