Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite)
Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) is the fastest, most cost-efficient image model in the Nano Banana family, generating and editing 1K images with reliable prompt adherence, strong character consistency, and legible in-image text for high-volume production workloads.
import { generateText } from 'ai'
const result = await generateText({ model: 'google/gemini-3.1-flash-lite-image', prompt: 'Render a picture of a red balloon.',});Frequently Asked Questions
How do I call Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) on AI Gateway?
Set the model to
google/gemini-3.1-flash-lite-imagein the AI SDK, callgenerateTextorstreamText, and includeresponseModalities: ['TEXT', 'IMAGE']inproviderOptions.google. AI Gateway handles provider routing, retries, and failover automatically.What resolution does Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) generate?
1K resolution. That cap is part of what keeps Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) fast and inexpensive. For 2K or 4K output, use
google/gemini-3.1-flash-imageorgoogle/gemini-3-pro-image.How is Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) different from Gemini 3.1 Flash Image?
Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) is the speed tier: lower latency and cost in exchange for the higher resolutions, video input, and search grounding of Gemini 3.1 Flash Image. Choose Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) for volume and iteration speed rather than maximum output fidelity.
Should I migrate from Gemini 2.5 Flash Image?
Google recommends that
google/gemini-2.5-flash-imageusers move to Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) for better quality, faster generation, and lower cost. The original Nano Banana is now the legacy model in the family.Does Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) support image editing?
Yes. Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) handles prompt-based edits and multi-image composition alongside text-to-image generation. Complex masked edits, major lighting changes, and heavy multi-image blending can produce artifacts, so route those jobs to a higher tier in the family.
Are generated images watermarked?
Yes. Every image carries an invisible SynthID watermark that identifies the output as AI-generated.
How fast is Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite)?
Google positions Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) as its fastest image generation model, built for rapid creation and iteration. See the live latency metrics on this page for current performance through AI Gateway.
How does Zero Data Retention work with Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) through AI Gateway?
Yes, Zero Data Retention is available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.