flow_edit_image
Edit an existing image using a natural-language prompt without masks. Apply targeted changes, insert or remove objects, extend the canvas, or swap backgrounds.
Instructions
Edit an existing image with a natural-language instruction (no mask needed).
Args: image_path: Path to the source image. prompt: What to change. edit_mode: 'free' (default, just follow the prompt), 'inpaint_insertion' (add), 'inpaint_removal' (remove), 'outpaint' (extend canvas), 'bgswap' (new background). model: 'fast' (default), 'pro', 'lite', or a full model id. aspect_ratio: Output aspect ratio. Defaults to the input image's shape. image_size: '1K', '2K' or '4K'. output_dir: Override the output folder. mask_mode: Ignored. Kept for compatibility with 0.1.0 (Nano Banana edits need no mask).
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": {
"image_path": "<image_path>",
"prompt": "<prompt>"
},
"name": "flow_edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| edit_mode | No | free | |
| mask_mode | No | ||
| image_path | Yes | ||
| image_size | No | ||
| output_dir | No | ||
| aspect_ratio | No |