Nano Banana 2 API
imageAdvanced image generation and editing with strong world knowledge and reasoning, precise text rendering, and reliable style/detail control.
Integrate Nano Banana 2 image generation into your product with a single API call. No GPUs to manage, no infrastructure to maintain.

Start generating in minutes
A single API call is all you need to generate images with Nano Banana 2.
curl -X POST https://api.getimg.ai/v2/images/generations \
-H "Authorization: Bearer $GETIMG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3-1-flash-image",
"prompt": "3D human figure made out of tiny dust-like voxels, looking to the left, smoothly desintegrating into background, medium portrait shot, purple monochrome",
"aspect_ratio": "1:1",
"resolution": "1K",
"output_format": "jpeg"
}'How Nano Banana 2 API works
Send a prompt, receive a generated image — all in a single request.
Send a request
Make a POST request with your prompt and desired output format. Use any HTTP client.
Get your image
The response includes your generated image URL and a usage object showing the exact cost.
What you can build with Nano Banana 2
Add AI image generation to any product or workflow.
Design tools
Embed AI image generation in design, writing, or chat applications. Let users create visuals from text without leaving your product.
Marketing automation
Generate ad creatives, social media graphics, and campaign visuals at scale. Produce hundreds of variations without a design team.
E-commerce
Create product images, lifestyle shots, and listing visuals automatically. Turn product descriptions into professional imagery.
Rapid prototyping
Turn rough ideas into tangible visuals instantly. Generate mockups, concept art, and visual references in seconds instead of hours.
Nano Banana 2 pricing
Pay per image. No subscriptions, no idle costs.
Nano Banana 2
$0.08 – $0.18 /image
/v2/images/generationsAdvanced image generation and editing with strong world knowledge and reasoning, precise text rendering, and reliable style/detail control.
| Resolution | Price | Images for $10 |
|---|---|---|
| 1K | $0.08 /image | 125 |
| 2K | $0.13 /image | 76 |
| 4K | $0.18 /image | 55 |
Nano Banana 2 API — frequently asked questions
How do I use the Nano Banana 2 API?
Make a POST request to the /v2/images/generations endpoint with your API key and a JSON body containing the model ID (gemini-3-1-flash-image) and a prompt. The response includes the generated image URL.
Check the API documentation for the full parameter reference.
What resolutions does Nano Banana 2 support?
Nano Banana 2 supports the following resolutions: 1K, 2K, 4K across 8 aspect ratios (1:1, 2:3, 3:2, 4:3, 3:4, 16:9, 9:16, 21:9).
How much does Nano Banana 2 cost?
Nano Banana 2 uses pay-per-image pricing with no subscriptions or minimum commitments. Rates vary by resolution. See the pricing table above for exact rates per image.
Does Nano Banana 2 support reference images?
Yes. Nano Banana 2 accepts up to 4 reference images. Reference images let you guide the generation towards a specific style, composition, or subject.
Start building with Nano Banana 2
Get your API key and start generating images in minutes.
Looking for other models? View all available models