Skip to content
Docs menu

Image models

Nano Banana 2 Lite

On this page

Nano Banana 2 Lite — fast, high-fidelity AI image generation & editing.

modelIdnano-banana-2-lite
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.
Image to imagePOST /api/v1/generateCondition on a reference image — upload it via /api/v1/files/upload and pass the URL.
Poll taskGET /api/v1/task/{id}?model=nano-banana-2-liteRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredEnter a text description of the image you want to generate
image_urlsimageoptionalDrag and drop or click to upload your image
aspect_ratioselectrequired1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9, auto

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-2-lite","input":{"prompt":"Transform this plain storefront into a retro late-night diner, glowing neon signage, a checkerboard floor visible through the window and warm light spilling out onto the empty sidewalk.","aspect_ratio":"auto"}}'