Image models
Nano Banana
On this page
Google's Nano Banana (Gemini 2.5 Flash Image) — fast, high-fidelity image generation and editing.
| modelId | google-nano-banana |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to image | POST /api/v1/generate | Base generation from a text prompt. |
| Poll task | GET /api/v1/task/{id}?model=google-nano-banana | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Describe the image you want to generate... |
| output_format | select | optional | png, jpeg |
| aspect_ratio | select | optional | 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto |
| nsfw_checker | select | optional | false, true |
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":"google-nano-banana","input":{"prompt":"Minimal line-art poster of a whale formed from ocean waves, single-weight ink on warm off-white paper.","output_format":"png","aspect_ratio":"1:1","nsfw_checker":"true"}}'