Call qwen-mt-image-2.0 image translation synchronously and receive the translated image URL directly
In synchronous mode, the request waits for processing to complete and returns the translated image URL directly — no task polling needed. Only
Use domain hint and terminology to improve translation quality:
qwen-mt-image-2.0 supports synchronous calls.
Difference from asynchronous calls: synchronous calls do not require the X-DashScope-Async header, and the response contains the translated image URL immediately.
Request
POST https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/image2image/image-synthesis
Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Content-Type | string | Yes | Must be application/json |
| Authorization | string | Yes | API Key authentication: Bearer $DASHSCOPE_API_KEY |
Do not set the
X-DashScope-Async: enable header for synchronous calls. Setting it switches to asynchronous mode.Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name. Synchronous mode only supports qwen-mt-image-2.0 |
| input | object | Yes | Input parameters |
| input.image_url | string | Yes | Public URL of the image. Supports JPG/JPEG/PNG/BMP/TIFF/WEBP, 15-8192px width/height, aspect ratio 1:10 to 10:1, max 100MB |
| input.source_lang | string | Yes | Source language. Accepts full name, language code, or auto (auto-detect), case-insensitive |
| input.target_lang | string | Yes | Target language. Accepts full name or language code, case-insensitive |
| input.ext | object | No | Extension parameters |
| input.ext.domainHint | string | No | Domain hint in English describing the translation context and style, max 200 words |
| input.ext.sensitives | array | No | Sensitive words list — exact matches will be skipped during translation, case-sensitive |
| input.ext.terminologies | array | No | Terminology list, each item has src (source text) and tgt (target text) |
| input.ext.config.imageSegment | boolean | No | Enable image subject segmentation. When enabled, text on subjects (people, products, logos) is skipped. Default false |
Request examples
Response
Response parameters
| Parameter | Type | Description |
|---|---|---|
| output.image_url | string | URL of the translated image, same dimensions as the original, JPG format. Valid for 24 hours — download promptly |
| usage.image_count | integer | Number of generated images, always 1 |
| request_id | string | Unique request identifier for troubleshooting |
Success response
Error response
Supported languages
qwen-mt-image-2.0 supports translation between any combination of the following 55 languages — no restriction requiring Chinese or English as source/target.
Set source_lang to auto for automatic language detection.
Full language list
Full language list
| Language | Code |
|---|---|
| Simplified Chinese | zh |
| Traditional Chinese | zh-tw |
| English | en |
| Japanese | ja |
| Korean | ko |
| German | de |
| Spanish | es |
| Russian | ru |
| French | fr |
| Portuguese | pt |
| Italian | it |
| Vietnamese | vi |
| Indonesian | id |
| Malay | ms |
| Thai | th |
| Arabic | ar |
| Dutch | nl |
| Polish | pl |
| Turkish | tr |
| Ukrainian | uk |
| Greek | el |
| Hungarian | hu |
| Romanian | ro |
| Czech | cs |
| Swedish | sv |
| Danish | da |
| Finnish | fi |
| Norwegian | no |
| Hindi | hi |
| Tamil | ta |
| Telugu | te |
| Nepali | ne |
| Persian | fa |
| Azerbaijani | az |
| Kazakh | kk |
| Uzbek | uz |
| Mongolian | mn |
| Uyghur | ug |
| Belarusian | be |
| Bulgarian | bg |
| Serbian | sr |
| Croatian | hr |
| Bosnian | bs |
| Slovenian | sl |
| Slovak | sk |
| Macedonian | mk |
| Latvian | lv |
| Lithuanian | lt |
| Irish | ga |
| Luxembourgish | lb |
| Afrikaans | af |
| Latin | la |
| Chechen | ce |
| Ingush | inh |
| Mari | chm |