HappyHorse 1.0 即将上线了解更多

Qwen Image Edit API

Qwen Image Edit API for programmatic image manipulation with standard and plus variants. Perform inpainting, text replacement, object removal, and style-preserving edits at scale for production workflows.

价格: $0.034(~ 2.3 credits) per image

稳定性最高,保证 99.9% 可用性。推荐用于生产环境。

所有版本使用同一个 API 端点,仅 model 参数不同。

318 (suggested: 2,000)

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

Generated image 1

History

最多保留20条

0 运行中 · 0 已完成

您的生成历史将显示在这里

Pricing

Qwen Image Edit
Image Editing
Price:
$0.034/ 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 图像编辑支持基于蒙版的局部重绘、双语文字替换以及针对高业务量生产工作流的背景/物体编辑。

示例 1

Qwen 图像编辑 API 的能力

智能物体与文字移除

使用 Qwen 图像编辑移除不需要的元素(水印、Logo、物体),并以一致的光照和纹理重构背景。

示例 2

精准文字替换

Qwen 图像编辑 API 的核心优势:替换标牌或海报上的文字,同时更好地保留原始字体风格和视觉一致性。

示例 3

批量图像处理

单次请求最多发送 3 张图像,对一组产品应用一致的修饰规则。限制可能因计划和配置而异。

示例 4

为什么开发者选择 Qwen 图像编辑 API

使用 Qwen 图像编辑进行遵循指令的图像编辑,具备强大的蒙版控制和可靠的文字替换能力,适用于生产工作流。

基于指令的控制

使用自然语言(例如“将衬衫改为红色”)引导 Qwen 图像编辑 API,无需复杂的参数调优。

高保真局部重绘

模型理解上下文,确保编辑区域与原始光照和透视无缝融合。

高性价比扩展

通过按次计费和可预测的用量跟踪来控制成本。实际成本可能随输入尺寸和路由而变化——请在控制台中验证。

如何集成 Qwen 图像编辑 API

针对复杂图像处理的简单请求-响应流程。

1

第 1 步 — 构建负载

向端点发送包含底图(Base64/URL)和可选蒙版图像的 POST 请求。

2

第 2 步 — 定义指令

向 Qwen 图像编辑 API 传递描述所需更改的文本提示词(例如“将猫替换为狗”)。

3

第 3 步 — 获取与部署

在 JSON 响应中接收处理后的图像 URL,即可立即在您的应用中展示。

API 核心特性

专为精细控制和自动化而设计

精准

蒙版引导局部重绘

使用二进制蒙版将编辑限制在特定像素区域。

效率

多图批处理

在单次 API 调用中处理小批量(最多 3 张)图像(取决于计划)。

构图

场景重构

更换背景同时保持主体深度正确。

排版

文字风格保留

修改嵌入的文字而不破坏视觉设计。

全球化

双语指令

原生支持中英文复杂提示词。

经济

透明定价

透明的按次计费模式,支持基于控制台的用量跟踪(价格随路由和工作负载而异)。

Qwen 图像编辑 API 常见问题

Everything you need to know about the product and billing.

API 支持并发请求,但标准层级通常每次批量调用处理最多 3 张图像。速率限制取决于您的 EvoLink 计划。
是的。Qwen 图像编辑支持图像内的文字替换,旨在更好地保留风格和布局。结果可能因输入图像质量和排版复杂度而异。
蒙版应为二进制图像(黑/白),其中白色代表要编辑的区域。它们必须与输入图像的分辨率匹配。
是的,您可以扩展画布边界。只需提供覆盖空白区域的蒙版,并提示模型填充新区域即可。
API 接受标准的网页格式(JPG, PNG),支持 URL 或 Base64 编码,建议文件大小在 10MB 以内以获得最佳延迟。
定价基于用量,按成功的编辑次数计费。实际成本可能随输入尺寸和路由而变化;请以您的控制台用量和账单记录为准。
POST
/v1/images/generations

Generate 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-edit

Image generation model name.

Exampleqwen-image-edit
promptstringRequired

Prompt describing the image to be generated or how to edit the input image.

Notes
  • Limited to 2000 tokens
ExampleA cat playing in the grass
image_urlsarrayRequired

Reference 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
Examplehttps://example.com/image1.png
callback_urlstringOptional

HTTPS 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
Examplehttps://your-domain.com/webhooks/image-task-completed

Request Example

{
  "model": "qwen-image-edit",
  "prompt": "Replace the background of this image",
  "image_urls": ["https://example.com/image1.png"]
}

Response Example

{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "qwen-image-edit",
  "object": "image.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "image",
  "usage": {
    "billing_rule": "per_call",
    "credits_reserved": 1,
    "user_group": "default"
  }
}
Qwen Image Edit Plus API:精准文字编辑与图像修复 | evolink.ai