Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) now on AI Gateway
Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.
Nano Banana 2 Lite from Google is now available on AI Gateway. This Flash-Lite-tier image model is built for fast, low-cost generation. It generates images alongside text in <4s and can edit existing images across multiple turns.
The cost is also lower than previous Nano Banana models. Nano Banana 2 Lite generates 1K images at $0.034 each, about half the cost of Nano Banana 2 and roughly a quarter of the cost of Nano Banana Pro at the same resolution.
This model is multimodal. Use streamText or generateText to generate images alongside text responses.
To use Nano Banana 2 Lite, set model to google/gemini-3.1-flash-lite-image in the AI SDK:
import { generateText } from 'ai';
const result = await generateText({ model: 'google/gemini-3.1-flash-lite-image', providerOptions: { google: { responseModalities: ['TEXT', 'IMAGE'] }, }, prompt: 'Vercel logo on a black billboard in the middle of Times Square.',});Here is the example output from the above prompt:


You can also try Nano Banana 2 Lite in the model playground.
AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, and more.
AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.
AI Gateway: Track top AI models by usage
The AI Gateway model leaderboard tracks the most popular models over time, ranking them by the total volume of tokens processed across all Gateway traffic.
View the leaderboard
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.