Image models
Nano Banana Pro
On this page
Google's most capable Nano Banana — premium, high-fidelity image generation and editing with sharper detail and text.
| modelId | nano-banana-pro |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Default | nano-banana-pro | POST /api/v1/generate | prompt |
| Poll task | — | GET /api/v1/task/{id}?model=nano-banana-pro | — |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | A text description of the image you want to generate Max 20000 characters. (default: Retro comic strip of a cat astronaut discovering a planet made of yarn, four panels, halftone print texture.) |
| image_input | string[] | No | Input images to transform or use as reference (supports up to 8 images) (image URL) |
| aspect_ratio | string | No | Aspect ratio of the generated image (options: 1:1 | 2:3 | 3:2 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | 16:9 | 21:9 | auto) (default: 1:1) |
| resolution | string | No | Resolution of the generated image (options: 1K | 2K | 4K) (default: 1K) |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"nano-banana-pro","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","image_input":["https://example.com/input.jpg"],"aspect_ratio":"1:1","resolution":"1K"}}'