edit_image
Transform existing images using text prompts and reference images from local paths, URLs, or data URIs.
Instructions
Edit or transform existing images using a text prompt and reference images. Supports local file paths, URLs, and data URIs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID (defaults to Gemini 3 Pro Image Preview) | |
| style | No | Visual style preset to prepend to the prompt | |
| images | Yes | Reference images: local file paths, HTTP URLs, or data URIs | |
| prompt | Yes | What to do with the image(s) | |
| image_size | No | Output image size | |
| output_path | No | Optional path to save the result. Can be a full file path or a directory (auto-names the file) | |
| aspect_ratio | No | Output aspect ratio |