edit_image
指令式图像编辑,四引擎任选:seedream($0.10,Seedream 5.5,改图/换景/去物,可透明背景)|gptimage($0.20,GPT Image 2.6 编辑,支持 mask_image 局部重绘)|kontext($0.24,FLUX Kontext Max)|nbpro($0.42,Nano Banana Pro,最高 4k)。image 用公开 URL(可先 upload_asset)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"image": "<image>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | 原图公开 URL | |
| aspect | No | 输出比例(按引擎支持范围),默认跟随原图 | |
| engine | No | 默认 seedream(最便宜) | |
| prompt | Yes | 编辑指令,如 "replace the sky with a sunset" / "去掉背景里的路人" | |
| background | No | 仅 seedream:透明背景输出 | |
| resolution | No | seedream: 1k/1.5k/2k;gptimage/nbpro: 1k/2k/4k | |
| outputFormat | No | 默认 png |