Skip to content
Dashboard

Gemini 3.1 Flash Image Preview (Nano Banana 2)

Gemini 3.1 Flash Image Preview (Nano Banana 2) Preview (Nano Banana 2) improves visual output quality at flash-tier speed, adding Google Image Search grounding, configurable thinking levels, and new resolution and aspect ratio options including 512p and ultra-wide formats.

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

Playground

Try out Gemini 3.1 Flash Image Preview (Nano Banana 2) by Google. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

google logo
Prompt
Describe what you want the model to generate.
Need inspiration?
Reference images(optional)
Images to generate
Aspect ratio
Resolution
google logo

Your generated image will appear here