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

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-proRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredEnter a text description of the image you want to generate
image_inputimageoptionalDrag and drop or click to upload your images
aspect_ratioselectoptional1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto
resolutionselectoptional1K, 2K, 4K
output_formatselectoptionalpng, jpg

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":"Retro comic strip of a cat astronaut discovering a planet made of yarn, four panels, halftone print texture.","aspect_ratio":"1:1","resolution":"1K","output_format":"png"}}'