Edit Image
sirv_edit_imageEdit an existing image from a text prompt to change its colour, style or setting while keeping the original file intact. Returns a URL for the new, edited image.
Instructions
Change one image with a text prompt, for example its colour, style or setting.
Use it for free-form edits. For a new background, use sirv_replace_background. To remove or fill a masked area, use sirv_remove_object. To translate the text in an image, use sirv_translate_image_text.
Inputs: image_url and prompt are required. strength, 0 to 1 (default 0.75), sets how far the result may move from the source. model defaults to nano-banana-lite-edit.
The source image does not change. Returns result_url, the edited image.
Credits: spends workspace credits. The cost depends on the model and options.
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": "sirv_edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Edit model. Default: nano-banana-lite-edit | nano-banana-lite-edit |
| prompt | Yes | The change to make, in words, up to 2000 characters | |
| strength | No | How far the result may move from the source, 0 to 1. Higher changes more. Default: 0.75 | |
| image_url | Yes | Public URL of the image to edit |