AI Gateway
Gemini 2.5 Flash Image Preview (Code name: Nano Banana)
Gemini 2.5 Flash Image Preview is our first fully hybrid reasoning model, letting developers turn thinking on or off and set thinking budgets to balance quality, cost, and latency. Upgraded for rapid creative workflows, it can generate interleaved text and images and supports conversational, multi‑turn image editing in natural language. It’s also locale‑aware, enabling culturally and linguistically appropriate image generation for audiences worldwide.
import { streamText } from 'ai'
const result = streamText({ model: 'google/gemini-2.5-flash-image-preview', prompt: 'Why is the sky blue?'})
Try out Gemini 2.5 Flash Image Preview (Code name: Nano Banana) by Google. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with Gemini 2.5 Flash Image Preview (Code name: Nano Banana)
Powered by Vercel AI Gateway
The AI Gateway supports routing requests across multiple AI providers. You can control provider preferences using the provider slugs available for copying with the buttons below. For more see the AI Gateway provider options documentation.