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_promptseedstrengthqualitystyle_presetmaskwatermarkbackground
aspect_ratio:
1:12:33:24:33:44:55:416:99:1621:99:211:4(Nano Banana 2 only)4:1(Nano Banana 2 only)1:8(Nano Banana 2 only)8:1(Nano Banana 2 only)
size to set the output resolution. Supported resolutions:
0.5K:512x512(Nano Banana 2 only)1K:1024x10242K:2048x20484K: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:- 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.
