Skip to content
Docs menu

Image models

Nano Banana Pro

On this page

Google's most capable Nano Banana — premium, high-fidelity image generation and editing with sharper detail and text.

modelIdnano-banana-pro
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Defaultnano-banana-proPOST /api/v1/generateprompt
Poll taskGET /api/v1/task/{id}?model=nano-banana-pro

Input parameters

FieldTypeRequiredValues / example
promptstringYesA text description of the image you want to generate Max 20000 characters. (default: Retro comic strip of a cat astronaut discovering a planet made of yarn, four panels, halftone print texture.)
image_inputstring[]NoInput images to transform or use as reference (supports up to 8 images) (image URL)
aspect_ratiostringNoAspect ratio of the generated image (options: 1:1 | 2:3 | 3:2 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | 16:9 | 21:9 | auto) (default: 1:1)
resolutionstringNoResolution of the generated image (options: 1K | 2K | 4K) (default: 1K)

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-pro","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","image_input":["https://example.com/input.jpg"],"aspect_ratio":"1:1","resolution":"1K"}}'