Skip to main content
Developed by Google DeepMind, Nano Banana is Google’s advanced image generation and editing model. It powers image generation in Gemini 2.5 Flash Image. Nano Banana Pro is designed for professional digital asset creation. It natively generates high-resolution 4K images and powers Gemini 3 Pro Image. Nano Banana 2 is a lightweight version of Nano Banana Pro optimized for speed and high concurrency. It generates 0.5K, 1K, 2K, and 4K images and powers Gemini 3.1 Flash Image. Nano Banana 2.1 improves on Nano Banana 2 with higher quality, faster generation, and lower cost. It generates 1K, 2K, and 4K images and powers Gemini Nano Banana 2.1.

Model parameters

  • Model IDs: nano-banana/nano-banana-pro/nano-banana-2/nano-banana-2-lite/nano-banana-2.1
  • Pricing: Check the Model Hub for current prices.
  • Endpoint: https://geekai.co/api/v1/images/generations
  • Parameters: See the Image API reference.
  • Authentication: Get an API key.
The following Image API parameters are not supported:
  • negative_prompt
  • seed
  • strength
  • quality
  • style_preset
  • mask
  • watermark
  • background
Nano Banana supports the following values for aspect_ratio:
  • 1:1
  • 2:3
  • 3:2
  • 4:3
  • 3:4
  • 4:5
  • 5:4
  • 16:9
  • 9:16
  • 21:9
  • 9:21
  • 1:4 (Nano Banana 2 only)
  • 4:1 (Nano Banana 2 only)
  • 1:8 (Nano Banana 2 only)
  • 8:1 (Nano Banana 2 only)
Nano Banana Pro and Nano Banana 2 accept size to set the output resolution. Supported resolutions:
  • 0.5K: 512x512 (Nano Banana 2 only)
  • 1K:1024x1024
  • 2K:2048x2048
  • 4K:4096x4096
Only nano-banana-pro/nano-banana-2/nano-banana-2.1 support size. nano-banana does not support this parameter.

Image generation

Generate an image from a text description:

Image editing

Like GPT-Image-1, Nano Banana supports image-to-image generation through the image editing endpoint. Single image Supply an image and a text prompt to edit the image:
Multiple images To pass multiple images, use an array of strings:
Image requirements:
  • Supply a Base64-encoded image or a publicly accessible image URL. For the mainland China version, the URL must be accessible from mainland China; otherwise, use Base64.
  • Supported formats: PNG, JPEG, JPG, WEBP, HEIC, and HEIF.
  • Each image must be no larger than 20 MB.
  • Nano Banana accepts up to 3 reference images. Nano Banana Pro processes 5 with high fidelity and accepts up to 14. Nano Banana 2 and 2.1 accept up to 10.
  • Input images must comply with Google’s image guidelines and prohibited use policy. Do not create content that infringes on others’ rights.