Nano Banana 2

GoogleReasoning
google/gemini-3.1-flash-imageClosed API

Image model for prompt-driven generation, editing, and visual design workflows

Benchmark Pricing$0.50 / 1M in$60.00 / 1M out
Context: 131,072 tokens•Max Output: 32,768 tokens•Knowledge: 2025-01•Released: 2026-05-28

TECHNICAL SPECIFICATIONS

Context Window131,072131.1K tokens
Max Output32,76832.8K tokens
LicenseProprietaryCloud API only
Input Modalities
TextVisionPDFVideo
Function / Tool CallingNot Supported
Structured OutputsPrompt Based

MODEL CONTEXT PROTOCOL (MCP) READINESS

⚠ Nano Banana 2 does not natively advertise tool-calling capabilities. When connecting to MCP servers, function calling must be handled via structured prompt injection.

MCP Context Window Recommendations

With a context capacity of 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling Nano Banana 2 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.GOOGLE_API_KEY,
});

const response = await client.chat.completions.create({
  model: "google/gemini-3.1-flash-image",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

12 providers
Googlegemini-3.1-flash-image
$0.50 / $60.00
302.AIgemini-3.1-flash-image-preview
$0.50 / $60.00
AIHubMixgemini-3.1-flash-image
$0.50 / $3.00
Abacusgemini-3.1-flash-image
$0.50 / $3.00
Vercel AI Gatewaygoogle/gemini-3.1-flash-image
$0.50 / $3.00$0.05 cache
Eden AIgoogle/gemini-3.1-flash-image
$0.50 / $3.00
Merge Gatewaygoogle/gemini-3.1-flash-image
$0.50 / $3.00
FastRoutergoogle/gemini-3.1-flash-image-preview
$0.50 / $3.00
Kilo Gatewaygoogle/gemini-3.1-flash-image
$0.50 / $3.00
Vertexgemini-3.1-flash-image
$0.50 / $60.00$0.05 cache
Requestygemini-3.1-flash-image
$0.50 / $2.00
OpenRoutergoogle/gemini-3.1-flash-image
$0.50 / $3.00

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

MODEL RESOURCES