Overview
Nano Banana 2 Lite (shortened to Nano Banana Lite in this section) is a Google image model released on June 30, 2026, with model IDgemini-3.1-flash-lite-image. It is the lightweight, economical version of Nano Banana 2 (gemini-3.1-flash-image), focused on speed and cost: ~4s per image, ~2.7x faster than Nano Banana 2, making it the fastest and cheapest tier of the Nano Banana series.
Text-to-Image API
Image Editing API
Let an AI Agent Do the Integration
Copy this prompt and paste it into Codex / Claude Code / Cursor
It first fetches the plain-text version of this page (append .md to any docs URL), then writes code in your project's own stack — timeout, defensive parts parsing, upload compression and the fact that Lite is 1K-only are already baked into the requirements.
Integrate / troubleshoot Nano Banana Lite (
gemini-3.1-flash-lite-image) text-to-image and image editing in this project.Read the docs before you touch code: fetch https://docs.apiyi.com/en/api-capabilities/nano-banana-lite-image/overview.md for the plain-text version of this page. For finer parameter detail, append …
- Timeout: call the Gemini-native format at
POST https://api.apiyi.com/v1beta/models/gemini-3.1-flash-lite-image:generateContentand set the client tim …
7 requirements in total. Use the button below to copy the full prompt.
What this prompt saves you from
What this prompt saves you from
Why APIYI’s Nano Banana Lite?
Nano Banana Pro / 2 is the #1 model by usage volume on APIYI — stable, reliable, and fast. The Lite tier pushes “fast” and “cheap” to a new level, ideal for high-throughput scenarios. 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
Token-based ~$0.018/call
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
~4s per Image
Low Cost
14 Aspect Ratios
1:1, 4:1, 1:4, 16:9, 9:16 — fits many layoutsSynthID Watermark
Version Comparison
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
- ⚠️ Do NOT select Hybrid billing
Token-based Billing (Recommended · 40% of Google’s Rate)
Per-call Billing
Group Setup
Nano Banana 2 Lite works on APIYI’s default channel — no dedicated group required:Pay-as-you-go Priority by default. Three reasons: ① token-based (per-token) billing runs ~$0.018/call in practice, cheaper than per-call $0.025; ② the unit price is stable and predictable; ③ one token covers Lite / Nano Banana 2 token-based billing AND Nano Banana Pro per-call billing — run the whole series with one token.
Supported Resolutions & Aspect Ratios
Output Resolutions
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
Output Dimensions per Aspect Ratio (1K, pixels)
In your request, setaspectRatio for the ratio and keep imageSize at 1K:
FAQ
What's the difference between Nano Banana 2 Lite and Nano Banana 2?
What's the difference between Nano Banana 2 Lite and Nano Banana 2?
- ✅ Speed: Lite generates in ~4s, ~2.7x faster than Nano Banana 2
- ✅ Price: Lite token-based averages ~$0.018/call in practice (40% of Google’s rate), per-call $0.025 — better for volume
- ⚠️ Resolution: Lite supports 1K only; Nano Banana 2 goes up to 4K
- ⚠️ Quality ceiling: for ultimate quality, Nano Banana 2 / Pro are better
gemini-3.1-flash-image for gemini-3.1-flash-lite-image.Should I choose Lite or Nano Banana 2?
Should I choose Lite or Nano Banana 2?
- Best value / fast batch generation / 1K is enough → choose Lite (~4s, $0.025 per-call)
- Need 2K/4K HD, or higher quality → choose Nano Banana 2 (up to 4K, Pro-level quality)
How long does it take to generate an image?
How long does it take to generate an image?
Is there a concurrency limit?
Is there a concurrency limit?
timeout — though Lite is fast, a single request can still slow down during peak congestion, so set your client timeout to 300 seconds.What input image formats are supported?
What input image formats are supported?
image/png and image/jpeg are supported via base64 encoding. See the Image Editing API Reference.Do output images have watermarks?
Do output images have watermarks?
Related Documentation
- Nano Banana 2 Image Generation - Quality + speed tier, up to 4K
- Nano Banana Pro Image Generation - Ultimate-quality flagship
- Image Generation Comparison Testing
- API Usage Manual