Nano banana 2 api delivers 1M+ context and sub-second vision. Built for scale, Nano provides native video analysis and dense OCR at 1/10th the cost of Pro tiers. Access Nano through our optimized endpoint on GPTProto.com for production reliability.
$ 0.0402
$ 0.067
image
image
$ 0.0402
$ 0.067
image
image
Playground
JSON
API
Input
Your request will cost$0per run, for$100you can run this model approximately0times
The Nano banana 2 api provides high-performance vision capabilities at a fraction of the cost.
Massive 1M Nano Context Window
Process over one million tokens with the Nano banana 2 api. Nano allows developers to analyze hour-long videos or massive document stacks in a single prompt.
Before
After
Massive 1M Nano Context Window
Process over one million tokens with the Nano banana 2 api. Nano allows developers to analyze hour-long videos or massive document stacks in a single prompt.
Before
After
Nano Dense OCR Accuracy
Nano banana 2 api provides 98% accuracy on complex table-to-markdown tasks. Nano handles high-resolution scans and handwritten notes with industrial precision.
Before
After
Nano Dense OCR Accuracy
Nano banana 2 api provides 98% accuracy on complex table-to-markdown tasks. Nano handles high-resolution scans and handwritten notes with industrial precision.
Before
After
Nano Context Caching Savings
Reduce costs by 90% using the Nano banana 2 api native caching. Store frequent image sets in the Nano KV cache to speed up repeat API calls significantly.
Before
After
Nano Context Caching Savings
Reduce costs by 90% using the Nano banana 2 api native caching. Store frequent image sets in the Nano KV cache to speed up repeat API calls significantly.
Before
After
Sub-second Nano Visual Inference
Nano banana 2 api is optimized for 200ms latency. Use Nano for real-time camera loops and instant object detection without the overhead of heavy models.
Before
After
Sub-second Nano Visual Inference
Nano banana 2 api is optimized for 200ms latency. Use Nano for real-time camera loops and instant object detection without the overhead of heavy models.
Before
After
How to Get a gemini-3.1-flash-image API Key
Getting a gemini-3.1-flash-image API key takes four steps and a few minutes. Create a free GPTProto account, add credits, generate your key, and make your first call — at $0.0402 it's a cheaper gemini-3.1-flash-image API key than going direct, and one key works across every model on the platform. Full gemini-3.1-flash-image Documentation is in the docs.
Sign up
Create your free GPT Proto account to begin. You can set up an organization for your team at any time.
Top up
Your balance can be used across all models on the platform, including gemini-3.1-flash-image, giving you the flexibility to experiment and scale as needed.
Generate your API key
In your dashboard, create an API key — you'll need it to authenticate when making requests to gemini-3.1-flash-image.
Make your first API call
Use your API key with our sample code to send a request to gemini-3.1-flash-image via GPT Proto and see instant AI-powered results.
The Nano banana 2 api is specifically optimized for low-latency visual tasks. With a Time-To-First-Token (TTFT) under 200ms for single-image prompts, Nano is ideal for live-camera agentic loops and real-time vision applications. Nano provides the speed necessary for interactive AI tools while maintaining high accuracy in object detection and spatial reasoning across varied lighting conditions and complex environments.
What is the context limit for Nano?
Nano offers a massive 1,048,576 token context window, which is enough to process up to an hour of video or thousands of document pages. This Nano banana 2 api capacity allows for deep "Visual RAG" workflows where you can query massive archives of technical diagrams or blueprints. For enterprise users, the context window can scale even further, ensuring Nano handles your most data-intensive multimodal tasks efficiently.
How does Nano handle data privacy?
Security is a core feature of the Nano banana 2 api on GPTProto.com. Under our enterprise agreement with Google, no data sent through the Nano api is used to train foundation models. This ensures that your proprietary images, sensitive documents, and private video feeds remain confidential. Nano provides industrial-grade privacy so you can build internal tools or customer-facing apps with full confidence in your data sovereignty.
Can I use Nano for retail analytics?
Yes, the Nano banana 2 api is perfect for high-volume retail environments. Nano can analyze storefront camera feeds to track stock levels, monitor foot traffic, and assess customer sentiment in real-time. Because Nano provides high-speed inference at a low cost, it is feasible to run continuous monitoring loops across thousands of locations without the prohibitive expenses typically associated with Pro-tier multimodal models.
What is the cost of Nano input tokens?
Pricing for the Nano banana 2 api is highly competitive. Input tokens cost $0.10 per 1M, while output tokens are $0.40 per 1M. Additionally, Nano supports context caching at $0.025 per 1M tokens per hour for storage, which can lead to a 90% cost reduction for repeat calls. GPTProto.com offers flat-rate billing for Nano, meaning you won't see unexpected image-processing surcharges often found in direct cloud provider billing.
Does Nano support search grounding?
Absolutely. The Nano banana 2 api includes native integration for Google Search and Google Image Search. This allows Nano to verify facts against real-time data and generate or analyze imagery based on recent events, weather forecasts, or current market charts. This grounding capability makes Nano an excellent choice for news applications, dynamic reporting tools, and any workflow that requires up-to-the-minute visual context.