v1.0.0OpenAPI 3.1.1

Image Translation API

Download OpenAPI Document

Translate 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.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

Get an upload URL

Estimate credits

Translate an image

Analyze an image

Get the analysis

Translate an analyzed image

Auth Required

Render the translated image from a finished analysis. Send targetLanguages to render several languages at once. Change wording with overrides, swap logos with logoReplacements, and choose the shape with aspectRatio. The render runs in the background: poll Get a translation with the translationVersionId (one per language, in translations). Calling it again for a language makes a new translation of that language.

Permission: translate_photo.image_translator:create. An API key acts with the role of the member who created it.

Credits: One render per language, charged when it starts; all languages are charged together, or none. Refunded if a render fails. Renders already paid for in fast mode are not charged again. With autoQe, each language's QE report is charged when it starts, once that language has rendered, per source word.

Rate What it covers Price
Image translation Translating the text in an image and rendering the target-language result. 300 credits

Path Parameters

idstring · uuidrequired

Job ID (jobId), returned by Translate an image or Analyze an image.

Example: e7b9d10a-f259-460b-98c5-4c1efc8f4491

Bodyrequiredapplication/json

targetLanguagestring

The language to render. Leave it out to use the job's targetLanguage. A language key such as english_united_states, not an ISO code. With tmId, use the languages of that translation memory.

Example: french_france
targetLanguagesstring[]

Several languages in one call: one translation starts per language, each charged on its own. Use instead of targetLanguage.

Example: ["french_france","hindi_india"]
aspectRatiostring

Shape of the result: Original (default) or one of 1:1, 3:4, 4:3, 9:16, 16:9, 3:2, 2:3.

Example: Original
overridesobject

Changes per text region, keyed by the region id from Get the analysis (data.text_regions[].id).

Example: {"tr_1":{"action":"translate","editedText":"Soldes d’été : -50 %"},"tr_2":{"action":"keep"}}
logoReplacementsobject

Logos to replace, keyed by the element id of a logo element from Get the analysis (data.elements[].id).

Example: {"el_3":{"url":"{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png","bbox":[0.05,0.04,0.25,0.14]}}
logoApplyModestring

flatten (default) draws the new logos into the image. layer only removes the old logos, so you can place the new ones yourself.

Enum values:flattenlayer
Example: flatten
operationLabelstring

A label for this translation, shown in its operationMeta.userLabel.

Example: Spring campaign, FR
autoQeboolean

Run the QE report on each language once it has rendered, so you do not have to start it yourself. It needs the job to have a translation memory and the aiqe:create permission, and it is charged on its own when it starts. What became of it is in the translation's operationMeta.autoQe.

Example: true
qeScopestring

With autoQe: which text regions the QE report checks. all (default) or unverified.

Enum values:allunverified
Example: all
requestIdstring

Your id for this one render (8 to 100 letters, digits, - or _; a UUID works). Sending it again, for up to a day, returns the translation the first request made, whatever its status, and charges nothing: safe to retry. Ignored with targetLanguages.

Example: 3f2b8c1e-7a4d-4f0e-9b1c-2d5e6f7a8b9c

Responses

201The render started. Poll Get a translation.
application/json
statusCodenumberrequired

Always 200.

Example: 200
jobIdstring · uuidrequired

ID of the job.

Example: e7b9d10a-f259-460b-98c5-4c1efc8f4491
translationVersionIdstring · uuidrequired

ID of the translation (the first one, with several languages). Poll Get a translation with it.

Example: b2d4f6a8-2345-4bcd-8ef0-123456789abc
versionNumbernumberrequired

Its number among the job’s translations.

Example: 1
translatedImageUrlstring | nullrequired

Null while it renders. Get a translation returns the image once it has finished.

Example: null
statusstringrequired

RUNNING for a new render. In fast mode, a render already running for the language is returned with its own status instead of a second one.

Enum values:RUNNINGCOMPLETEDFAILED
Example: RUNNING
translationsStartedTranslationDto[]

Only when you sent several targetLanguages: every translation started, in the order you asked for them.

Show child attributes
targetLanguagestringrequired

The language of this translation.

Example: hindi_india
translationVersionIdstring · uuidrequired

ID of the translation. Poll Get a translation with it.

Example: b2d4f6a8-2345-4bcd-8ef0-123456789abc
versionNumbernumberrequired

Its number among the job’s translations.

