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 4000 characters. (example: Create a premium 1:1 product hero image for social commerce by compositing the uploaded photos. Place the product from the first image on a sunlit pale-marble… — full value in the request example)
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":"Create a premium 1:1 product hero image for social commerce by compositing the uploaded photos. Place the product from the first image on a sunlit pale-marble surface and keep its label text and proportions exactly as uploaded. Soft window light from the left, gentle falloff, one crisp shadow. Muted sage backdrop, a single small ceramic prop for scale, shallow depth of field. Ultra-clean commercial retouching, true-to-life colour, visible material texture. No logos other than the product's own, no watermark, no added text, no people.","image_input":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"aspect_ratio":"1:1","resolution":"1K"}}'