Skip to content
Dashboard

Gemini 3.1 Flash Image (Nano Banana 2)

Gemini 3.1 Flash Image (Nano Banana 2) is the generally available flash-tier image generation and editing model in the Gemini 3.1 family, combining Google Image Search grounding, configurable thinking levels, and new video-to-image input with production-ready 1K and 2K output.

Image GenReasoningVision (Image)Web Search
index.ts
import { generateText } from 'ai'
const result = await generateText({
model: 'google/gemini-3.1-flash-image',
prompt: 'Render a picture of a red balloon.',
});

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Release Date
Google Vertex AI
Legal:Terms
Privacy
$0.50/M
$3/M
$0.04/img+4 more
Read:$0.05/M
Write:
$14/K
+ input costs
+2
05/28/2026
Google
Legal:Terms
Privacy
$0.50/M
$3/M
$0.04/img+4 more
Read:$0.05/M
Write:
$14/K
+ input costs
+3
05/28/2026