##所有接口均需要使用Bearer Token进行认证##
获取 API Key :
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY模型名称
qwen-image-edit "qwen-image-edit"
提示词,描述想要生成的图像,或描述如何编辑已输入的图像,限制为2000token
2000"替换这张图像的背景"
参考图像 URL列表
注意:
3张[384-3072]像素范围内。.jpg、.jpeg、.png、.bmp、.webp、.tiff.png、.jpg)[
"https://example.com/image1.png",
"https://example.com/image2.png"
]任务完成后的HTTPS回调地址
回调时机:
安全限制:
2048字符回调机制:
10秒3次(会分别在失败的1秒/2秒/4秒后进行重试)"https://your-domain.com/webhooks/image-task-completed"
图像任务创建成功
任务创建时间戳
1757156493
任务ID
"task-unified-1757156493-imcg5zqt"
实际使用的模型名称
"qwen-image-edit"
任务的具体类型
image.generation.task 任务进度百分比 (0-100)
0 <= x <= 1000
任务状态
pending, processing, completed, failed "pending"
异步任务信息
任务的输出类型
text, image, audio, video "image"
使用量和计费信息