All Products
Search
Document Center

:Image Translation Pro

Last Updated:Sep 23, 2026

Powered by a proprietary multi-modal large model, Picture Translation Pro Edition achieves a more accurate semantic understanding of images, resulting in significantly improved translation quality. It automatically detects the source language, returns editor layout information, and supports over 400 language pairs (including bridged languages). The service offers both synchronous and asynchronous calling modes, selectable via the Async field.

Introduction

Image Translation Pro is designed specifically for e-commerce images. It leverages a multimodal large model to achieve a more precise understanding of images, significantly improving translation quality. Its capabilities are continuously expanding and being optimized, with support for over 400 language pairs (including bridged languages).

Use cases

E-commerce product images, marketing creatives, and more.

Features

  • Main product information protection: Protect text on an image's main subject from translation. This feature prevents key information, such as embedded product names, from being translated.

  • Brand name protection: Keep brand names in images untranslated to protect your brand identity.

  • Translation intervention: Customize translation results by defining rules to keep the original text (for example, ABC remains ABC), apply a specific translation (ABC becomes DEF), or remove the text entirely (deletes ABC). This is commonly used to protect brand terms. To enable this feature, pass the intervention glossary ID in your API call. You can typically upload up to 100,000 intervention terms. If you require a higher limit, please contact our support team.

Invocation modes

Mode

Use case

Invocation flow

Synchronous invocation

For single images or tasks that require low latency.

Send a translation request → Wait for the response → Retrieve the translation result from the response.

Asynchronous invocation

For batch translation, large or high-resolution images, or other time-consuming tasks.

Send a translation request with Async=true → The API returns a TaskId → Poll the query API with the TaskId for the result.

API 1: Submit a translation task

Submit the image URL, and the source and target languages. A synchronous call (Async=false or omitted) returns the result directly. An asynchronous call (Async=true) returns a TaskId.

POST /rest/ai/image/translation/pro

For details on request signatures, SDK examples in languages like Java, Python, and Go, and online debugging, see the Alibaba Cloud OpenAPI Developer Portal: Image Translation Pro API (OpenAPI Portal)

Request parameters

Parameter

Type

Required

Description

ImageUrl

String

Yes

• Image URL: Must be publicly accessible.

• Formats: png, jpeg, jpg, bmp, webp.

• Dimensions: Both width and height must be 4000 pixels or less.

• Size: The original file size must be 10 MB or less.

SourceLanguage

String

Yes

The source language code. Set to auto for automatic detection. For a list of supported language pairs, see Supported Translation Language Pairs below. Example: "en".

TargetLanguage

String

Yes

The target language code. For a list of supported language pairs, see Supported Translation Language Pairs below. Example: "ko".

Async

Boolean

No

Specifies whether to use asynchronous mode. The default value is false (synchronous). When set to true, the API immediately returns a TaskId, and you must use the Query Translation Result API to obtain the final result.

IncludingProductArea

Boolean

No

Specifies whether to translate the text on the main subject of the image. The default value is false, which protects key information (such as product names) from being translated.

TranslatingBrandInTheProduct

Boolean

No

Specifies whether to translate brand names in images. The default is false (brand names are not translated).

Glossary

String

No

The ID of the intervention glossary, which you must obtain by creating a glossary in the console. If this parameter is left empty, the translation result is not modified. Example: "glossary_1".

Request example

Synchronous call:

{
  "SourceLanguage": "auto",
  "IncludingProductArea": true,
  "TranslatingBrandInTheProduct": true,
  "ImageUrl": "https://example.com/your-image.jpg",
  "TargetLanguage": "en",
  "UseImageEditor": true
}

Asynchronous invocation (add Async=true):

{
  "Async": true,
  "SourceLanguage": "auto",
  "IncludingProductArea": true,
  "TranslatingBrandInTheProduct": true,
  "ImageUrl": "https://example.com/your-image.jpg",
  "TargetLanguage": "en",
  "UseImageEditor": true
}

Response parameters

Synchronous mode response (Async=false or not specified): The Data field directly contains the translation result. The complete fields are as follows:

Parameter

Type

Description

Code

String

The response code. success indicates that the call was successful. For other values, refer to the error codes.

Message

String

The response message, such as Success. If an error occurs, this field contains the error message.

Data

Object

The final translation result.

Data.UsageMap

Object

The usage statistics for this call.

Data.UsageMap.ProcessedImageCount

Number

The number of images processed.

Data.ResultList

