# Google: Nano Banana 2 (Gemini 3.1 Flash Image)

Nano Banana 2 (Gemini 3.1 Flash Image) is an image model from Google. It makes images from text prompts.

- **Model id:** `opencheap/gemini-3.1-flash-image`
- **Price per 1M tokens:** $0.50 input / $3.00 output
- **Context:** 131K tokens, 58K max output

## Providers

3 providers. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Latency | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Sandbase · quantization unknown | $0.50 | $0.50* | $3.00 | — | — | — | — |
| Google · quantization unknown | $0.53 | $0.53* | $3.15 | 9.65 s | 100 % | 131K | 32K |
| Google AI Studio · quantization unknown | $0.53 | $0.53* | $3.15 | 9.03 s | 100 % | 65K | 58K |

\* No cache discount from this provider: cached tokens cost the input price.

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Sandbase:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Google:** `temperature`, `top_p`, `seed`, `response_format`, `reasoning`, `include_reasoning` (stop, tools not confirmed)
- **Google AI Studio:** `temperature`, `top_p`, `seed`, `response_format`, `structured_outputs`, `reasoning`, `include_reasoning` (stop, tools not confirmed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/gemini-3.1-flash-image#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/gemini-3.1-flash-image`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/gemini-3.1-flash-image", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gemini-3.1-flash-image",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gemini-3.1-flash-image",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Nano Banana 2 (Gemini 3.1 Flash Image)

Nano Banana 2 (Gemini 3.1 Flash Image) costs from $0.50 per 1M input tokens and $3.00 per 1M output tokens on OpenCheap. Its list price is $0.50 per 1M input tokens and $3.00 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.008, and 1,000 such requests about $8.00. Prices as of 2026-12-04 12:01 UTC.

3 providers serve Nano Banana 2 (Gemini 3.1 Flash Image) on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.

Nano Banana 2 (Gemini 3.1 Flash Image) is one of [102 Google models](https://opencheap.si/models/lab/google) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Nano Banana 2 (Gemini 3.1 Flash Image) API cost per 1M tokens?

Nano Banana 2 (Gemini 3.1 Flash Image) costs from $0.50 per 1M input tokens and $3.00 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 12:01 UTC.

### What does one Nano Banana 2 (Gemini 3.1 Flash Image) request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.008, and 1,000 such requests about $8.00. Every answer reports its own cost in usage.cost.

### Is Nano Banana 2 (Gemini 3.1 Flash Image) cheaper on OpenCheap than its list price?

Its list price is $0.50 per 1M input tokens and $3.00 per 1M output tokens, the same as here.

### Which providers serve Nano Banana 2 (Gemini 3.1 Flash Image)?

3 providers serve Nano Banana 2 (Gemini 3.1 Flash Image) on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Nano Banana 2 (Gemini 3.1 Flash Image)?

Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.

### How do I call the Nano Banana 2 (Gemini 3.1 Flash Image) API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gemini-3.1-flash-image. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Google

- [Gemma 4 26B A4B It](https://opencheap.si/models/gemma-4-26b-a4b) (`gemma-4-26b-a4b`): $0.01 / $0.03 per 1M · 262K context
- [Gemma 4 31B It](https://opencheap.si/models/gemma-4-31b) (`gemma-4-31b`): $0.012 / $0.036 per 1M · 262K context
- [google/gemma-3-27b-it](https://opencheap.si/models/gemma-3-27b) (`gemma-3-27b`): $0.02 / $0.05 per 1M · 131K context
- [Gemini 3.5 Flash](https://opencheap.si/models/gemini-3.5-flash) (`gemini-3.5-flash`): $1.50 / $9.00 per 1M · 1M context
- [DiffusionGemma](https://opencheap.si/models/diffusiongemma) (`diffusiongemma`): $0.05 / $0.15 per 1M · 262K context
- [Nano Banana (Gemini 2.5 Flash Image)](https://opencheap.si/models/gemini-2.5-flash-image) (`gemini-2.5-flash-image`): $0.32 / $2.63 per 1M · 32K context
- [Gemini 2.5 Flash Lite](https://opencheap.si/models/gemini-2.5-flash-lite) (`gemini-2.5-flash-lite`): $0.10 / $0.40 per 1M · 1M context
- [Gemini 2.5 Flash Preview 05-20 (no think)](https://opencheap.si/models/gemini-2.5-flash-preview-05.20:nothink) (`gemini-2.5-flash-preview-05.20:nothink`): $0.30 / $2.50 per 1M · 1M context

[All 102 Google models](https://opencheap.si/models/lab/google)

## Similar models

- [GPT Audio Mini](https://opencheap.si/models/gpt-audio-mini): OpenAI · 128K context · $0.63 / $2.52 per 1M, 14 % cheaper · [Compare with Nano Banana 2 (Gemini 3.1 Flash Image)](https://opencheap.si/compare/gemini-3.1-flash-image-vs-gpt-audio-mini)
- [qwen-sea-lion-v4.5-27b](https://opencheap.si/models/qwen-sea-lion-v4.5-27b): Qwen · 131K context · $0.63 / $3.78 per 1M · [Compare with Nano Banana 2 (Gemini 3.1 Flash Image)](https://opencheap.si/compare/gemini-3.1-flash-image-vs-qwen-sea-lion-v4.5-27b)
- [Claude Haiku 4.5](https://opencheap.si/models/claude-haiku-4.5): Anthropic · 200K context · $0.40 / $2.00 per 1M, 33 % cheaper · [Compare with Nano Banana 2 (Gemini 3.1 Flash Image)](https://opencheap.si/compare/gemini-3.1-flash-image-vs-claude-haiku-4.5)
- [Aion 3.0 Mini](https://opencheap.si/models/aion-3.0-mini): AionLabs · 131K context · $0.70 / $1.40 per 1M, 48 % cheaper · [Compare with Nano Banana 2 (Gemini 3.1 Flash Image)](https://opencheap.si/compare/gemini-3.1-flash-image-vs-aion-3.0-mini)
- [nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16](https://opencheap.si/models/nemotron-3-ultra-550b-a55b-bf16): NVIDIA · 262K context · $0.50 / $2.15 per 1M, 27 % cheaper · [Compare with Nano Banana 2 (Gemini 3.1 Flash Image)](https://opencheap.si/compare/gemini-3.1-flash-image-vs-nemotron-3-ultra-550b-a55b-bf16)
- [seed-2.0-lite](https://opencheap.si/models/seed-2.0-lite): ByteDance · 262K context · $0.25 / $2.00 per 1M, 34 % cheaper · [Compare with Nano Banana 2 (Gemini 3.1 Flash Image)](https://opencheap.si/compare/gemini-3.1-flash-image-vs-seed-2.0-lite)

[Compare Nano Banana 2 (Gemini 3.1 Flash Image) with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/gemini-3.1-flash-image · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
