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

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

Get a DITA map upload URL

Upload a DITA map

Auth Required

Upload a ZIP of DITA content and translate it into one or more languages with a translation memory. The .xml, .dita, .ditamap and .svg files are translated; everything else is copied unchanged. Put the ZIP in storage first (Get a DITA map upload URL) and send its uploadKey with the other fields as JSON, or send multipart/form-data with the ZIP in file (up to 500 MB). Credits are charged when you upload: without enough, the API returns 402 and nothing is created. Returns straight away with one ID per target language in data.playgroundLogIds; the languages are then translated one after another in the background. Poll each with Get the file tree, then call Build the translated ZIP.

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

Credits: Charged when you upload: the source words of every translatable file, once per target language. A file whose translation fails is refunded when its language finishes; if the map cannot be started at all, everything is refunded. Deleting the map keeps the charge. With autoQe, each language's QE report is charged when it starts, once the language is translated, per source word.

Rate What it covers Price
DITA map translation Initializing + translating a DITA map and its topics. Charged per source word, per target language. 0.5 credits per word
AI QE report AI quality evaluation (MQM) report over a translation. Charged per source word. 4 credits per word

Bodyrequiredapplication/json

sourceLanguagestringrequired

Language key of the source text. Use the source language of the translation memory in tmId.

Example: english_united_states
targetLanguagesstring[]required

Language keys to translate into: repeat the field, or send one value as a comma-separated list or a JSON array. None may equal sourceLanguage. Each language is translated, and charged, separately.

Example: ["french_france","german_germany"]
tmIdstring · uuidrequired

ID of the translation memory to translate with. Its matches are reused and the new translations are stored back into it.

Example: 3e9b7c1d-2a4f-4b6e-8d0c-5f1a2b3c4d5e
uploadKeystring

The uploadKey from Get a DITA map upload URL, once the ZIP is in storage. Send it (JSON) instead of file.

filestring · binary

The ZIP to translate (.zip, up to 500 MB), when it is uploaded with the request (multipart). Folders inside it are kept.

namestring

Name for the DITA map. Defaults to the ZIP file name.

Example: Q4-product-docs
autoQeboolean

Run a QE report on each language once it is translated. Charged when the report starts, per source word; needs aiqe:create.

Default: falseExample: false

Responses

201The DITA map was stored, its credits charged, and its languages queued.
application/json
successbooleanrequired

Always true.

Example: true
statusCodenumberrequired

Always 202: the translation was queued. (The HTTP status of the response is 201.)

Example: 202
messagestringrequired

What happened, in plain words.

Example: DITA Map auto-translation queued for 2 language(s). Review/edit files, then generate the translated ZIP when ready.
dataInitializeDitaMapDataDtorequired

The IDs of the new DITA map and of each of its languages.

Show child attributes
groupPlaygroundLogIdstring · uuidrequired

ID of the DITA map as a whole (the uploaded ZIP). It is the id of the row in List DITA maps.

Example: 0f3c2b1a-9d8e-4c7b-a6f5-e4d3c2b1a090
playgroundLogIdsstring · uuid[]required

One ID per target language, in the order of targetLanguages. Use these with Get the file tree, Build the translated ZIP and Retry failed files.

Example: ["7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"]
ditaMapGroupIdstringrequired

Internal group label shared by the map and its languages.

Example: ditamap-1759572000000-1a2b3c4d
wordCountnumberrequired

Translatable source words in the ZIP, counted once (not multiplied by the number of languages).

Example: 12450
xmlFileCountnumberrequired

Translatable files in the ZIP. Despite the name it counts SVG files too, so it equals translatableFileCount.

Example: 42
svgFileCountnumberrequired

SVG files in the ZIP whose text is translated.

Example: 3
translatableFileCountnumberrequired

Files that are translated: .xml, .dita, .ditamap and .svg. Every other file is copied into the translated ZIP unchanged.

Example: 42
targetLanguagesstring[]required

The target languages you sent, without duplicates.

Example: ["french_france","german_germany"]
400Nothing was created or charged. A field failed validation (for example `At least one target language is required`), or: - `Invalid file or missing file properties.`: neither `uploadKey` nor a file in `file` was sent. - `The upload could not be found. …`, `That upload was already used. …` or `That upload isn't a ZIP file this step takes.`: `uploadKey` can't be used. - `Only ZIP files (.zip) are supported.` - `Source language cannot be the same as any target language.` - `AI proofreading and AI back translation were replaced by the QE report. …`: `aiProofreading` or `aiBackTranslation` was sent; send `autoQe` instead. - `No translatable content found in the ZIP file. Make sure it contains XML/DITA/SVG files.`
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 for every file in every language, or your organization owes credits. Nothing was created.
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
413The file is larger than 500 MB (`File too large`).
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
500The ZIP could not be stored (`S3 upload failed.`). Everything charged is refunded.
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/dita-map/initialize
curl '{{API_BASE_URL}}/v1/galaxy/translate-photo/dita-map/initialize' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "uploadKey": "string",
  "file": "<binary>",
  "sourceLanguage": "english_united_states",
  "targetLanguages": [
    "french_france",
    "german_germany"
  ],
  "tmId": "3e9b7c1d-2a4f-4b6e-8d0c-5f1a2b3c4d5e",
  "name": "Q4-product-docs",
  "autoQe": false
}'
{
  "success": true,
  "statusCode": 202,
  "message": "DITA Map auto-translation queued for 2 language(s). Review/edit files, then generate the translated ZIP when ready.",
  "data": {
    "groupPlaygroundLogId": "0f3c2b1a-9d8e-4c7b-a6f5-e4d3c2b1a090",
    "playgroundLogIds": [
      "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
    ],
    "ditaMapGroupId": "ditamap-1759572000000-1a2b3c4d",
    "wordCount": 12450,
    "xmlFileCount": 42,
    "svgFileCount": 3,
    "translatableFileCount": 42,
    "targetLanguages": [
      "french_france",
      "german_germany"
    ]
  }
}

List DITA maps

Get the file tree

Build the translated ZIP

Download a file

Retry failed files

Retry a file

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