curl -X POST "https://api.applerouter.ai/v1/images/edits" \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen-image-edit-plus", "input": { "messages": [ { "role": "user", "content": [ { "image": "https://example.com/depth-map.webp" }, { "text": "Generate an image following this depth map: a red bicycle on a muddy path in a forest" } ] } ] }, "parameters": { "n": 2, "prompt_extend": true, "watermark": false } }'
{ "created": 1713833628, "data": [ { "url": "https://example.com/edited-1.png" }, { "url": "https://example.com/edited-2.png" } ] }
Edit images using Alibaba Tongyi Wanxiang image edit models
qwen-image-edit-plus
n
negative_prompt
prompt_extend
watermark
size
使用 Bearer Token 认证。格式: Authorization: Bearer sk-xxxxxx
Show child attributes
成功生成图像