Qwen Image Edit API
Upload 1-3 reference images to start editing. Supported formats: jpg, png, webp, bmp, tiff.
A cute fluffy cat captain sitting in a spaceship commander chair, wearing a small headset and a futuristic collar. Pixar animation style, 3D render, vibrant colors, soft volumetric lighting. The cockpit is cozy with round shapes, galaxy background outside the window. Octane render, high fidelity, adorable expression.

Upload up to 3 images (max 10MB each)
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, BMP, WEBP, TIFF
Maximum file size: 10MB; Maximum files: 3

History
最多保留20条0 运行中 · 0 已完成
Pricing
| Model | Mode | Price |
|---|---|---|
| Qwen Image Edit | Image Editing | Popular $0.0319/ image(2.3 Credits) |
If it's down, we automatically use the next cheapest available—ensuring 99.9% uptime at the best possible price.
使用 Qwen 图像编辑 API 自动化图像编辑
使用自然语言指令执行精准的区域性图像编辑。Qwen 图像编辑支持基于蒙版的局部重绘、双语文字替换以及针对高业务量生产工作流的背景/物体编辑。

Qwen 图像编辑 API 的能力
为什么开发者选择 Qwen 图像编辑 API
使用 Qwen 图像编辑进行遵循指令的图像编辑,具备强大的蒙版控制和可靠的文字替换能力,适用于生产工作流。
基于指令的控制
使用自然语言(例如“将衬衫改为红色”)引导 Qwen 图像编辑 API,无需复杂的参数调优。
高保真局部重绘
模型理解上下文,确保编辑区域与原始光照和透视无缝融合。
高性价比扩展
通过按次计费和可预测的用量跟踪来控制成本。实际成本可能随输入尺寸和路由而变化——请在控制台中验证。
如何集成 Qwen 图像编辑 API
针对复杂图像处理的简单请求-响应流程。
第 1 步 — 构建负载
向端点发送包含底图(Base64/URL)和可选蒙版图像的 POST 请求。
第 2 步 — 定义指令
向 Qwen 图像编辑 API 传递描述所需更改的文本提示词(例如“将猫替换为狗”)。
第 3 步 — 获取与部署
在 JSON 响应中接收处理后的图像 URL,即可立即在您的应用中展示。
API 核心特性
专为精细控制和自动化而设计
蒙版引导局部重绘
使用二进制蒙版将编辑限制在特定像素区域。
多图批处理
在单次 API 调用中处理小批量(最多 3 张)图像(取决于计划)。
场景重构
更换背景同时保持主体深度正确。
文字风格保留
修改嵌入的文字而不破坏视觉设计。
双语指令
原生支持中英文复杂提示词。
透明定价
透明的按次计费模式,支持基于控制台的用量跟踪(价格随路由和工作负载而异)。
Qwen 图像编辑 API 常见问题
Everything you need to know about the product and billing.
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/images/generationsGenerate Image
Create an image generation task using text prompts or reference images. Supports text-to-image, image-to-image, and image editing modes.
Asynchronous processing mode, use the returned task ID to .
Generated image links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: qwen-image-editImage generation model name.
qwen-image-editpromptstringRequiredPrompt describing the image to be generated or how to edit the input image.
Notes
- Limited to 2000 tokens
A cat playing in the grassimage_urlsarrayRequiredReference image URL list for image editing.
Notes
- Max 3 images per request
- Image dimensions must be within 384-3072 pixels
- Formats: .jpg, .jpeg, .png, .bmp, .webp, .tiff
- URLs must be directly accessible by the server
https://example.com/image1.pngcallback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered on completion, failure, or cancellation
- Sent after billing confirmation
- HTTPS only, no internal IPs
- Max length: 2048 chars
- Timeout: 10s, Max 3 retries
https://your-domain.com/webhooks/image-task-completed

