Edit Image with Gemini
edit_imageEdit images by providing natural-language instructions. Returns edited image with preview and saves full-resolution to disk.
Instructions
Edit one or more images using Google Gemini image models (Nano Banana Pro). Provide images and natural-language instructions for how to modify them. Returns edited image with inline preview and saves full-resolution to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Instructions for how to edit the image(s) | |
| images | Yes | One or more images to edit | |
| model | No | Gemini image model to use (default: gemini-3-pro-image-preview) | |
| use_search | No | Enable Google Search grounding for data-driven editing | |
| global_media_resolution | No | Global image quality setting (default: HIGH). See generate_image for details. | |
| outputPath | No | Optional file path to save the edited image (e.g., ./output/edited.png) |