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 |
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/proFor 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 |
| 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. |
| String | Yes | The source language code. Set to |
| String | Yes | The target language code. For a list of supported language pairs, see Supported Translation Language Pairs below. Example: |
| Boolean | No | Specifies whether to use asynchronous mode. The default value 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 translate brand names in images. The default is |
| 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: |
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 |
| String | The response code. |
| String | The response message, such as |
| Object | The final translation result. |
| Object | The usage statistics for this call. |
| Number | The number of images processed. |
| Array[Object] | A list of translation results. |
| String | The URL of the translated image. |
| String | The target language. |
| String | The unique request ID. |
| Boolean | Indicates whether the request was successful: |
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 |
| String | The response code. |
| String | The response message, such as |
| Object | Information about the submitted task. |
| 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. |
| String | The task status. |
| String | The unique request ID. |
| Boolean | Indicates whether the request was successful: |
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/queryTaskResultRequest example
{
"TaskId": "task_20260614_abc123def456"
}Response parameters
Field | Type | Description |
| String | The response code. A value of |
| String | The returned message. |
| Object | The result data. |
| String | The task ID. |
| String | The task status. For a list of possible values, see the table below. |
| Object | The usage statistics. This field is returned only when |
| Number | The number of processed images. |
| Array[Object] | The translation result list. This field is returned only when |
| String | The translated image URL. |
| String | The target language. |
| 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. |
The following table lists the possible values for the task status.
Status value | Description |
| The task is queued for processing. |
| The task is being processed. |
| The task is complete, and the translation result is available. |
| The task has failed. Check the |
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 theImageDownloadFailederror.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
autofor automatic source language detection.
Billing
The service costs $0.013 per image.