Example: 2
400A field failed validation, or `targetLanguages` held no language (`Pick at least one target language.`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
402Not enough credits, or your organization owes credits. Nothing was started.
application/json
statusCodenumberrequired

HTTP status code.

Example: 402
errorstringrequired

Always InsufficientCredits.

Example: InsufficientCredits
messagestringrequired

What happened, in plain words.

Example: You don't have enough credits to start this. It needs 120; you have 45.
requirednumberrequired

Credits this request needs.

Example: 120
availablenumberrequired

Credits your organization can spend now.

Example: 45
owednumberrequired

Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.

Example: 0
403`autoQe` was sent by a member without the `aiqe:create` permission (`Auto QE report needs permission to run AI quality evaluations. …`). Nothing was created or charged.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
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 analysis has not finished, or failed (`No completed analysis found for this job`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/galaxy/translate-photo/image-translator/{id}/translate
curl '{{API_BASE_URL}}/v1/galaxy/translate-photo/image-translator/e7b9d10a-f259-460b-98c5-4c1efc8f4491/translate' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "targetLanguage": "french_france",
  "targetLanguages": [
    "french_france",
    "hindi_india"
  ],
  "aspectRatio": "Original",
  "overrides": {
    "tr_1": {
      "action": "translate",
      "editedText": "Soldes d’été : -50 %"
    },
    "tr_2": {
      "action": "keep"
    }
  },
  "logoReplacements": {
    "el_3": {
      "url": "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png",
      "bbox": [
        0.05,
        0.04,
        0.25,
        0.14
      ]
    }
  },
  "logoApplyMode": "flatten",
  "operationLabel": "Spring campaign, FR",
  "autoQe": true,
  "qeScope": "all",
  "requestId": "3f2b8c1e-7a4d-4f0e-9b1c-2d5e6f7a8b9c"
}'
{
  "statusCode": 200,
  "jobId": "e7b9d10a-f259-460b-98c5-4c1efc8f4491",
  "translationVersionId": "b2d4f6a8-2345-4bcd-8ef0-123456789abc",
  "versionNumber": 1,
  "translatedImageUrl": null,
  "status": "RUNNING",
  "translations": [
    {
      "targetLanguage": "hindi_india",
      "translationVersionId": "b2d4f6a8-2345-4bcd-8ef0-123456789abc",
      "versionNumber": 2
    }
  ]
}

Retry a failed job

List jobs

Get a job

Update a job

Move a job to a project

Get a job's credit usage

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

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.

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

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

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

Models

ActivateAnalysisVersionResponseDto
AgentModeErrorDto
AgentTaskDto
AnalysisElementDto
AnalysisOperationMetaDto
AnalysisPlanDto
AnalysisResultResponseDto
AnalysisVersionDto
AnalysisVersionListItemDto
AnalysisVersionListResponseDto
AnalyzeEstimateDto
AnalyzeImageBodyDoc
AnalyzeImageResponseDto
AnnotationEditBodyDoc
ApproveDesignAssetDataDto
ApproveDesignAssetResponseDto
AreaEditBodyDoc
AssetComposeBodyDoc
BrandKitDto
BrandKitFontDto
BrandKitFontsDto
BrandKitFontStyleDto
BrandKitListResponseDto
BrandKitLogoDto
BrandKitUploadPresignDto
BulkRegionStatusBodyDoc
CheckDesignUploadDto
CleanBackgroundDataDto
CleanBackgroundResponseDto
CollectionDetailDto
CollectionItemsAddedDto
CollectionItemsDto
CollectionListItemDto
CollectionListResponseDto
CollectionSummaryDto
CopyDriveAssetBodyDoc
CreateBrandKitDto
CreateCollectionDto
CreateDesignAssetDto
CreateDesignAssetResponseDto
CreateDesignCleanBackgroundDto
CreateDesignElementDto
CreateDesignUploadPresignDto
CreateDesignVariantsDto
CreatedImageDto
CreatedVariantDto
CreateImageTranslatorUploadDto
CreateStagedUploadDto
CreateVariantsDataDto
CreateVariantsResponseDto
CreationFailureDto
CreationListItemDto
CreationListResponseDto
CreationRecordDto
CropRectDto
DesignAssetDetailDto
DesignAssetListItemDto
DesignElementDto
DesignElementResponseDto
DesignUploadCheckResponseDto
DesignUploadPresignResponseDto
DesignVariantDetailDto
DesignVariantDto
DesignVariantInputDto
DesignVariantResponseDto
DesignVariantVersionDto
DetectedElementDto
DetectElementsResponseDto
DirectTranslateBodyDoc
DirectTranslateResponseDto
DitaFileContentDto
DitaFileDownloadResponseDto
DitaFilesResponseDto
DitaFilesSummaryDto
DitaFileTreeNodeDto
DitaMapInfoDto
DitaMapLanguageDto
DitaMapListResponseDto
DitaMapMetadataDto
DitaMapProgressDto
DitaMapSummaryDto
DitaMapWordsDto
EditAnnotationDto
EditedAnalysisResponseDto
EditedImageDto
EditedTranslationResponseDto
EditImageDto
EditReferenceImageDto
EditVariantMaskDto
ElementEditBodyDoc
ElementEditDto
ElementProtectionDto
ExportedVariantDto
ExportVariantsDataDto
ExportVariantsDto
ExportVariantsResponseDto
ExtractBrandKitDto
ExtractedBrandIdentityDto
ExtractFileDto
FailedExportDto
FixVariantIssuesDto
GenerateDitaZipBodyDto
GenerateDitaZipDataDto
GenerateDitaZipResponseDto
GenerateImageDto
GetAgentTaskResponseDto
GetDesignAssetResponseDto
GetDesignVariantResponseDto
GetImageJobResponseDto
GetVariantVersionResponseDto
HallucinatedIdsDto
ImageCreatorUploadPresignDto
ImageJobDto
ImageTranslationJobListItemDto
InitializeDitaMapDataDto
InitializeDitaMapResponseDto
InsufficientCreditsErrorDto
JobAssetDto
JobAssigneeDto
JobUsageResponseDto
LayoutPlacementDto
LayoutPlanBodyDto
LayoutPlanDto
LayoutPlanWarningsDto
LibraryAssetDto
LibraryAssetListResponseDto
LibraryAssetResponseDto
ListDesignAssetsResponseDto
ListDesignElementsResponseDto
ListDesignVariantsResponseDto
ListImageTranslationJobsResponseDto
ListVariantVersionsResponseDto
LogoReplacementDoc
MasterPromptBodyDoc
ModelConfigBodyDto
ModelConfigDto
MoveDesignProjectBodyDto
MoveDesignProjectDataDto
MoveDesignProjectResponseDto
MovedProjectDto
MoveImageJobResponseDto
MoveProcessProjectDto
PerElementNoteDto
PlacementLayoutDto
PresignHeadersDto
QualityChecksDto
ReanalyzeBodyDoc
ReanalyzeResponseDto
RecropVariantDto
RegenerateVariantPlanDto
RegionOverrideDoc
RegionsUpdatedResponseDto
RegionUpdatedResponseDto
RenameDesignAssetDataDto
RenameDesignAssetDto
RenameDesignAssetResponseDto
ResizeImageBodyDoc
ResizeImageResponseDto
RetriedStepDto
RetryDitaFileDataDto
RetryDitaFileResponseDto
RetryDitaFilesResponseDto
RetryJobResponseDto
ReviewDataDto
ReviewVariantBodyDto
SaveCreationResponseDto
SaveCreationToDriveDto
SavedBrandKitDto
SaveToDriveDto
SaveTranslationToDriveResponseDto
SaveVariantToDriveDto
SaveVariantToDriveResponseDto
SetBrandFontWeightDto
StagedUploadTicketDto
StartedTranslationDto
SyncTranslationFromTmResponseDto
SyncTranslationToTmResponseDto
TextRegionDto
TextReviewDto
TextReviewItemDto
TranslateImageBodyDoc
TranslateImageResponseDto
TranslationOperationMetaDto
TranslationRegionDto
TranslationResultResponseDto
TranslationSourceDto
TranslationSourcesDto
TranslationSourcesResponseDto
TranslationVersionDto
TranslationVersionListItemDto
TranslationVersionListResponseDto
TranslationVersionOperationMetaDto
TypographyDto
UpdateBrandKitDto
UpdateCollectionDto
UpdateImageJobBodyDoc
UpdateImageJobResponseDto
UpdateRegionStatusBodyDoc
UpdateRegionTextBodyDoc
UploadBrandFontBodyDoc
UploadedBrandFontDto
UploadLibraryAssetBodyDoc
UsageOperationDto
VariantParentDesignDto
VariantVersionSummaryDto
VersionUsageResponseDto
VisualReviewDto
VisualReviewItemDto