edit_image
Modify existing images using text prompts to add or remove elements, transfer styles, inpaint specific areas, or combine multiple images.
Instructions
Edit an existing image using text prompts. Supports:
Adding/removing elements
Style transfer
Inpainting (changing specific parts)
Combining multiple images
Provide the path to an existing image and describe the changes you want.
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_path": "<image_path>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the edit to make. Be specific about what to change and what to preserve. | |
| image_path | Yes | Path to the input image file to edit. | |
| model | No | The model to use for editing. | nano-banana |
| aspect_ratio | No | Optional aspect ratio for the output image. | |
| image_size | No | The resolution of the output (only for nano-banana-pro). | 1K |
| filename | No | Optional filename for the output image. |