edit_image
Edit images using reference photos and text instructions. Change outfits, backgrounds, or styles while preserving subjects.
Instructions
图生图 / 图像编辑(I2I)— 基于 1-3 张参考图结合编辑指令进行精确编辑。
可传入图像 URL 或 Base64 编码,模型会根据文本指令对参考图进行编辑生成。 适用于: 换装、换背景、风格转换、人物保留编辑等场景。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | 生成图像数量,1-6 张。 | |
| seed | No | 随机数种子(0-2147483647)。固定种子可使生成结果相对稳定。 | |
| size | No | 输出图像分辨率,格式为 "宽*高"(如 1024*1024)。不指定则由模型自动推荐。范围: 512*512 至 2048*2048。 | |
| model | No | 模型名称。qwen-image-3.0-pro 质量更高,qwen-image-3.0 兼顾质量与速度。 | qwen-image-3.0-pro |
| images | Yes | 参考图像列表(1-3 张)。每项为公网 URL 或 Base64 编码。格式: JPG/JPEG/PNG/BMP/TIFF/WEBP/GIF,单张不超过 10MB。 | |
| prompt | Yes | 编辑指令(正向提示词),描述期望的编辑效果、风格和构图。支持中英文。 | |
| watermark | No | 是否添加水印。 | |
| prompt_extend | No | 是否开启提示词智能改写(建议开启)。 | |
| negative_prompt | No | 反向提示词,描述不希望出现在画面中的内容。 | |
| prompt_extend_mode | No | 提示词改写方式。I2I 仅支持 direct,传入 agent 将被拒绝。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |