Skip to main content
Glama
wchiway
by wchiway

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

TableJSON Schema
NameRequiredDescriptionDefault
nNo生成图像数量,1-6 张。
seedNo随机数种子(0-2147483647)。固定种子可使生成结果相对稳定。
sizeNo输出图像分辨率,格式为 "宽*高"(如 1024*1024)。不指定则由模型自动推荐。范围: 512*512 至 2048*2048。
modelNo模型名称。qwen-image-3.0-pro 质量更高,qwen-image-3.0 兼顾质量与速度。qwen-image-3.0-pro
imagesYes参考图像列表(1-3 张)。每项为公网 URL 或 Base64 编码。格式: JPG/JPEG/PNG/BMP/TIFF/WEBP/GIF,单张不超过 10MB。
promptYes编辑指令(正向提示词),描述期望的编辑效果、风格和构图。支持中英文。
watermarkNo是否添加水印。
prompt_extendNo是否开启提示词智能改写(建议开启)。
negative_promptNo反向提示词,描述不希望出现在画面中的内容。
prompt_extend_modeNo提示词改写方式。I2I 仅支持 direct,传入 agent 将被拒绝。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden for behavioral disclosure. It explains that images can be supplied as URL or Base64 and that the model generates an edited output based on the prompt. However, it does not mention any limitations, resource costs, or the return format—though the output schema may cover the latter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences followed by a short list of use cases, immediately front-loaded with the purpose. There is no redundant or extraneous wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (10 parameters) and the presence of an output schema, the description covers the core functionality and typical use cases adequately. It does not explain output handling, but the output schema compensates, making the description sufficiently complete for an agent to select the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage with detailed descriptions for all 10 parameters, including seed, size, watermark, and prompt_extend_mode. The description only reiterates the reference image count (1-3) and text instructions, adding little beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as image-to-image editing (I2I) that uses 1-3 reference images combined with text instructions for precise editing. The mention of reference images distinguishes it from the sibling generate_image, which would not require them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists concrete use cases (outfit change, background change, style transfer, person-preserving editing) that clarify when this tool is appropriate. It does not explicitly state exclusions or alternative tools, but the I2I definition implies text-to-image should use generate_image.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wchiway/qwen-image-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server