Try Nano Banana 2 - Image Edit in the Workbench
Run this model interactively, tune parameters, and compare outputs.
nano-banana-2-edit
Gemini 2.5 Flash Image (aka nano-banana), is a state-of-the-art image generation and editing model capable of blending multiple images into a single image, maintaining character consistency for storytelling, making targeted transformations with natural language prompts (e.g., blurring backgrounds, removing objects, altering poses, colorizing B&W photos), and using Gemini’s world knowledge for semantic understanding of real-world scenarios. It excels at visual templates for applications like real estate, badges, product mockups, multi-image fusion (e.g., placing objects in scenes, restyling rooms), and interactive educational tools. The model includes SynthID watermarking for AI-generated content identification.
Example request
- Sync
- Async
- Async with SSE
See the image editing reference for more details.
- Minimal
- All parameters
Fetch model details
The models endpoint returns the full model object, including itsjson_request_schema.
Request parameters
Required parameters
| Field | Type | Default | Description |
|---|---|---|---|
prompt | string | — | Text description of what you want to generate, or the instruction on how to edit the given image. |
input_image | array<string> | — | Input images to transform or use as reference (supports multiple image urls) |
Optional parameters
| Field | Type | Default | Description |
|---|---|---|---|
aspect_ratio | string | "auto" | Aspect ratio for the generated image One of: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 4:1, 1:4, 8:1, 1:8. |
resolution | string | "2K" | Resolution of the generated image One of: 1K, 2K, 4K. |
enable_web_search | boolean | true | Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image. |
safety_tolerance | string | "6" | The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: 4 One of: 1, 2, 3, 4, 5, 6. |