20% off all GPT ๐ŸŽ‰ 30% off DeepSeekLearn more

Google: Nano Banana 2.1

Image Generation
google/gemini-nano-banana-2.1

Nano Banana 2.1 is Google's GA image generation and editing model, the successor to Nano Banana 2 (Gemini 3.1 Flash Image). It supports up to 14 reference images per prompt and output at 1K, 2K, or 4K resolution, with aspect ratios from 1:8 to 8:1. It handles text-to-image generation, multi-turn editing, and can ground generations with Google Search.

Context Window
131K
Max Output Tokens
33K
Released
2026-10-06
Capabilities
VisionWeb Search
Available Providers
Vertex
Supported Protocols
openaigemini

Providers

Vertexprovider.type: "google_vertex"
Input Tokens
$1.5/M
Output Tokens
$7.5/M
Output Image
$30/M
Web Search
$0.014/R
Protocols
openai/v1/chat/completions/v1/images/edits/v1/images/generations
gemini

Code Examples

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.ai/gemini"},
)
response = client.models.generate_content(
model="google/gemini-nano-banana-2.1",
contents="Generate an image of a beautiful sunset over mountains",
)
print(response.text)

Frequently Asked Questions

Google: Nano Banana 2.1 on Ofox.ai costs $1.5/M per million input tokens and $7.5/M per million output tokens. Pay-as-you-go, no monthly fees.