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

Auth Required

Export the current images of several variants in one request, as base64 in JSON, with the same mode and format options as Export a variant. Variants that cannot be exported, or are not in your organization, are listed in failed with the reason; the others are in results.

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

Bodyrequiredapplication/json

variantIdsstring · uuid[]required

IDs of the variants to export. Duplicates are ignored.

Example: ["7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"]
modestring

quality keeps the size the image was rendered at; exact resizes it to the variant’s width × height.

Enum values:qualityexact
Default: qualityExample: exact
formatstring

File format. jpg is the same as jpeg.

Enum values:pngjpegjpg
Default: pngExample: png

Responses

201The exported images, and the variants that failed.
application/json
dataExportVariantsDataDtorequired

The result.

Show child attributes
resultsExportedVariantDto[]required

The variants that were exported.

Show child attributes
variantIdstring · uuidrequired

ID of the variant.

Example: 7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c
filenamestringrequired

Suggested file name: design name and pixel size.

Example: Summer_sale_banner-1080x1920.png
contentTypestringrequired

Type of the image.

Enum values:image/pngimage/jpeg
Example: image/png
base64stringrequired

The image, base64-encoded.

Example: iVBORw0KGgoAAAANSUhEUgAA…
failedFailedExportDto[]required

The variants that could not be exported.

Show child attributes
variantIdstring · uuidrequired

ID of the variant that could not be exported.

Example: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a
errorstringrequired

Why, such as Variant not found or Variant has no generated image to export.

Example: Variant has no generated image to export
400A field failed validation, for example `variantIds` is empty or holds 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
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/adapt/variants/export
curl '{{API_BASE_URL}}/v1/galaxy/translate-photo/adapt/variants/export' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "variantIds": [
    "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
  ],
  "mode": "exact",
  "format": "png"
}'
{
  "data": {
    "results": [
      {
        "variantId": "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c",
        "filename": "Summer_sale_banner-1080x1920.png",
        "contentType": "image/png",
        "base64": "iVBORw0KGgoAAAANSUhEUgAA…"
      }
    ],
    "failed": [
      {
        "variantId": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
        "error": "Variant has no generated image to export"
      }
    ]
  }
}

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