Gemma 4 31B IT

gemma-4-31b-it by Google Cloud Released April 3, 2026
ReasoningFunction callingStructured outputPrompt cachingWeb searchComputer useImage inputFile inputAudio inputVideo inputEU hostingFree endpointUp to % off
Input from
$0 / 1M
Output from
$0 / 1M
Cached input from
$0.021 / 1M
Context window
262K
Endpoints
7
from 6 providers
Regions
Monde, Europe, Switzerland, États-Unis

About Gemma 4 31B IT

Gemma 4 31B Instruct est un modèle multimodal dense de 30,7 milliards de paramètres développé par Google DeepMind, qui prend en charge les entrées textuelles et visuelles et génère des sorties textuelles.

Gemma 4 31B IT est un modèle conversationnel développé par Google Cloud, disponible sur Eden AI via 7 endpoints chez 6 fournisseurs, dont un endpoint gratuit (endpoints payants à partir de 0,14 $ par million de tokens en entrée), avec une fenêtre de contexte allant jusqu'à 262K tokens.

Providers and prices

7 endpoints from 6 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/gemma-4-31b-it
Monde
262K
$0$0
$0
$
ReasoningToolsJSONCacheVisionWeb
FlexAIOfficial−%flexai/gemma-4-31b-it
Monde
262K
$0.14$0.14
$0.4
$0.021
ReasoningToolsJSONCacheVisionWeb
FlexAI (Europe)Official−%flexai/gemma-4-31b-it@eu
Europe
262K
$0.14$0.14
$0.4
$0.021
ReasoningToolsJSONCacheVisionWeb
Greenference (Europe)Official−%greenference/gemma-4-31b-it
Europe
262K
$0.1485$0.1485
$0.42
$0.0578
ReasoningToolsJSONCacheVisionWeb
DeepInfra (États-Unis)Official−%deepinfra/google/gemma-4-31B-it
États-Unis
262K
$0.2$0.2
$0.4
$0.075
ReasoningToolsJSONCacheVisionWeb
Infomaniak (Switzerland)Official−%infomaniak/google/gemma-4-31B-it
Switzerland
100K
$0.2251$0.2251
$0.4501
$
ReasoningToolsJSONCacheVisionWeb
GreenPT (Europe)Official−%greenpt/gemma4
Europe
256K
$0.5626$0.5626
$1.6879
$
ReasoningToolsJSONCacheVisionWeb

Performance

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

Fastest first token
0.45 s
Infomaniak (Switzerland)
Lowest latency
0.52 s
Infomaniak (Switzerland)
Highest throughput
39.35 tok/s
FlexAI
Best availability
100%
Infomaniak (Switzerland)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Google Cloud
1.18 s
43.07 s
114.07 s
35.25 tok/s
99.52%
9.68%
65.05%
76.45%
FlexAI
2.03 s
3.21 s
21.77 s
39.35 tok/s
99.62%
26.77%
0.22%
0.75%
FlexAI (Europe)
s
s
s
tok/s
%
%
%
%
Greenference (Europe)
1.93 s
1.82 s
21.66 s
25.77 tok/s
99.96%
56.35%
0.62%
1.69%
DeepInfra (États-Unis)
1.3 s
21.59 s
54.38 s
19.82 tok/s
99.99%
0%
4.31%
0%
Infomaniak (Switzerland)
0.45 s
0.52 s
35.89 s
22.4 tok/s
100%
46.97%
0%
0%
GreenPT (Europe)
s
s
s
tok/s
%
%
%
%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

Call Gemma 4 31B IT 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 Gemma 4 31B IT

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

Up to 262K tokens, depending on the endpoint.

7 endpoints from 6 providers, available in: Monde, Europe, Switzerland, États-Unis. 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 0.45 s (Infomaniak (Switzerland)) and the highest throughput was 39.35 tokens per second (FlexAI).