Try Nano Banana 2 in the Workbench
Run this model interactively, tune parameters, and compare outputs.
nano-banana-2
Nano Banana 2 is a text-to-image model that generates images from text descriptions.
Example request
- Sync
- Async
- Async with SSE
See the image generation 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. |
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. |