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

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.

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

Auth Required

Turn up to 25 created images into sources for image translation: each comes back with its storage key (send it as sourceKey when you start an image translation), a preview url and a file name. Images that cannot be translated, because they are deleted, failed, still being made or not in your organization, are listed in skipped.

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

Bodyrequiredapplication/json

generationIdsstring[]required

IDs of created images to prepare for translation, in the order you want them back. 1 to 25.

Example: ["4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"]

Responses

201The images, in the order you sent.
application/json
sourcesTranslationSourceDto[]required

The images that can be translated, in the order you sent.

Show child attributes
generationIdstring · uuidrequired

ID of the created image.

Example: 4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f
keystringrequired

Storage key of the image. Send it as sourceKey to start an image translation.

Example: 0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png
urlstringrequired

Signed URL to preview the image. It expires.

Example: {{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…
namestringrequired

A short file name for the image: its channel (or creation) and the start of its ID.

Example: creation-4f2b8c.png
skippedstring[]required

IDs left out: not in your organization, deleted, still being made or failed.

Example: ["9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"]
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
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-creator/translation-sources
curl '{{API_BASE_URL}}/v1/galaxy/translate-photo/image-creator/translation-sources' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "generationIds": [
    "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
  ]
}'
{
  "sources": [
    {
      "generationId": "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f",
      "key": "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png",
      "url": "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…",
      "name": "creation-4f2b8c.png"
    }
  ],
  "skipped": [
    "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
  ]
}

Get an upload URL for an edit

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