| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| n | integer | 1 | 输出图像数量, qwen-image-edit-plus:支持 1–6 |
| negative_prompt | string | — | 反向提示词,描述不希望出现的内容 • 支持中英文,≤500 字符 • 示例: 低质量, 模糊, 多余手指, 残缺, 错误比例 |
| prompt_extend | boolean | true | 是否启用智能提示词优化 • 开启后自动增强简单描述,提升生成质量 • 仅 qwen-image-edit-plus 系列支持 |
| watermark | boolean | false | 是否在图像右下角添加 "Qwen-Image" 水印 |
| size | string | — | 自定义输出分辨率,格式:"宽*高"• 范围: 512–2048 像素• 示例: "1024*1536"• 若未指定,默认保持输入图(多图时取最后一张)的宽高比 |
| seed | integer | 随机 | 随机种子,范围 [0, 2147483647]• 相同 seed 可提高结果一致性(但不保证完全相同) |
{
"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": "图1中的女生穿着图2中的黑色裙子按图3的姿势坐下"
}
]
}
]
},
"parameters": {
"n": 2,
"size": "1024*2048",
"negative_prompt": "低质量",
"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": "图1中的女生穿着图2中的黑色裙子按图3的姿势坐下"
}
]
}
]
},
"parameters": {
"n": 2,
"size": "1024*2048",
"negative_prompt": "低质量",
"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"
}