Documentation Index
Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Nano Banana 2 (codename) is Google’s latest image generation model released on February 26, 2026, with model IDgemini-3.1-flash-image-preview. It redefines image generation cost-effectiveness with Pro-level quality at Flash-tier speed and cost, making it the latest flagship of the Nano Banana series.
Text-to-Image API
Image Editing API
Why APIYI’s Nano Banana 2?
Nano Banana Pro / 2 is the #1 model by usage volume on APIYI — stable, reliable, and fast. If you want to work with a professional team, APIYI is the right choice. A freshly released Google flagship still capacity-constrained at the source — APIYI deeply optimizes the experience across reliability, cost, and integration:Official Channel · Same as Gemini
/v1beta/models/.../generateContent) and the OpenAI SDK pattern — same request body, response fields, and error codes. Zero-code migration.No Concurrency Limits
28-36% of Google's List Price
Global Zero-Barrier Access
api.apiyi.com from mainland data centers, residential networks, or overseas nodes. Stable latency, no cross-border re-architecture.Full Model Lineup
Professional Enterprise Support
Core Features
Pro-Level Quality
4K Ultra-HD Output
14 Aspect Ratios
Image Search Grounding
Accurate Text Rendering
Multi-turn Editing
Thinking Mode
Subject Consistency
Version Comparison
| Feature | Nano Banana 2 | Nano Banana Pro | Nano Banana |
|---|---|---|---|
| Model ID | gemini-3.1-flash-image-preview | gemini-3-pro-image-preview | gemini-2.5-flash-image |
| Quality | ⭐⭐⭐⭐⭐ Pro-level | ⭐⭐⭐⭐⭐ Highest | ⭐⭐⭐⭐ Excellent |
| Speed | 🚀 Fastest | 🐢 Slower | ⚡ Fast |
| Max Resolution | 4K | 4K | 1K |
| Aspect Ratios | 14 | 10 | 10 |
| Image Search Grounding | ✅ Exclusive | ❌ | ❌ |
| APIYI Pricing | $0.055/image (per-call) | $0.09/image | $0.02/image |
| Status | Preview | Preview | GA |
Pricing
- Select Pay-as-you-go or Pay-as-you-go Priority → Token-based billing
- Select Pay-per-request or Pay-per-request Priority → Per-call billing (same as Nano Banana Pro)
- ⚠️ Do NOT select Hybrid billing
Per-call Billing
| Model | APIYI Pricing | Google Official 4K | Discount |
|---|---|---|---|
Nano Banana 2 gemini-3.1-flash-image-preview | $0.055/image | $0.151/image | 🔥 ~64% off |
Nano Banana Pro gemini-3-pro-image-preview | $0.09/image | $0.24/image | ~63% off |
Nano Banana gemini-2.5-flash-image | $0.02/image | $0.039/image (1K only) | ~50% off |
Token-based Billing (Nano Banana 2 Exclusive)
| Billing Item | Google Official | APIYI | Discount |
|---|---|---|---|
| Input | $0.50/M tokens | $0.14/M tokens | 28% |
| Output (images and text unified) | Images $60/M, Text $1.5/M | $16.8/M tokens | 28% |
Token-based Billing Price Estimates
| Resolution | Google Official | APIYI | Fal AI |
|---|---|---|---|
| 512px | $0.045 | ~$0.025 | $0.06 |
| 1K | $0.067 | ~$0.035 | $0.08 |
| 2K | $0.101 | ~$0.045 | $0.12 |
| 4K | $0.151 | ~$0.07 | $0.16 |
Group Setup
Nano Banana 2 ships with two groups on APIYI. Switch in dashboard → Token Settings:| Group | Rate | When to use |
|---|---|---|
Default | 1.0x | Base lane, matches the price table; recommended default |
NanoBananaEnterprise | 1.4x | Fallback lane — manually switch when the default is tight or timeouts spike, capacity-prioritized |
NanoBananaEnterprise to ride out the spike.
Recommended Billing model: pick Pay-as-you-go Priority — covers Nano Banana 2’s token-based billing AND Nano Banana Pro’s per-call billing, one Token for the whole series.

