Skip to content
Docs menu

Image models

Nano Banana

On this page

Google's Nano Banana (Gemini 2.5 Flash Image) — fast, high-fidelity image generation and editing.

modelIdgoogle-nano-banana, google-nano-banana-edit
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Nano Bananagoogle-nano-bananaPOST /api/v1/generateprompt
Nano Banana Editgoogle-nano-banana-editPOST /api/v1/generateprompt, image_urls
Poll taskGET /api/v1/task/{id}?model=google-nano-banana

Nano Banana — google-nano-banana

FieldTypeRequiredValues / example
promptstringYesThe 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_formatstringNoOutput format for the images (options: png | jpeg) (default: png)
aspect_ratiostringNoRadio 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_checkerbooleanNoA 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

FieldTypeRequiredValues / example
promptstringYesThe 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_urlsstring[]YesList of URLs of input images for editing,up to 10 images. (image URL)
output_formatstringNoOutput format for the images (options: png | jpeg) (default: png)
aspect_ratiostringNoRadio 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_checkerbooleanNoA 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}}'