Nano Banana 2 Lite API Overview
Nano Banana 2 Lite API, officially gemini-3.1-flash-lite-image, is Google's efficiency-focused Gemini 3.1 image model for high-volume image generation and editing. Google also names it Gemini 3.1 Flash Lite Image. On CometAPI, developers can access the model through the Gemini native generateContent route, making it practical for fast 1K image drafts, simple image edits, interactive creative tools, thumbnails, social assets, and production workflows where speed and cost control matter more than maximum resolution.
Technical Specifications
| Item | Specification |
|---|---|
| Model name | Nano Banana 2 Lite / Gemini 3.1 Flash Lite Image |
| API model ID | gemini-3.1-flash-lite-image |
| CometAPI model code | gemini-3-1-flash-lite-image |
| Provider | |
| Model type | Image generation and editing |
| CometAPI catalog feature | text-to-image |
| Input modalities | Text and image |
| Output modalities | Image and text |
| Endpoint on CometAPI | POST /v1beta/models/{model}:generateContent |
| Stable model ID | gemini-3.1-flash-lite-image |
| Input token limit | 65,536 tokens |
| Output token limit | 4,096 tokens |
| Output resolution | 1K / 1024px only |
| Supported aspect ratios | 14 aspect ratios including 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
| Thinking | Supported; minimal and high |
What Is Nano Banana 2 Lite?
Nano Banana 2 Lite is the speed-and-efficiency member of Google's Gemini image model family. Google's model page describes it as the efficiency specialist for image generation, designed for ultra-low latency and cost-effective image generation and modification.
The tradeoff is intentional: Nano Banana 2 Lite targets 1K output and high-volume interactive use rather than maximum fidelity. Google states that 2K and 4K output are unsupported for this Lite model, and the image-generation guide says it is not optimized for multiple reference inputs or multi-turn sequential editing. That makes it a good default for fast drafts and lightweight editing, while Gemini 3.1 Flash Image and Nano Banana Pro are better fits for high-resolution or reference-heavy production work.
Main Features of Nano Banana 2 Lite API
1. Ultra-Low Latency for Interactive Image Workflows
Google positions Nano Banana 2 Lite as the efficiency specialist of the Gemini image family. The official model card says it targets sub-2 second end-to-end latency, while Google's launch post highlights text-to-image output in about 4 seconds for practical rapid drafting. In production, actual latency will depend on prompt complexity, image input size, network path, response modality, and CometAPI routing conditions, but the model is clearly designed for fast feedback loops rather than maximum-resolution offline rendering.
This makes Nano Banana 2 Lite especially useful for interactive builders: app interfaces that generate visuals as users type, high-volume thumbnail systems, game or avatar previews, ad variant exploration, ecommerce placeholder generation, and creative tools where a user may request dozens of small iterations before approving a final direction.
2. Native Text-to-Image and Image-to-Image Generation
Nano Banana 2 Lite supports both text and image inputs, and it can return image and text outputs. Through CometAPI's Gemini route, developers can send a text prompt alone for native text-to-image generation, or combine an input image with text instructions for image-to-image editing.
Because it uses Gemini's native image workflow, Nano Banana 2 Lite is not limited to a simple "prompt in, picture out" pattern. It can read the user's visual context, apply local edits, generate a new image, and optionally include text in the response. This is the right shape for product mockup tools, background replacement, quick style transfers, localized campaign variants, and preview images inside consumer apps.
3. Fast Multi-Turn Local Image Editing
Google's model card lists fast multi-turn local edits as a key capability, including examples such as swapping colors, sticker creation, and background adjustments. In practice, this means users can ask for a first image, then continue with follow-up instructions like "make the jacket red," "turn it into a sticker," or "replace the background with a clean studio wall."
The limitation matters: Google's image-generation guide says Nano Banana 2 Lite is not optimized for multiple reference inputs or multi-turn sequential editing. Use Lite for quick local edits and conversational exploration; move to Nano Banana 2 or Nano Banana Pro when you need heavier reference handling, longer edit chains, or professional layout control.
4. Strong Prompt Adherence and Character Alignment
Google says Nano Banana 2 Lite keeps the control and accuracy expected from Nano Banana while accelerating the experience. Its official materials call out reliable prompt adherence, strong character consistency, and high character alignment matching original Nano Banana standards.
That makes the model more useful than a generic fast image generator. For repeated creative exploration, a model must preserve the intended subject, color direction, pose, setting, brand cue, and character identity across variations. Nano Banana 2 Lite is designed for that "iterate quickly without losing the idea" use case.
5. Improved Text Rendering Inside Images
Google's launch post says Nano Banana 2 Lite retains legible in-image text rendering despite prioritizing speed. This matters for thumbnails, simple posters, UI concepts, labels, stickers, and lightweight marketing graphics where a short word or phrase needs to appear in the generated image.
For text-heavy infographics, multilingual layouts, magazine-style pages, product packaging, or fine typography, Nano Banana 2 and Nano Banana Pro are better candidates. Google's image-generation guide positions Nano Banana 2 as the generalist model with reliable text rendering, while Nano Banana Pro is the professional option for precise text and complex layouts.
6. 1K Output with Broad Aspect Ratio Support
Nano Banana 2 Lite is optimized for 1K output, with Google's model card listing 1024px / 1K as the supported image size and noting that 2K and 4K are unsupported. It supports common aspect ratios including square, portrait, landscape, vertical social formats, and ultrawide layouts.
For production, set imageConfig.aspectRatio and imageConfig.imageSize explicitly, and use uppercase 1K or the supported 1024px value. If your workflow requires 2K, 4K, 0.5K utility previews, or higher-fidelity print and design outputs, use Nano Banana 2 or Nano Banana Pro instead.
Benchmark Performance of Nano Banana 2 Lite
As of Arena.ai's public leaderboards dated June 29, 2026, gemini-3.1-flash-lite-image is a high-ranking efficiency model rather than just a "cheap draft" model: it scores near heavier Gemini image models in generation and remains competitive in single-image editing while prioritizing much lower latency.
| Benchmark | Nano Banana 2 Lite score | Arena.ai rank signal | Votes | What it means |
|---|---|---|---|---|
| Text-to-Image Arena, Overall | 1251 +/- 8 | Rank 5 of 70 models | 5,462 | Strong public image-generation quality for a Lite model, just below mai-image-2.5 and Nano Banana 2, and above the 2K Nano Banana Pro preview on this snapshot |
| Image Edit Arena, Single-Image Edit | 1308 +/- 7 | Rank 15 of 49 models | 9,320 | Competitive editing quality, behind heavier flagship image models but ahead of many general image editors |
How to Choose: Nano Banana 2 Lite vs Nano Banana 2 vs Nano Banana Pro
Google's Nano Banana image family is tiered by speed, quality, and control. Nano Banana 2 Lite is the fast, efficient model for high-volume 1K generation. Nano Banana 2 is the generalist workhorse for high-quality image generation and editing with stronger reference handling and up to 4K output. Nano Banana Pro is the premium model for complex design, brand accuracy, advanced localization, and precision creative control.
The text-to-image leaderboard places gemini-3.1-flash-lite-image (nano-banana-2-lite) close to several premium competitors: gemini-3.1-flash-image-preview (nano-banana-2) scores 1270 +/- 4, mai-image-2.5 scores 1257 +/- 5, gemini-3-pro-image-preview-2k (nano-banana-pro) scores 1245 +/- 4, and gpt-image-1.5-high-fidelity scores 1241 +/- 3. The image-edit leaderboard is more demanding for Lite: gpt-image-2 (medium) leads with 1464 +/- 4, while Nano Banana 2 Lite's 1308 +/- 7 positions it below the flagship tier but still in the competitive upper group.
| Model | Provider | Best-fit workload | Public benchmark signal |
|---|---|---|---|
| Nano Banana 2 Lite (gemini-3.1-flash-lite-image) | Fast 1K image generation, lightweight edits, high-volume drafts, interactive product experiences | 1251 +/- 8 on Arena.ai Text-to-Image Overall; 1308 +/- 7 on Arena.ai Single-Image Edit | |
| Nano Banana 2 / Gemini 3.1 Flash Image | Higher-quality Gemini 3.1 image generation, stronger multi-reference work, 2K/4K workflows | 1270 +/- 4 on Arena.ai Text-to-Image Overall; 1387 +/- 4 on Arena.ai Single-Image Edit | |
| Nano Banana Pro / Gemini 3 Pro Image | More demanding composition, richer context, and higher-resolution production work | 1245 +/- 4 for the 2K preview on Arena.ai Text-to-Image Overall; 1388 +/- 3 for the 2K preview on Arena.ai Single-Image Edit | |
| GPT Image 2 | OpenAI | Premium generation and editing where maximum benchmark quality matters more than Lite-class latency | Leads the cited Arena.ai snapshots with 1387 +/- 5 in Text-to-Image and 1464 +/- 4 in Single-Image Edit |
Choose Nano Banana 2 Lite when the product experience depends on speed, cost control, and frequent iteration. It is the best fit for near-real-time UX, draft generation, and lightweight editing at 1K.
Choose Nano Banana 2 when you need the safest default for image quality, 4K output, multiple references, stronger text rendering, and a better balance between quality and latency. It is the best general-purpose choice for most production image workflows.
Choose Nano Banana Pro when the task is closer to design production than quick generation: brand ads, product mockups, multi-element compositions, localization, fine typography, complex diagrams, or assets that need the highest level of world knowledge and creative control.
How to Use Nano Banana 2 Lite API on CometAPI
Step 1: Sign Up for an API Key
Log in to cometapi.com. If you are not a CometAPI user yet, register first, then open the CometAPI console token page. In the personal center, click Add Token under API token management, generate an access credential, and copy the token key in the sk-xxxxx format.
Keep this API key private and use it from your backend service or local environment variable. In the examples below, replace <YOUR_API_KEY> or $COMETAPI_KEY with the actual CometAPI key from your account.
Step 2: Send Requests to the Nano Banana 2 Lite API
Select the gemini-3.1-flash-lite-image model endpoint for Nano Banana 2 Lite. The request is sent through CometAPI's Gemini image route:
POST https://api.cometapi.com/v1beta/models/gemini-3.1-flash-lite-image:generateContent
Use the request method and request body from the CometAPI Gemini image documentation. Where to call it: Gemini generates image. The same route supports text-to-image generation, image editing, and multi-image workflows, but Nano Banana 2 Lite itself is optimized for fast 1K output rather than 2K/4K or complex long-chain edits.
For text-to-image, send a text prompt in contents.parts.text and set generationConfig.responseModalities to include IMAGE. For image editing, provide the input image according to the CometAPI guide, such as passing a local image through the Google Gen AI SDK or raw image data in the documented Gemini format, then add the editing instruction as text. For multi-image workflows, upload or prepare the source images first and follow the current documentation for supported image inputs and model-specific limits.
Step 3: Retrieve and Verify Results
Process the API response to get the generated image. Gemini image responses can include text parts, final image parts, and sometimes intermediate image parts marked with thought: true. Do not save the first image blindly; skip thought: true parts and save the last remaining image part where inlineData exists and thought is not true.
In the CometAPI playground, you can download the generated image directly, usually in PNG format. In API workflows, decode and store the returned inlineData image or download the generated result URL if your selected CometAPI workflow returns one. Download or persist generated assets promptly, then verify the final image for resolution, prompt adherence, visible artifacts, safety requirements, and whether it is a final output rather than an intermediate thinking image.
Why Use CometAPI for Nano Banana 2 Lite?
CometAPI is useful when teams want one account and one routing layer for multiple image models. With Nano Banana 2 Lite on CometAPI, teams can run fast 1K Gemini image generation, compare outputs with Gemini 3.1 Flash Image, Nano Banana Pro, Imagen, Flux, Midjourney-style routes, and other image models, then route jobs by quality, latency, and cost profile.
CometAPI's model catalog also exposes the current model ID, provider, feature flags, availability, and endpoint path. That reduces integration ambiguity for production apps that need model switching, fallbacks, usage tracking, and consistent credential management.