Gemini 3.1 Pro

gemini-3.1-pro by Google Cloud Released June 22, 2026
Reasoning · Function calling · Structured output · Image input · Audio input
Input from
$2 / 1M
Output from
$12 / 1M
Cached input from
$ / 1M
Context window
1M
Endpoints
1
from 1 providers
Regions
United States

About Gemini 3.1 Pro

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows.

Gemini 3.1 Pro is a chat model by Google Cloud, available on Eden AI through 1 endpoint from 1 provider, from $2 per million input tokens and $12 per million output tokens, with a context window of up to 1M 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
DeepInfra (United States)deepinfra/google/gemini-3.1-pro
United States
1M
$2
$12
$
Reasoning · Tools · JSON · Vision

Performance

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

Fastest first token
3.2 s
DeepInfra (United States)
Lowest latency
21.67 s
DeepInfra (United States)
Highest throughput
72.71 tok/s
DeepInfra (United States)
Best availability
100%
DeepInfra (United States)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
DeepInfra (United States)
3.2 s
21.67 s
28.73 s
72.71 tok/s
100%
0.78%
0%
0%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

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

Questions about Gemini 3.1 Pro

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

Up to 1M tokens, depending on the endpoint.

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

How fast is Gemini 3.1 Pro? Over the last 30 days, the fastest first token was 3.20 s (DeepInfra (United States)) and the highest throughput was 72.71 tokens per second (DeepInfra (United States)).