Array[Object]

A list of translation results.

Data.ResultList[].FileUrl

String

The URL of the translated image.

Data.ResultList[].Language

String

The target language.

RequestId

String

The unique request ID.

Success

Boolean

Indicates whether the request was successful: true or false.

Asynchronous mode response (Async=true): Only the TaskId and Status are returned. You must use the TaskId to call the query API to obtain the result.

Parameter

Type

Description

Code

String

The response code. success indicates that the task was submitted successfully.

Message

String

The response message, such as Task submitted successfully.

Data

Object

Information about the submitted task.

Data.TaskId

String

The ID of the asynchronous task. Use this ID to query the translation result. For a description of the fields returned by the query, see "API 2: Query translation results" below.

Data.Status

String

The task status. PENDING indicates that the task has been submitted and is awaiting processing.

RequestId

String

The unique request ID.

Success

Boolean

Indicates whether the request was successful: true or false.

Response example

Synchronous mode response:

{
  "Data": {
    "UsageMap": { "ProcessedImageCount": 1 },
    "ResultList": [
      { "Language": "en", "FileUrl": "http://dashscope-a717.oss-cn-beijing.aliyuncs.com/.../0c3f295c-translated.jpg" }
    ],
    "GenFiles": [
      {
        "SrcImage": "https://example.com/your-image.jpg",
        "EditInfo": {
          "ResultImageIds": ["0c39c8ae-5820-11f1-bbb2-8281b7a4eed1"],
          "RepairedUrl": "http://dashscope-a717.oss-cn-beijing.aliyuncs.com/.../repaired.png",
          "Languages": ["en"],
          "TextAreas": [
            {
              "Fontsize": 32,
              "Content": "萌趣造型·清脆响铃",
              "Color": "#515151",
              "VerticalLayout": "center",
              "HorizontalLayout": "left",
              "LineCount": 1,
              "Texts": [
                {
                  "Fontsize": 29,
                  "Language": "en",
                  "Valid": true,
                  "ImageRect": { "Height": 54, "Left": 43, "Top": 83, "Width": 418, "Degree": 0 },
                  "TextRect": { "Height": 30, "Left": 8, "Top": 95, "Width": 488, "Degree": 0 },
                  "Color": "#515151",
                  "Value": "Adorable Design · Crisp Bell Sound",
                  "VerticalLayout": "center",
                  "HorizontalLayout": "center",
                  "LineCount": 1,
                  "OvisErrMsg": "| ovis time: 0.748"
                }
              ]
            }
          ],
          "GoodsRects": { "Height": 0, "Left": 0, "Top": 0, "Width": 0, "Degree": 0 },
          "Font": ["AlibabaSans-Regular"]
        },
        "ResultList": [
          { "Language": "en", "FileUrl": "http://dashscope-a717.oss-cn-beijing.aliyuncs.com/.../0c3f295c-translated.jpg" }
        ]
      }
    ]
  },
  "RequestId": "61785C32-80C2-19A3-9E55-2C3702C84B40",
  "Message": "Success",
  "Code": "success",
  "Success": true
}

Asynchronous mode response (submission):

{
  "Data": {
    "TaskId": "task_20260614_abc123def456",
    "Status": "PENDING"
  },
  "RequestId": "72896D43-91D3-2AB4-AF66-3D4813D95C51",
  "Message": "Task submitted successfully",
  "Code": "success",
  "Success": true
}

API 2: Query translation results (asynchronous mode only)

After you submit a task in asynchronous mode, poll the unified asynchronous query API to retrieve the translation result. For more information, see Asynchronous Result Query API. We recommend a polling interval of 2 to 5 seconds and a timeout of 5 minutes.

POST /rest/ai/task/queryTaskResult

Request example

{
  "TaskId": "task_20260614_abc123def456"
}

Response parameters

Field

Type

Description

Code

String

The response code. A value of success indicates that the call was successful.

Message

String

The returned message.

Data

Object

The result data.

Data.TaskId

String

The task ID.

Data.Status

String

The task status. For a list of possible values, see the table below.

Data.UsageMap

Object

The usage statistics. This field is returned only when Status is COMPLETED.

Data.UsageMap.ProcessedImageCount

Number

The number of processed images.

Data.ResultList

Array[Object]

The translation result list. This field is returned only when Status is COMPLETED.

Data.ResultList[].FileUrl

String

The translated image URL.

Data.ResultList[].Language

String

The target language.

Data.ErrorCode

String

