Gemma 4 31B IT

gemma-4-31b-it by Google Cloud Released April 3, 2026
Reasoning · Function calling · Structured output · Prompt caching · Image input · Audio input · Video input · EU hosting · Free endpoint
Input from
$0 / 1M
Output from
$0 / 1M
Cached input from
$0.021 / 1M
Context window
262K
Endpoints
8
from 7 providers
Regions
Global, Europe, Switzerland, United States

About Gemma 4 31B IT

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Gemma 4 31B IT is a chat model by Google Cloud, available on Eden AI through 8 endpoints from 7 providers, including a free endpoint (paid endpoints from $0.1 per million input tokens), with a context window of up to 262K tokens.

Providers and prices

8 endpoints from 7 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/gemma-4-31b-it
Global
262K
$0
$0
$
Official · Reasoning · Tools · JSON · Vision
Arkane Cloudarkanecloud/gemma4-31b
Global
131K
$0.1
$0.2
$0.1
Tools · Cache
FlexAIflexai/gemma-4-31b-it
Global
262K
$0.14
$0.4
$0.021
Tools · JSON · Cache · Vision
FlexAI (Europe)flexai/gemma-4-31b-it@eu
Europe
262K
$0.14
$0.4
$0.021
Tools · JSON · Cache · Vision
Greenference (Europe)greenference/gemma-4-31b-it
Europe
262K
$0.1485
$0.42
$0.0578
Reasoning · Tools · JSON · Cache
DeepInfra (United States)deepinfra/google/gemma-4-31B-it
United States
262K
$0.2
$0.4
$0.075
Reasoning · Tools · JSON · Cache · Vision
Infomaniak (Switzerland)infomaniak/google/gemma-4-31B-it
Switzerland
100K
$0.2198
$0.4396
$
Tools · JSON · Vision
GreenPT (Europe)greenpt/gemma4
Europe
256K
$0.5495
$1.6485
$
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
0.23 s
Arkane Cloud
Lowest latency
0.42 s
Arkane Cloud
Highest throughput
191.27 tok/s
GreenPT (Europe)
Best availability
99.98%
FlexAI (Europe)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Google Cloud
1.17 s
9.04 s
136.8 s
35.31 tok/s
99.91%
2.66%
84.37%
54.69%
Arkane Cloud
0.23 s
0.42 s
131.64 s
7.61 tok/s
96.65%
2.31%
25.91%
14.56%
FlexAI
1.8 s
5.08 s
21.54 s
89.78 tok/s
99.93%
41.4%
0.66%
1.29%
FlexAI (Europe)
0.33 s
4.87 s
24.28 s
82.01 tok/s
99.98%
34.02%
0%
0.44%
Greenference (Europe)
3.9 s
4.32 s
50.4 s
33.29 tok/s
98.72%
67.94%
3.46%
13.05%
DeepInfra (United States)
1.01 s
17.43 s
52.55 s
25.01 tok/s
99.93%
0%
0.48%
0.88%
Infomaniak (Switzerland)
2.02 s
3.68 s
42.58 s
52 tok/s
99.6%
61.72%
0.74%
4.52%
GreenPT (Europe)
0.27 s
4.67 s
22.71 s
191.27 tok/s
99.61%
0%
3.33%
14.29%

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": "gemma-4-31b-it",
        "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.

8 endpoints from 7 providers, available in: Global, Europe, Switzerland, United States. All of them are called with the same Eden AI API key.

Can I run Gemma 4 31B IT 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 Gemma 4 31B IT? Over the last 30 days, the fastest first token was 0.23 s (Arkane Cloud) and the highest throughput was 191.27 tokens per second (GreenPT (Europe)).