Skip to content
Try Hanzo
Language: English (United States)

Nano Banana 2 (Gemini 3.1 Flash Image Preview)

Gemini 3.1 Flash Image Preview, a.k.a.

Context Window
66K
In
$0.557per million tokens
Out
$3.34per million tokens

Google

Model IDgoogle/gemini-3.1-flash-image-preview

Specifications

Context Window
66K
Modalities
image, text
Price
$0.557 in · $3.34 out, per million tokens
Model ID
google/gemini-3.1-flash-image-preview

Quick start

google/gemini-3.1-flash-image-preview

$0.557 in · $3.34 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'google/gemini-3.1-flash-image-preview',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
8K33K66K131K262K1M$1.00$10.00Free

$12.25Bill a month

The same bill for this mix.

Nano Banana 2 (Gemini 3.1 Flash Image Preview)$12.2566K
Gemini 3 Flash Preview$12.251M

Use Nano Banana 2 (Gemini 3.1 Flash Image Preview) via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.