Gemini 3.1 Flash Image (Nano Banana 2)
Gemini 3.1 Flash Image 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', prompt: 'Render a picture of a red balloon.',});P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.