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
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to imagePOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=google-nano-bananaRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredDescribe the image you want to generate...
output_formatselectoptionalpng, jpeg
aspect_ratioselectoptional1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto
nsfw_checkerselectoptionalfalse, 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"}}'