GoogleSees images
Nano Banana 2 (Gemini 3.1 Flash Image Preview)
google/gemini-3.1-flash-image-previewGemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...
Context
66K tokens
Input, 1M tokens
$0.57
Output, 1M tokens
$3.45
Benchmark
—
Uptime and speed
Loading…
Pricing
Charged from your prepaid balance for the tokens actually used.
Input tokens$0.57 per 1M tokens
Output tokens$3.45 per 1M tokens
Apps and activity
Loading…
Technical details
Model IDgoogle/gemini-3.1-flash-image-preview
Context window66K tokens
AcceptsImages, Text
ProducesImages, Text
TokenizerGemini
Max output tokens58,982
How to connect
The API is OpenAI-compatible: the official SDKs, LangChain and any client with a "base URL" field work.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'google/gemini-3.1-flash-image-preview',
messages: [{ role: 'user', content: 'Hello!' }],
})Start using Nano Banana 2 (Gemini 3.1 Flash Image Preview)
Create a free account, get a key in your dashboard and send your first request. Top up your balance when you need it.