Qwen图像编辑API 响应参数 参数 类型 说明 output object 输出结果对象 output.choices array 结果列表 choices[0].finishreason string 任务结束原因,正常完成返回stop choices[0].message object 返回消息 message.role string 固定assistant message.content array 生成图片数组 usage object 资源消耗 usage.imagecount int 生成图片张数 usage.width / height int 输出图像像素宽高 requestid string 请求唯一 ID,用于排查问题 请求/响应示例 请求示例 plaintext curl location ' header 'ContentType: application/json' header "Authorization: Bearer ${YOURAPPKEY}" data '{ "model": "qwenimage2.0pro", "input": { "messages": [ { "role": "user", "content": [ { "image": " }, { "text": "把图片中的红色花朵修改为蓝色花朵,其他画面保持不变。" } ] } ] }, "parameters": { "n": 1, "size": "20482048" } }' 成功响应示例 plaintext { "output": { "choices": [ { "finishreason": "stop", "message": { "content": [ { "image": " } ], "role": "assistant" } } ] }, "usage": { "height": 2048, "imagecount": 1, "width": 2048 }, "requestid": "00d06a841873c0a83bfaf1fae0184625" }
来自: