Image Translation Pro (Async)
Product overview
Image Translation Pro is designed specifically for e-commerce images. It uses multimodal large model technology to understand images with greater precision, significantly improving translation quality.
The service continuously expands and optimizes its multilingual translation capabilities, supporting over 400 language pairs, including bridged translations.
Use cases
E-commerce product images, marketing graphics, and images for various other scenarios.
Features
Preserve text on the product: You can choose not to translate text that appears on the product itself. This prevents key information, such as embedded product names, from being translated.
Post-translation editing: You can choose whether the service returns layout information, such as text position, font, and color. This enables post-editing in an integrated image editor. The SDK package for the image editor is not yet available. Please check platform announcements for updates.
Preserve brand names: You can choose whether to translate brand names that appear in an image. This helps preserve your brand identity by ensuring brand names are not translated.
Translation intervention: You can customize translation results by using a glossary. This includes rules for not translating specific terms (for example, ABC remains ABC), specifying a translation (for example, ABC becomes DEF), or omitting a term (for example, by translating it to an empty string). This feature is commonly used for brand term protection. To apply these rules, simply pass the corresponding glossary ID in your API call. A glossary can contain up to 100,000 entries. If you need a larger capacity, contact us for assistance.
Getting started
Overview
Image Translation Pro supports both synchronous and asynchronous calls. This document describes asynchronous calls. For synchronous calls, see Image Translation Pro.
The asynchronous interfaces for image translation and other features use the same process for retrieving results, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java code for message consumption and decryption.
For a detailed guide on the integration process, subscription rules, message formats, encryption protocols, and how to implement asynchronous calls, see Async API call instructions.
API reference
Submit a translation task
Request parameters
Parameter | Type | Required | Description |
| String | Required | • Image URL: Must be publicly accessible. • Formats: PNG, JPEG, JPG, BMP, WEBP. • Dimensions: The width and height must not exceed 4,000 pixels. • File size: The original file size must be less than or equal to 10 MB. |
| String | Required | The source language code. Set to |
| String | Required | The target language code. For a list of supported language pairs, see the appendix. Example: |
| Boolean | Optional | Specifies whether to use asynchronous mode. The default value is |
| Boolean | Optional | Specifies whether to translate text on the product body. Set to |
| Boolean | Optional | Specifies whether to return layout information, such as text position, font, and color. When set to |
| Boolean | Optional | Specifies whether to translate brand names in the image. The default value is |
| String | Optional | The ID of the glossary to apply. You must create the glossary in the console and provide its ID here. If this parameter is left empty, the translation results are not modified. Example: |
Request example
Asynchronous call example:
{
"Async": true,
"SourceLanguage": "auto",
"IncludingProductArea": "true",
"TranslatingBrandInTheProduct": "true",
"ImageUrl": "https://img.alicdn.com/imgextra/i3/O1CN01HTDhDi28Fd85ZYs7H_!!6000000007903-0-tps-800-800.jpg",
"TargetLanguage": "en",
"UseImageEditor": "true"
}Response parameters
Upon successful submission, the API returns a TaskId but does not include the translation result or final usage data. A Success=true response indicates that the task was submitted successfully, not that it has completed. Save the task ID and follow the Async API call instructions to query the task status or receive result notifications.
Parameter | Type | Description |
| String | The response code. A value of |
| String | Information about the response. Example: |
| Object | Task information. |
| String | The asynchronous task ID, which is used to query the translation result. Example: |
| String | The task status. |
| Boolean | Indicates whether the submission was successful. Valid values are |
Async response example
{
"Data": {
"TaskId": "task_20260614_abc123def456",
"Status": "PENDING"
},
"RequestId": "72896D43-91D3-2AB4-AF66-3D4813D95C51",
"Message": "Task submitted successfully",
"Code": "success",
"Success": true
}Throttling and exception handling
The default throttling limit for asynchronous submissions is 1 QPS per Alibaba Cloud account. To request a higher limit, contact our product team with your user ID (UID).
The public metadata configuration for QueryAsyncTaskResult is 5 queries per second. The actual quota and dimensions for your account are subject to the service provider's configuration. For multiple in-progress text tasks, you should manage the query frequency uniformly. Set the interval based on the acceptable latency for your business. Use backoff and jitter to handle throttling and transient errors, and set a local wait timeout.
Read the Code, Message, and RequestId if an API call fails. If a task fails, read the failure information from the task results. For a list of common error codes, see Error codes. Do not add unverified error codes. Retrying a submission may create a new task. The current documentation does not define idempotent submission parameters for text tasks or a cancellation API.
For troubleshooting, the service retains the RequestId, TaskId, invocation time, and status for submissions and queries, but does not record the full text for translation, plaintext messages, or secret keys. Implement general consumption confirmation, redelivery, idempotence, and query fallbacks as specified in the common access guide.
Error codes
For a list of error codes, see the Asynchronous result query API documentation.
Usage notes
Asynchronous task result retention: Translation results are stored for 7 days, after which they are deleted and cannot be retrieved. Fetch and save your results promptly.
Translated image validity: By default, the URL for the translated image contains a signature and is valid for 7 days. Download and save the image promptly.
Recommended polling frequency: Poll every 2 to 5 seconds to avoid throttling.
Recommended timeout: A single image translation typically completes within 10 to 30 seconds. We recommend setting the polling timeout to 5 minutes.
Synchronous mode timeout: The default timeout for synchronous calls is 60 seconds. If you are translating large images or have a slow network connection, use asynchronous mode.
Supported languages
For a detailed list of supported language pairs, see Language pair mapping.
Billing
For details, see Billing.