Image Translation Pro
Image Translation Pro uses a proprietary large multimodal model to enable a more precise semantic understanding of images, significantly improving translation quality. It supports automatic source language detection, returns editor layout information for post-editing, and covers over 400 language pairs, including bridged languages. The service offers both synchronous and asynchronous calling modes, selectable via the Async field.
Introduction
Designed for e-commerce images, Image Translation Pro uses a large multimodal model to achieve a more precise understanding of images, significantly improve translation quality, and enhance its multilingual capabilities. The service supports over 400 language pairs, including bridged languages.
Use cases
E-commerce product images, marketing images, and various other images.
Features
Main subject protection: Allows you to choose whether to translate text on the main subject of an image. This prevents key information, such as embedded product names, from being translated.
Post-translation editing: Returns layout information, such as the position, font, and color of text, to simplify post-editing. Enable this feature by using the
UseImageEditorparameter. For a complete description of the fields, see the image translation editor agreement.Brand name protection: Allows you to choose whether to translate brand names that appear in an image.
Translation intervention: Customize your translation results. Options include keeping the original text (ABC to ABC), specifying a custom translation (ABC to DEF), or omitting a term from the output (ABC to empty). Common use cases include brand name protection. To apply these rules, pass an intervention glossary ID with your request. An intervention glossary typically supports up to 100,000 terms. If you need a larger capacity, contact us.
Invocation modes
Mode | Scenarios | Invocation method |
Synchronous invocation | For single images and low-latency scenarios. | Send a translation request → Wait for the response → Receive the translation result directly. |
Asynchronous invocation | For batch translation, large or high-resolution images, or other long-running tasks. | Send a translation request with |
API 1: Submit a translation task
Submit the image URL and the source/target language. If Async=false (or if omitted), the call is synchronous and returns the result directly. If Async=true, the call is asynchronous and returns a TaskId.
POST /rest/ai/image/translation/proFor request signing instructions, SDK examples (Java, Python, and Go), and online debugging, see the Image Translation Pro API (OpenAPI Portal) on the Alibaba Cloud OpenAPI Developer Portal.
Request parameters
Parameter | Type | Required | Description |
| String | Yes | • Image URL: Must be publicly accessible. • Supported formats: PNG, JPEG, JPG, BMP, WEBP • Pixel dimensions: Width and height must not exceed 4000 pixels. • File size: The source file must be 10 MB or less. |
| String | Yes | The source language code. Set this to |
| String | Yes | The target language code. For a list of supported language pairs, see Supported Language Pairs for Translation. Example: |
| Boolean | No | Specifies whether to use asynchronous mode. The default is |
| Boolean | No | Specifies whether to translate the text on the main subject of the image. The default value is |
| Boolean | No | Specifies whether to return layout information, such as the position, font, and color of the text. If you set this parameter to |
| Boolean | No | Specifies whether to translate brand names in images. The default is |
| String | No | The ID of a glossary to customize the translation. You must create the glossary in the console and provide its ID. If omitted, no glossary is applied. Example: |
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:
Field | Type | Description |
| String | The response code. A value of |
| String | The response message, such as |
| Object | The final translation result. |
| Object | The usage statistics. |
| Number | The number of processed images. |
| Array[Object] | A list of translation results. |
| String | The URL of the translated image. |
| String | The target language. |
| Array[Object] | Array of editor protocol data. Returned only when |
| String | The unique ID of the request. |
| Boolean | Indicates whether the request was successful: |
Editor protocol fields (Data.GenFiles)
When UseImageEditor=true, the response additionally returns the following fields. For more information, see Image Translation Editor Agreement.
No. | Parameter | Type | Description |
1 |
| Array[Object] | The editor protocol information. This field is returned only when |
2 |
| String | The URL of the source image. |
3 |
| Object | The editor details. |
4 |
| Array[String] | An array of global IDs for the translated images. |
5 |
| String | The URL of the image after all text has been erased. |
6 |
| Array[String] | A list of translated languages. |
7 |
| Array[Object] | A list of text areas. |
8 |
| Number | The font size. |
9 |
| String | The original text before translation. |
10 |
| String | The text color, such as |
11 |
| String | Vertical alignment. Valid values: |
12 |
| String | Horizontal alignment. Valid values: |
13 |
| Number | The number of lines in the text area. |
14 |
| Array[Object] | A list of translated text items. |
15 |
| Number | The font size. |
16 |
| String | The language. |
17 |
| Boolean | Indicates whether the text item is valid. |
18 |
| Object | The image inpainting area. |
19 |
| Object | The text area. |
20 |
| String | The color. |
21 |
| String | The translated text. |
22 |
| String | The vertical alignment. |
23 |
| String | The horizontal alignment. |
24 |
| Number | The number of lines in the text area. |
25 |
| Object | The product area. |
26 |
| Array[String] | The font type. |
27 |
| Array[Object] | A list of translation results. |
28 |
| String | The translated language. |
29 |
| String | The URL of the translated image. |
Asynchronous mode response (Async=true): Returns only the TaskId and Status. You must use the TaskId to call the query API to obtain the result.
Field | Type | Description |
| String | The response code. A value of |
| String | The response message, such as |
| Object | The task information. |
| String | The ID of the asynchronous task. Use this ID to query the translation result. For a complete description of the fields returned by the query operation, see "API 2: Query translation result". |
| String | The task status. |
| String | The unique ID of the request. |
| Boolean | Indicates whether the request was successful: |
Response example
Response in synchronous mode:
{
"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
}Response in asynchronous mode (submit):
{
"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 only)
After submitting a task in asynchronous mode, periodically poll the unified asynchronous query API to retrieve the translation results. For details, see Asynchronous Result Query API. The recommended polling interval is 2–5 seconds, with a timeout of 5 minutes.
POST /rest/ai/task/queryTaskResultRequest example
{
"TaskId": "task_20260614_abc123def456"
}Response parameters
Parameter | Type | Description |
| String | The response code. A value of |
| String | The response message. |
| Object | The result data. |
| String | The task ID. |
| String | The task status. For a list of possible values, see the table below. |
| Object | Usage statistics. This field is returned only when |
| Number | The number of processed images. |
| Array[Object] | The list of translation results. This field is returned only when |
| String | The translated image URL. |
| String | The target language. |
| Array[Object] | The editor protocol data, which includes |
| String | The error code. This field is returned only when |
| String | The error message. This field is returned only when |
| String | The request ID. |
| Boolean | Indicates whether the request was successful. |
Possible values for task status:
Status | Description |
| The task has been submitted and is queued for processing. |
| The task is being processed. |
| The task is complete, and the translation results are available. |
| The task failed. Check the |
Response example
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 field has been omitted for brevity; its structure is the same as that returned in synchronous mode.
{
"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 call workflow
# 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: {"Data": {"TaskId": "task_xxx", "Status": "PENDING"}, ...}
# Step 2: Poll for the result (recommended interval: 2 to 5 seconds)
POST /rest/ai/task/queryTaskResult
{
"TaskId": "task_xxx"
}
# Processing: {"Data": {"TaskId": "task_xxx", "Status": "PROCESSING"}, ...}
# Completed: {"Data": {"TaskId": "task_xxx", "Status": "COMPLETED", "ResultList": [...], ...}, ...}Notes
Asynchronous result retention: Asynchronous task results are retained for 7 days by default. After this period, you can no longer retrieve them using the
TaskId. Fetch and save the results before they expire.Result image URL expiration: The URLs for translated images contain an expiration signature and are valid for 7 days by default. Download and save the images before they expire.
Polling frequency: Poll every 2 to 5 seconds to avoid throttling.
Timeout recommendation: A single image translation typically completes in 10 to 30 seconds. Set the timeout for asynchronous polling to 5 minutes.
Synchronous mode timeout: A synchronous call has a default timeout of 60 seconds. For large images or slow network connections, use asynchronous mode instead.
Supported language pairs
Image Translation Pro supports automatic source language detection (auto) and, like Text Translation, supports over 400 translation language pairs (covering 156 languages, including bridging). For the complete table of language pairs and language codes, see Language Pair Mapping.
Error codes
The image translation feature commonly returns the following error codes:
InvalidParameter— The image width or height exceeds 4000 pixels, the file size exceeds 10 MB, or the image format is unsupported (supported formats are PNG, JPEG, JPG, BMP, or WebP).DownstreamUnavailable— The image URL is not accessible or the image download fails (in asynchronous mode, this maps toImageDownloadFailed).InputContentBlocked— The image is blocked by content moderation.
For a complete list of error codes and recommended solutions, see Unified error codes.
Usage limits
Input image: Width and height ≤ 4000 pixels; file size ≤ 10 MB; PNG/JPEG/JPG/BMP/WebP; publicly accessible.
The source and target languages must be different. You can use automatic source language detection (
auto).
Billing
¥0.06 per image.