Supported Resolutions & Aspect Ratios
Output Resolutions
| Resolution | Description | Recommended Use |
|---|---|---|
| 512px | Low resolution | Thumbnails, quick previews |
| 1K | Default | Social media, web display |
| 2K | High definition | HD displays, print materials |
| 4K | Ultra-high definition | Professional design, commercial posters |
Supported Aspect Ratios (14 total)
1:1, 1:4, 4:1, 1:8, 8:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
1:4, 4:1, 1:8, 8:1 - ultra-tall/ultra-wide ratios ideal for long-form images and infographics.FAQ
What's the difference between Nano Banana 2 and Nano Banana Pro?
What's the difference between Nano Banana 2 and Nano Banana Pro?
gemini-3.1-flash-image-preview) is based on Gemini 3.1 Flash, while Nano Banana Pro (gemini-3-pro-image-preview) is based on Gemini 3 Pro. Key differences:- ✅ Speed: Nano Banana 2 is faster (Flash-tier speed)
- ✅ Price: Nano Banana 2 token-based billing is cheaper (from $0.025 vs $0.09)
- ✅ Aspect Ratios: Nano Banana 2 supports 14 (4 more)
- ✅ Image Search Grounding: Nano Banana 2 exclusive
- ⚠️ Ultimate Quality: Nano Banana Pro still slightly better
Should I switch from Nano Banana Pro to Nano Banana 2?
Should I switch from Nano Banana Pro to Nano Banana 2?
gemini-3-pro-image-preview to gemini-3.1-flash-image-preview.Should I use gemini-3.1-flash-image-preview or the -4k suffix version?
Should I use gemini-3.1-flash-image-preview or the -4k suffix version?
gemini-3.1-flash-image-preview (without the -4k suffix), not gemini-3.1-flash-image-preview-4k.- The official name has no
-4k: Google’s official model name isgemini-3.1-flash-image-preview. This is also the general channel we invest the most resources in maintaining, so it offers the best stability and compatibility. - Where
-4kcomes from:gemini-3.1-flash-image-preview-4kwas originally a configuration prepared for “chat-to-image” scenarios in conversational clients like Chatbox—generating images directly through chat in a messaging UI. - Code + Gemini native format favors the general name: If you’re calling via code using the Gemini native format (
/v1beta/models/.../generateContent), the regular model namegemini-3.1-flash-image-previewis more stable.
-4k model name—just specify the 4K resolution in your request parameters (see “Supported Resolutions and Aspect Ratios” above).What is Image Search Grounding?
What is Image Search Grounding?
What does Thinking Mode do?
What does Thinking Mode do?
high produces the best results but slightly increases generation time. Best for tasks requiring precise composition, text rendering, or complex scenes.How long does it take to generate an image?
How long does it take to generate an image?
- 1K resolution: ~5-10 seconds
- 2K resolution: ~10-15 seconds
- 4K resolution: ~15-25 seconds
- Enabling high thinking mode adds a few extra seconds
Is there a concurrency limit? Is the API serial? What if I need 20 users calling at once?
Is there a concurrency limit? Is the API serial? What if I need 20 users calling at once?
timeout: image generation (especially 4K or during peak congestion) can take a while per request, so set your client timeout to 360 seconds to avoid cutting off requests that are still being processed normally.What input image formats are supported?
What input image formats are supported?
image/png and image/jpeg formats. Can be uploaded via base64 encoding or Files API.Do output images have watermarks?
Do output images have watermarks?
Related Documentation
- Nano Banana Pro Image Generation - Previous flagship version
- Nano Banana Image Editing - Image editing features
- Image Generation Comparison Testing
- API Usage Manual