| Parameter | Type | Default Value | Description |
|---|---|---|---|
| n | integer | 1 | Number of output images, qwen-image-edit-plus: supports 1–6 |
| negative_prompt | string | — | Negative prompt, describing undesired content • Supports both Chinese and English, ≤500 characters • Example: low quality, blurry, extra fingers, incomplete, incorrect proportions |
| prompt_extend | boolean | true | Whether to enable Intelligent Prompt Optimization • Automatically enhances simple descriptions after enabling to improve generation quality • Only supported by the qwen-image-edit-plus series |
| watermark | boolean | false | Whether to add the "Qwen-Image" watermark to the bottom right corner of the image |
| size | string | — | Custom output resolution, format: "width*height" • Range: 512–2048 pixels • Example: "1024*1536" • If not specified, the aspect ratio of the input image (the last one in case of multiple images) is maintained by default |
| seed | integer | random | Random seed, range [0, 2147483647]• The same seed can improve result consistency (but does not guarantee complete identity) |
{
"model": "qwen-image-edit-plus-2025-12-15",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/thtclx/input1.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/iclsnx/input2.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/gborgw/input3.png"
},
{
"text": "The girl in Figure 1 is wearing the black dress in Figure 2 and sitting in the pose shown in Figure 3"
}
]
}
]
},
"parameters": {
"n": 2,
"size": "1024*2048",
"negative_prompt": "Low Quality",
"prompt_extend": true,
"watermark": false
}
}curl --location --request POST 'https://api.302.ai/aliyun/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen-image-edit-plus-2025-12-15",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/thtclx/input1.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/iclsnx/input2.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/gborgw/input3.png"
},
{
"text": "The girl in Figure 1 is wearing the black dress in Figure 2 and sitting in the pose shown in Figure 3"
}
]
}
]
},
"parameters": {
"n": 2,
"size": "1024*2048",
"negative_prompt": "Low Quality",
"prompt_extend": true,
"watermark": false
}
}'{
"output": {
"choices": [
{
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": [
{
"image": "https://file.302.ai/gpt/imgs/20250821/b7a6dce523e947859f0d1cc3c985f099.png"
}
]
}
}
]
},
"usage": {
"width": 1248,
"image_count": 1,
"height": 832
},
"request_id": "83c1cd46-35aa-9c2a-9e41-ac788b8fcfdc"
}