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

Auth Required

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

jobIdstring · uuidrequired

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

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

Responses

200The current analysis.
application/json
statusCodenumberrequired

Always 200.

Example: 200
statusstringrequired

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.

Enum values:SCHEDULEDRUNNINGCOMPLETEDFAILEDdirect-translate
Example: COMPLETED
imageUrlstringrequired

The image the current analysis version works on. After a resize or an edit, this is the edited image.

Example: {{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg
originalSourceUrlstring | nullrequired

The original image, which never changes.

Example: {{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/uploads/5b7c9d1e.png
analysisResultUrlstring | nullrequired

URL of the plan as a JSON file. Null until it is ready.

Example: {{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/analysis-output/4d6f8a0c.json
sourceLanguagestring | nullrequired

Language of the text in the image.

Example: english_united_states
targetLanguagestring | nullrequired

The first (or only) target language.

Example: french_france
targetLanguagesstring[] | nullrequired

Every target language, when the job was started with several. Null for one.

Example: ["french_france","hindi_india"]
tmIdstring · uuid | nullrequired

The translation memory the job uses. Null without one.

Example: 550e8400-e29b-41d4-a716-446655440000
dataAnalysisPlanDtorequired

The plan: the text found and what to do with it. Null until status is COMPLETED.

Show child attributes
schema_versionstringrequired

Version of the plan format.

Example: 1.0
text_regionsTextRegionDto[]required

Every piece of text found in the image.

Show child attributes
idstringrequired

ID of the text region. Use it as the key in overrides when you translate.

Example: tr_1
element_idstringrequired

The element this text belongs to (see elements).

Example: el_1
source_textstringrequired

The text found in the image.

Example: Summer sale: 50% off
actionstringrequired

What the analysis plans for it: translate, or keep (such as a brand name).

Enum values:translatekeep
Example: translate
localized_textstringrequired

A first translation suggested by the analysis. The translation step may replace it.

Example: Soldes d’été : -50 %
typographyTypographyDtorequired

How the text looks.

Show child attributes
font_family_guessstringrequired

The closest font family, as guessed by the analysis.

Example: Montserrat
font_stylestringrequired

Font style.

Example: normal
font_weightstringrequired

Font weight.

Example: bold
alignmentstringrequired

Text alignment.

Example: center
colorstringrequired

Text color.

Example: #FFFFFF
font_size_estimatestring

Estimated font size.

Example: large
rotation_degnumber

Clockwise rotation of the text in degrees, 0 to 359. Absent for horizontal text.

Example: 0
bbox_normnumber[]required

Where the text is: [x1, y1, x2, y2] as fractions (0 to 1) of the image width and height, from the top-left corner.

Example: [0.1,0.62,0.9,0.74]
ocr_confidencenumberrequired

How sure the text recognition is, from 0 to 1.

Example: 0.97
elementsAnalysisElementDto[]required

The visual elements found: logos, people, products and so on.

Show child attributes
idstringrequired

ID of the element. Use the ID of a logo element as the key in logoReplacements.

Example: el_3
categorystringrequired

What kind of element it is.

Enum values:personlogoproductbackgroundsignageassetdecorationui_element
Example: logo
labelstringrequired

A short name for it.

Example: Brand logo
descriptionstringrequired

A description of it.

Example: White wordmark in the top-left corner.
protectionElementProtectionDtorequired

How freely it may change.

Show child attributes
levelstringrequired

How freely the element may change. Text on an immutable element is kept unless an override says otherwise.

Enum values:immutableprotectedreview_requirededitable
Example: protected
reasonstringrequired

Why the element has this level.

Example: Brand logo must not change.
bbox_normnumber[]

Where it is: [x1, y1, x2, y2] as fractions (0 to 1) of the image width and height, from the top-left corner.

Example: [0.05,0.04,0.25,0.14]
rotation_degnumber

Clockwise rotation in degrees, 0 to 359.

Example: 0
visual_propertiesobject

Its main colors and style.

Example: {"dominant_colors":["#FFFFFF"],"style":"flat"}
people_localizationobject[]required

People in the image and how they look.

Example: [{"element_id":"el_5","label":"Model","description":"Woman smiling."}]
rebuild_planobjectrequired

Instructions the renderer uses. The contents may change; do not depend on them.

Example: {"preserve_composition":true,"preserve_lighting":true}
quality_checksQualityChecksDtorequired

How confident the analysis is.

Show child attributes
overall_confidencenumberrequired

How sure the analysis is overall, from 0 to 1.

Example: 0.92
needs_reviewbooleanrequired

Whether a person should check the plan before translating.

Example: false
review_reasonsstring[]required

Why it needs review, when it does.

Example: []
detected_source_languagestring | null

The language the analysis found in the image.

Example: English
userEditsobject | nullrequired

Unsaved edits the web editor keeps on this version. Usually null.

Example: null
aspectRatiostring | nullrequired

Aspect ratio of this version after a resize, such as 9:16.

Example: null
versionNumbernumberrequired

Number of the current analysis version.

Example: 1
versionIdstring · uuid | nullrequired

ID of the current analysis version.

Example: a1c3e5f7-1234-4abc-9def-0123456789ab
totalVersionsnumberrequired

How many analysis versions the job has.

Example: 1
consumedobject | nullrequired

An older per-step tally kept for the web app. It is not what was charged: use Get a job's credit usage.

Example: {"totalConsumedInConfigure":50,"totalConsumedInReview":0}
assetsJobAssetDto[]required

Images attached to the job in the editor.

Show child attributes
idstring · uuidrequired

ID of the asset.

Example: c3e5a7b9-3456-4cde-9f01-23456789abcd
namestringrequired

Its name, from the uploaded file name.

Example: logo
urlstringrequired

URL of the image.

Example: {{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png
namestring | nullrequired

Name of the job.

Example: summer-sale
viewerLanguageRestrictedbooleanrequired

True when the caller is assigned to review only some languages of a job someone else started.

Example: false
sourcestringrequired

Where the job came from.

Enum values:translate-photohyper-local
Example: translate-photo
originobject | nullrequired

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.

Example: null
messagestring

Only with direct-translate: why there is no plan.

Example: This job was translated directly via API. Open the Review page to see the result.
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
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
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.
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`).
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
GET/v1/galaxy/translate-photo/image-translator/result/{jobId}
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

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