Image models
Nano Banana
Google's Nano Banana (Gemini 2.5 Flash Image) — fast, high-fidelity image generation and editing.
| modelId | google-nano-banana, google-nano-banana-edit |
| 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 |
|---|---|---|---|
| Nano Banana | google-nano-banana | POST /api/v1/generate | prompt |
| Nano Banana Edit | google-nano-banana-edit | POST /api/v1/generate | prompt, image_urls |
| Poll task | — | GET /api/v1/task/{id}?model=google-nano-banana | — |
Nano Banana — google-nano-banana
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The prompt for image generation Max 20000 characters. (default: Minimal line-art poster of a whale formed from ocean waves, single-weight ink on warm off-white paper.) |
| output_format | string | No | Output format for the images (options: png | jpeg) (default: png) |
| aspect_ratio | string | No | Radio description (options: 1:1 | 9:16 | 16:9 | 3:4 | 4:3 | 3:2 | 2:3 | 5:4 | 4:5 | 21:9 | auto) (default: 1:1) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"google-nano-banana","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","output_format":"png","aspect_ratio":"1:1","nsfw_checker":true}}'Nano Banana Edit — google-nano-banana-edit
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The prompt for image editing Max 20000 characters. (default: Restyle this bottle into a frosted winter edition — coat the glass in fine frost and beaded condensation, add a sprig of pine and soft blue rim light, keeping the label crisp and legible.) |
| image_urls | string[] | Yes | List of URLs of input images for editing,up to 10 images. (image URL) |
| output_format | string | No | Output format for the images (options: png | jpeg) (default: png) |
| aspect_ratio | string | No | Radio description (options: 1:1 | 9:16 | 16:9 | 3:4 | 4:3 | 3:2 | 2:3 | 5:4 | 4:5 | 21:9 | auto) (default: 1:1) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"google-nano-banana-edit","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","image_urls":["https://example.com/input.jpg"],"output_format":"png","aspect_ratio":"1:1","nsfw_checker":true}}'