Google: Nano Banana 2.1
Image Generationgoogle/gemini-nano-banana-2.1Nano 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
Vertex
provider.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/generationsgemini
Code Examples
from google import genaiclient = 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)
Related Models
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.
Google: Nano Banana 2.1 supports a context window of 131K tokens with max output of 33K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible โ just change the base URL and API key in your existing code.
Google: Nano Banana 2.1 supports the following capabilities: Vision, Web Search. Access all features through the Ofox.ai unified API.