Gemini 3.1 Flash Image Preview

gemini-3.1-flash-image-preview by Google Cloud Released February 27, 2026
ReasoningFunction callingStructured outputPrompt cachingWeb searchComputer useImage inputFile inputAudio inputVideo inputEU hostingFree endpointUp to % off
Input from
$0.5 / 1M
Output from
$3 / 1M
Cached input from
$ / 1M
Context window
66K
Endpoints
1
from 1 providers
Regions
Monde

About Gemini 3.1 Flash Image Preview

« Gemini 3.1 Flash Image Preview », également connu sous le nom de « Nano Banana 2 », est le tout dernier modèle de pointe de Google en matière de génération et de retouche d'images, offrant une qualité visuelle de niveau professionnel à la vitesse de l'éclair.

Gemini 3.1 Flash Image Preview est un modèle conversationnel développé par Google Cloud, disponible sur Eden AI via 1 endpoint chez 1 fournisseur, à partir de 0,5 $ par million de tokens en entrée et 3 $ par million de tokens en sortie, avec une fenêtre de contexte allant jusqu'à 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 CloudOfficial−%google/gemini-3.1-flash-image-preview
Monde
66K
$0.5$0.5
$3
$
ReasoningToolsJSONCacheVisionWeb

Performance

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

Fastest first token
1.18 s
Google Cloud
Lowest latency
13.73 s
Google Cloud
Highest throughput
141.29 tok/s
Google Cloud
Best availability
99.86%
Google Cloud
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Google Cloud
1.18 s
13.73 s
21 s
141.29 tok/s
99.86%
0%
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": "",
        "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: Monde. All of them are called with the same Eden AI API key.

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.

Over the last 30 days, the fastest first token was 1.18 s (Google Cloud) and the highest throughput was 141.29 tokens per second (Google Cloud).