Nano Banana 2 (Gemini 3.1 Flash Image)

Google chatimage_genreasoningvision

API ID: google/gemini-3.1-flash-image-20260528

Input Price
$0.50
/1M tokens
Output Price
$3.00
/1M tokens

About Nano Banana 2 (Gemini 3.1 Flash Image)

Nano Banana 2 (Gemini 3.1 Flash Image) is a mid-range general-purpose model from Google with long context (131k), suitable for conversations, content creation, and general AI tasks.

💰
Price Ranking
#1024 lowest price among 1240 Chat models

Model Specifications

Context Length
131k
Max Output
33k
Release Date
2026-06-18
Capabilities
chat image_gen reasoning vision
Input Modalities
imagetext
Output Modalities
imagetext

Best For

  • Complex reasoning, math problems, multi-step logic
  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Simple Q&A (cheaper models available)

💰 Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$1.13
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$34.50
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$47.25
/month
500 analyses/day, ~2k tokens each

Google Model Lineup

Compare all models from Google to find the best fit

Model Input Output Context Capabilities
Nano Banana 2 (Gemini 3.1 Flash Image) Current Free Free 131k chat image_gen reasoning vision
Gemma 3n 4B Free Free 33k chat
Gemini 2.5 Flash Image Preview (Nano Banana) Free Free 33k chat vision image_gen
Gemma 3n 2B (free) Free Free 8k chat tool_use
Gemma 1 2B Free Free 8k chat
Gemma 1 2B Free Free 8k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

OpenAI GPT-3.5 Turbo Instruct
Input: $1.50
Output: $2.00
Context: 4k
DeepSeek DeepSeek V4 Pro
Input: $1.17
Output: $2.34
Context: 1.0M
Alibaba Qwen Qwen3.5-122B-A10B
Input: $0.40
Output: $3.20
Context: 262k
Moonshot AI Kimi K2.5
Input: $0.60
Output: $3.00
Context: 262k

🚀 Quick Start

Get started with Nano Banana 2 (Gemini 3.1 Flash Image) API

Google AI Python SDK
import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-3.1-flash-image-20260528")

response = model.generate_content("Hello!")
print(response.text)