Edit Image
edit_imageModify an existing image using natural-language instructions: provide the source image URL and desired changes, then receive a signed URL to the edited result stored remotely.
Instructions
Edit an existing image using natural language instructions. Provide the URL of the source image (e.g. a URL returned by generate_image) and describe the changes. The edited image is uploaded to Firebase Storage and a signed URL is returned. Nothing touches local disk.
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": {
"source_url": "<source_url>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the edits to make | |
| resolution | No | Source resolution: '1K' (default), '2K', or '4K'. Final file is always compressed to stay small | |
| source_url | Yes | URL of the image to edit (e.g. a signed URL from generate_image) | |
| aspect_ratio | No | Aspect ratio for the output, e.g. '1:1', '16:9' | |
| inline_preview | No | Whether to include an inline image preview in the response. Defaults to the server's NANO_BANANA_INLINE_PREVIEW setting. Set false to return the URL only. |