edit_image
Edit images by combining one to three reference images with a text prompt. Generate a new image that reflects the instructed style, content, or composition changes.
Instructions
图生图 / 图像编辑:基于 1-3 张参考图与编辑指令生成新图。
Args: image: 参考图(必填)。支持本地绝对/相对路径、http(s) URL 或 data: URL。 prompt: 编辑指令,描述期望的输出内容、风格与构图。 model: 模型名。默认 qwen-image-3.0;或 OpenAI 兼容的编辑模型(如 qwen-image-3-edit)。 image2, image3: 第 2、3 张参考图(DashScope 原生接口最多 3 张)。 mask: 蒙版图(仅 OpenAI 兼容 /images/edits 后端支持;DashScope 原生接口不支持)。 size: 输出分辨率,OpenAI 风格 "宽x高";不填由模型自动推荐。 n: 生成张数。 response_format: "url" 或 "b64_json"。 seed: 随机种子。 negative_prompt: 反向提示词(qwen-image-3.0 支持)。 prompt_extend: 是否开启提示词智能改写。 watermark: 是否添加水印(仅 qwen-image-3.0 支持)。 strength: 编辑强度/与原图相似度(仅 OpenAI 兼容后端,可选)。 output_dir: 本地保存目录(相对路径相对于全局输出目录)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| mask | No | ||
| seed | No | ||
| size | No | ||
| image | Yes | ||
| model | No | ||
| image2 | No | ||
| image3 | No | ||
| prompt | Yes | ||
| strength | No | ||
| watermark | No | ||
| output_dir | No | ||
| prompt_extend | No | ||
| negative_prompt | No | ||
| response_format | No | url |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||