Gemini 3.1 Flash Image (Nano Banana 2) is optimized for image understanding and generation and offers a balance of price and performance.
import { generateText } from 'ai'
const result = await generateText({ model: 'google/gemini-3.1-flash-image-preview', prompt: 'Render a picture of a red balloon.',});Try out Gemini 3.1 Flash Image Preview (Nano Banana 2) 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
Powered by AI Gateway
| Provider |
|---|
| Model |
|---|