Gemini 3.1 Flash Image Preview

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

About Gemini 3.1 Flash Image Preview

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 Preview is a chat model by Google Cloud, available on Eden AI through 1 endpoint from 1 provider, from $0.5 per million input tokens and $3 per million output tokens, with a context window of up to 66K tokens.

Providers and prices

1 endpoints from 1 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 Cloudgoogle/gemini-3.1-flash-image-preview
Global
66K
$0.5
$3
$
Official · Reasoning · JSON · Cache · 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
0.81 s
Google Cloud
Lowest latency
16.21 s
Google Cloud
Highest throughput
128.93 tok/s
Google Cloud
Best availability
99.42%
Google Cloud
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Google Cloud
0.81 s
16.21 s
24.6 s
128.93 tok/s
99.42%
0.21%
0%
0%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

Call Gemini 3.1 Flash Image Preview 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-preview",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(response.json())

Questions about Gemini 3.1 Flash Image Preview

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 66K tokens, depending on the endpoint.

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

How fast is Gemini 3.1 Flash Image Preview? Over the last 30 days, the fastest first token was 0.81 s (Google Cloud) and the highest throughput was 128.93 tokens per second (Google Cloud).