The error code. This field is returned only when Status is FAILED.

Data.ErrorMessage

String

The error message. This field is returned only when Status is FAILED.

RequestId

String

The request ID.

Success

Boolean

Indicates whether the request was successful.

The following table lists the possible values for the task status.

Status value

Description

PENDING

The task is queued for processing.

PROCESSING

The task is being processed.

COMPLETED

The task is complete, and the translation result is available.

FAILED

The task has failed. Check the ErrorCode and ErrorMessage for details.

Response examples

Task in progress:

{
  "Data": {
    "TaskId": "task_20260614_abc123def456",
    "Status": "PROCESSING"
  },
  "RequestId": "83907E54-A2E4-3BC5-B077-4E5924EA6D62",
  "Message": "Task is processing",
  "Code": "success",
  "Success": true
}

Task completed (The GenFiles structure is the same as in synchronous mode and is omitted for brevity):

{
  "Data": {
    "TaskId": "task_20260614_abc123def456",
    "Status": "COMPLETED",
    "UsageMap": { "ProcessedImageCount": 1 },
    "ResultList": [
      { "Language": "en", "FileUrl": "http://dashscope-a717.oss-cn-beijing.aliyuncs.com/.../result.jpg" }
    ],
    "GenFiles": []
  },
  "RequestId": "94A18F65-B3F5-4CD6-C088-5F6A35FB7E73",
  "Message": "Success",
  "Code": "success",
  "Success": true
}

Task failed:

{
  "Data": {
    "TaskId": "task_20260614_abc123def456",
    "Status": "FAILED",
    "ErrorCode": "ImageDownloadFailed",
    "ErrorMessage": "Failed to download source image from the provided URL."
  },
  "RequestId": "A5B29076-C406-5DE7-D199-6078466C8F84",
  "Message": "Task failed",
  "Code": "success",
  "Success": true
}

Asynchronous invocation flow

# Step 1: Submit an asynchronous translation task
POST /rest/ai/image/translation/pro
{
  "Async": true,
  "ImageUrl": "https://example.com/product.jpg",
  "SourceLanguage": "zh",
  "TargetLanguage": "en"
}
# Response (Pending): {"Data": {"TaskId": "task_xxx", "Status": "PENDING"}, ...}

# Step 2: Poll for query results (Recommended polling interval: 2-5 seconds)
POST /rest/ai/task/queryTaskResult
{
  "TaskId": "task_xxx"
}
# Response (Processing): {"Data": {"TaskId": "task_xxx", "Status": "PROCESSING"}, ...}
# Response (Completed): {"Data": {"TaskId": "task_xxx", "Status": "COMPLETED", "ResultList": [...], ...}, ...}

Notes

  • Asynchronous result retention: We retain asynchronous task results for 7 days. After this period, you cannot retrieve them using the TaskId. Please retrieve and save your results before they expire.

  • Translated image validity: Translated image URLs contain an expiring signature and are valid for 7 days. Download and save the image before the URL expires.

  • Polling frequency: We recommend polling for results every 2 to 5 seconds. Polling more frequently may trigger throttling.

  • Timeout recommendation: An image translation typically takes 10 to 30 seconds. We recommend setting a timeout of 5 minutes for asynchronous polling.

  • Synchronous mode timeout: A synchronous call has a default timeout of 60 seconds. If the image is large or your network connection is slow, we recommend using asynchronous mode instead.

Supported language directions

Image Translation Pro supports over 400 language pairs (covering 156 languages, including bridging), which is consistent with Text Translation, and supports source language auto-detection (auto). For the complete list of language pairs and language codes, see Language Direction Mapping.

Error codes

Image Translation uses a unified error code system. This service commonly returns the following error codes:

  • InvalidParameter: The image width or height exceeds 4,000 pixels, the file size exceeds 10 MB, or the format is not supported (PNG, JPEG, JPG, BMP, or WebP).

  • DownstreamUnavailable: The image URL is inaccessible or the image download fails. In asynchronous mode, this is reported as the ImageDownloadFailed error.

  • InputContentBlocked: The content security review blocked the image.

For a complete list of error codes and recommended actions, see Error Codes.

Limitations

  • Input image: The width and height must not exceed 4,000 pixels, and the file size must be 10 MB or less. Supported formats: PNG, JPEG, JPG, BMP, and WebP. The image must be accessible over a public network.

  • The source and target languages must be different. Use auto for automatic source language detection.

Billing

The service costs $0.013 per image.