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

Auth Required

Read a brand identity from a public website, up to 6 images or a PDF brand book: name, colors, fonts, tone of voice and visual style. Nothing is saved: check the result, then pass it to Create a brand kit. The call waits for the analysis, usually 10 to 30 seconds. Fields that could not be found come back empty. Put images or a PDF in storage first with Get an upload URL (kind: image or kind: pdf) and send their keys as imageUploadKeys or pdfUploadKey, or send the files base64 in images or pdf: up to 15 MB in all.

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

Credits: One extraction, charged before the source is read. Refunded in full if the extraction fails, including when the website cannot be fetched or a file is refused.

Rate What it covers Price
Brand identity extraction AI-extracting brand colors, fonts, tone and visual style from a URL, images, or a PDF. 1000 credits

Bodyrequiredapplication/json

sourcestringrequired

What to read the brand from: url (a public website, sent in url), images (sent in images) or pdf (a brand book, sent in pdf).

Enum values:urlimagespdf
Example: images
brandNamestring

Name of the brand, if you know it. It is used as the name of the result.

Example: Northwind Coffee
urlstring

A public website address, required when source is url. http:// is fetched as https://.

Example: https://www.acme.com
imagesExtractFileDto[]

Images that show the brand, such as screenshots or ads, base64. Up to 6. When source is images, send these or imageUploadKeys.

Show child attributes
mimeTypestringrequired

MIME type of the file. Images: PNG, JPG, WebP, HEIC or HEIF. A PDF: application/pdf.

Example: image/png
datastringrequired

The file, base64-encoded, without a data: prefix.

Example: iVBORw0KGgoAAAANSUhEUgAA…
imageUploadKeysstring[]

The images, put in storage first: the uploadKeys from Get an upload URL (kind: image), one per image, up to 6 and 15 MB in all. The files then never pass through this API. Used instead of images when both are sent.

Example: ["1f0c…/staged-uploads/7b9e….png"]
pdfExtractFileDto

A brand book or style guide as a PDF, base64. When source is pdf, send this or pdfUploadKey.

Show child attributes
mimeTypestringrequired

MIME type of the file. Images: PNG, JPG, WebP, HEIC or HEIF. A PDF: application/pdf.

Example: image/png
datastringrequired

The file, base64-encoded, without a data: prefix.

Example: iVBORw0KGgoAAAANSUhEUgAA…
pdfUploadKeystring

The PDF, put in storage first: the uploadKey from Get an upload URL (kind: pdf), up to 15 MB. The file then never passes through this API. Used instead of pdf when both are sent.

Example: 1f0c…/staged-uploads/7b9e….pdf

Responses

201The brand identity found. It is not saved.
application/json
namestringrequired

Name of the brand: your brandName when you sent one, otherwise the name found. Empty when none was found.

Example: Northwind Coffee
websitestringrequired

The brand's website, as found or, for url, the address you sent. Empty when unknown.

Example: https://www.northwindcoffee.com
toneOfVoicestringrequired

How the brand speaks. Empty when unknown.

Example: Friendly and down to earth, with a love of craft.
headingFontstringrequired

Font for headings. Empty when unknown.

Example: Playfair Display
bodyFontstringrequired

Font for body text. Empty when unknown.

Example: Source Sans Pro
primaryColorsstring[]required

Brand colors as upper-case hex codes, main color first. Up to 5; can be empty.

Example: ["#3B2416","#E8D5B7"]
visualStylesstring[]required

Words that describe the visual style. Up to 20.

Example: ["warm","artisanal"]
sourcestringrequired

The source you sent.

Enum values:urlimagespdf
Example: url
400A field failed validation, or the source could not be used (any credits charged are refunded): - `Provide a URL.`, `Provide at least one image.` or `Provide a PDF file.`: the field that `source` needs is missing. - `Unsupported image type "<type>". Use PNG, JPG, WebP, HEIC, HEIF.` or `Unsupported file — upload a PDF.` - `Enter a valid website URL.`, `Only http(s) URLs are supported.` or `Enter a public website address (https://…).` - `This website blocked our request (it protects against automated access). Try uploading a screenshot or PDF of the site instead.`, `Could not fetch the website (HTTP <status>).`, `That website took too long to respond. Try again.`, `That page is too large to analyze. …` or `Could not reach that website. …` - `The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.` or `That upload isn't a <file> this step takes.`: an upload key that is wrong, used, unfinished or signed for another `kind`.
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 one extraction, or your organization owes credits. Nothing was analysed, and staged files can be sent again.
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
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
413The files named by `imageUploadKeys` add up to more than 15 MB (`The files together are larger than the 15 MB limit.`). Nothing is 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
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 analysis failed (`Brand extraction failed. Please try again.`). Its credits are 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/brand-kit/extract
curl '{{API_BASE_URL}}/v1/brand-kit/extract' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "source": "images",
  "brandName": "Northwind Coffee",
  "url": "https://www.acme.com",
  "images": [
    {
      "mimeType": "image/png",
      "data": "iVBORw0KGgoAAAANSUhEUgAA…"
    }
  ],
  "imageUploadKeys": [
    "1f0c…/staged-uploads/7b9e….png"
  ],
  "pdf": {
    "mimeType": "image/png",
    "data": "iVBORw0KGgoAAAANSUhEUgAA…"
  },
  "pdfUploadKey": "1f0c…/staged-uploads/7b9e….pdf"
}'
{
  "name": "Northwind Coffee",
  "website": "https://www.northwindcoffee.com",
  "toneOfVoice": "Friendly and down to earth, with a love of craft.",
  "headingFont": "Playfair Display",
  "bodyFont": "Source Sans Pro",
  "primaryColors": [
    "#3B2416",
    "#E8D5B7"
  ],
  "visualStyles": [
    "warm",
    "artisanal"
  ],
  "source": "url"
}

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