qwen-image-edit (图生图)
方法: POST路径: /v1/images/edits
仅支持一张参考图,支持放 prompt
请求参数
Header 参数
text
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}Body 参数 multipart/form-data
text
model
string
必需
示例:
qwen-image-edit
prompt
string
必需
示例:
xxx
image
file
必需
示例:
file://E:\Downloads\1745936044575403500.png请求示例代码
Shell
bash
curl --location --request POST '/v1/images/edits' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--form 'model="qwen-image-edit"' \
--form 'prompt="xxx"' \
--form 'image=@"E:\\Downloads\\1745936044575403500.png"'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
object示例
json
{}