Gemini 3.1 Flash Image

gemini-3.1-flash-image by Google Cloud Released February 27, 2026
Reasoning · Structured output · Web search · Image input · EU hosting
Input from
$0.5 / 1M
Output from
$3 / 1M
Cached input from
$ / 1M
Context window
131K
Endpoints
2
from 2 providers
Regions
Global, Europe

About Gemini 3.1 Flash Image

Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed.

Gemini 3.1 Flash Image is a chat model by Google Cloud, available on Eden AI through 2 endpoints from 2 providers, from $0.5 per million input tokens and $3 per million output tokens, with a context window of up to 131K tokens.

Providers and prices

2 endpoints from 2 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you.

Endpoint
Region
Context
Input / 1M
Output / 1M
Cached / 1M
Supports
Google Cloud (Europe)vertex/gemini-3.1-flash-image
Europe
131K
$0.5
$3
$
Reasoning · JSON · Vision · Web
Google Cloudgoogle/gemini-3.1-flash-image
Global
66K
$0.5
$3
$
Official · Reasoning · JSON · Vision · Web

Performance

Measured on real Eden AI traffic over the last 30 days. Endpoints with too little traffic are not shown.

Fastest first token
7.34 s
Google Cloud (Europe)
Lowest latency
2.33 s
Google Cloud (Europe)
Highest throughput
158.51 tok/s
Google Cloud (Europe)
Best availability
100%
Google Cloud (Europe)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Google Cloud (Europe)
7.34 s
2.33 s
12.52 s
158.51 tok/s
100%
20.3%
0%
0%
Google Cloud
8.74 s
3.03 s
13.07 s
129.14 tok/s
99.93%
22.39%
0%
0%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

Call Gemini 3.1 Flash Image with Eden AI

Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.

import requests

response = requests.post(
    "https://api.edenai.run/v3/chat/completions",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "gemini-3.1-flash-image",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(response.json())

Questions about Gemini 3.1 Flash Image

On Eden AI, prices for this model start at $0.5 per million input tokens and $3 per million output tokens. Prices differ by endpoint; the providers table lists each one.

Up to 131K tokens, depending on the endpoint.

2 endpoints from 2 providers, available in: Global, Europe. All of them are called with the same Eden AI API key.

Can I run Gemini 3.1 Flash Image in the EU? Yes. At least one endpoint is hosted in Europe; pin it with its endpoint ID from the providers table to keep requests in the EU. ‖ How fast is Gemini 3.1 Flash Image? Over the last 30 days, the fastest first token was 7.34 s (Google Cloud (Europe)) and the highest throughput was 158.51 tokens per second (Google Cloud (Europe)).