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

OperationmodelIdEndpointRequired input
Defaultnano-banana-2-litePOST /api/v1/generateprompt
Poll taskGET /api/v1/task/{id}?model=nano-banana-2-lite

Input parameters

FieldTypeRequiredValues / example
promptstringYesA text description of the image you want to generate Max 4000 characters. (example: Transform this plain storefront into a retro late-night diner, glowing neon signage, a checkerboard floor visible through the window and warm light spilling… — full value in the request example)
image_urlsstring[]NoInput images to transform or use as reference (supports up to 10 images) (image URL)

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.","image_urls":["https://you.bot/examples/grok-imagine-text-to-image.jpg"]}}'