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
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
Give several text regions of a translation the same status in one call, such as approving every region you checked. Region IDs the translation does not have are skipped.
Permission: translate_photo.image_translator:update. 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.
Translation ID (translationVersionId): one rendered image of the job in one language.
Bodyrequiredapplication/json
The regions to change: keys of translationData. Unknown IDs are skipped.
The new review status: u unverified, v verified, a approved (a is used when your organization has a three-step review).
Responses
200The statuses were saved.
Always 200.
What happened, in plain words.
How many region IDs you sent (including any that were skipped).
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`). Also when the translation is not one of this job’s (`Translation version <translationVersionId> 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/e7b9d10a-f259-460b-98c5-4c1efc8f4491/translations/b2d4f6a8-2345-4bcd-8ef0-123456789abc/bulk-region-status' \
--request PUT \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"regionIds": [
"tr_1",
"tr_3"
],
"status": "v"
}'{
"statusCode": 200,
"message": "Region statuses updated",
"updated": 2
}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