Edit an image
edit_imageChange a specific element in an existing image while preserving the rest: provide the image URL and a prompt that states what to modify and what must remain unchanged.
Instructions
Edit a photo you already have: change one thing and keep the rest. Pass the image URL and describe ONLY what should change, plus what must stay ("keep the face and background as they are") — that sentence is what decides whether the edit holds.
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_url": "<image_url>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the result (default true). | |
| model | No | Model id from list_models. Defaults to Nano Banana 2. | |
| prompt | Yes | The change to make, and what must stay unchanged. | |
| image_url | Yes | Public URL of the image to edit. |