Skip to content

Google: Gemma 4 31B provider comparison

google/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. Features a 256K token context window, configurable thinking/reasoning mode, native function...

Endpoints:
14
Context:
262.1K
Input:
image, text, video
Output:
text
Compare this model in a set →

At a glance

Comparison winners

Based on 1,000 input and 500 output tokens using the latest published median speed data.

Best cost/speed trade-off

$0.1967 / 1M tokens

12.85 s estimated response

Cheapest

$0.1967 / 1M tokens

$0.000295 for the sample request

Fastest

ModelRunmodelrun/fp4

3.92 s estimated response

$0.33 / 1M tokens

Visual comparison

Price and performance charts

Compare published endpoint pricing and estimated response time visually.

Effective price by endpoint

USD per 1 million tokens for input and output. Lower is better.

Weights & Biases has the lowest estimated cost for 1,000 input and 500 output tokens at $0.000295.

Estimated cost vs. response time

Based on 1,000 input and 500 output tokens. Cost is shown in USD per 1 million tokens. Lower and further left is better; the single best cost/speed trade-off appears at full opacity.

14 providers have complete pricing and speed data. Weights & Biases is closest to the ideal combination of lowest cost and fastest response.

Server-rendered comparison

Provider endpoints

Prompt and completion prices are effective USD per token as published by OpenRouter. Missing speed data never removes an endpoint.

Endpoint comparison for Google: Gemma 4 31B
Provider / routeCurrent pricing ↗Speed measurementsEndpoint details
Provider / route
Weights & Biaseswandb/bf16
CheapestBest cost/speed trade-off
Current pricing
Input price
$0.12 / 1M tokens
Output price
$0.35 / 1M tokens
Sample cost
$0.000295
Speed measurements
500-token response
12.85 s
Response starts
0.35 s
Output speed
40.0 tok/s
Endpoint details
Uptime (30 min)
99.69%
Context
262.1K
Model format
bf16
Max output
262.1K
15 parameters

frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, top_k, top_logprobs, top_p

Provider / route
Venicevenice/bf16
Current pricing
Input price
$0.12 / 1M tokens
Output price
$0.36 / 1M tokens
Sample cost
$0.0003
Speed measurements
500-token response
17.23 s
Response starts
1.10 s
Output speed
31.0 tok/s
Endpoint details
Uptime (30 min)
98.65%
Context
256K
Model format
bf16
Max output
8.2K
15 parameters

frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
Chuteschutes/fp4
Current pricing
Input price
$0.12 / 1M tokens
Output price
$0.37 / 1M tokens
Sample cost
$0.000305
Speed measurements
500-token response
41.41 s
Response starts
2.95 s
Output speed
13.0 tok/s
Endpoint details
Uptime (30 min)
93.87%
Context
131.1K
Model format
fp4
Max output
65.5K
15 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
DeepInfradeepinfra/turbo
Current pricing
Input price
$0.12 / 1M tokens
Output price
$0.37 / 1M tokens
Sample cost
$0.000305
Speed measurements
500-token response
18.53 s
Response starts
0.68 s
Output speed
28.0 tok/s
Endpoint details
Uptime (30 min)
98.60%
Context
262.1K
Model format
fp4
Max output
16.4K
15 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, top_k, top_p

Provider / route
DeepInfradeepinfra/fp8
Current pricing
Input price
$0.13 / 1M tokens
Output price
$0.38 / 1M tokens
Sample cost
$0.00032
Speed measurements
500-token response
22.56 s
Response starts
0.82 s
Output speed
23.0 tok/s
Endpoint details
Uptime (30 min)
99.57%
Context
262.1K
Model format
fp8
Max output
16.4K
17 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
SiliconFlowsiliconflow/fp8
Current pricing
Input price
$0.13 / 1M tokens
Output price
$0.4 / 1M tokens
Sample cost
$0.00033
Speed measurements
500-token response
78.26 s
Response starts
6.83 s
Output speed
7.0 tok/s
Endpoint details
Uptime (30 min)
42.62%
Context
262.1K
Model format
fp8
Max output
262.1K
11 parameters

frequency_penalty, include_reasoning, max_tokens, reasoning, response_format, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
NovitaAInovita/bf16
Current pricing
Input price
$0.14 / 1M tokens
Output price
$0.4 / 1M tokens
Sample cost
$0.00034
Speed measurements
500-token response
40.04 s
Response starts
1.58 s
Output speed
13.0 tok/s
Endpoint details
Uptime (30 min)
99.38%
Context
262.1K
Model format
bf16
Max output
131.1K
17 parameters

frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
Parasailparasail/fp8
Current pricing
Input price
$0.15 / 1M tokens
Output price
$0.4 / 1M tokens
Sample cost
$0.00035
Speed measurements
500-token response
23.70 s
Response starts
0.97 s
Output speed
22.0 tok/s
Endpoint details
Uptime (30 min)
99.51%
Context
262.1K
Model format
fp8
Max output
262.1K
18 parameters

frequency_penalty, include_reasoning, logit_bias, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
Phalaphala
Current pricing
Input price
$0.15 / 1M tokens
Output price
$0.46 / 1M tokens
Sample cost
$0.00038
Speed measurements
500-token response
53.76 s
Response starts
3.76 s
Output speed
10.0 tok/s
Endpoint details
Uptime (30 min)
91.95%
Context
262.1K
Model format
unknown
Max output
262.1K
14 parameters

frequency_penalty, include_reasoning, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, top_k, top_p

Provider / route
ModelRunmodelrun/fp4
Fastest
Current pricing
Input price
$0.22 / 1M tokens
Output price
$0.55 / 1M tokens
Sample cost
$0.000495
Speed measurements
500-token response
3.92 s
Response starts
0.56 s
Output speed
149.0 tok/s
Endpoint details
Uptime (30 min)
99.91%
Context
262.1K
Model format
fp4
Max output
262.1K
14 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
Togethertogether
Current pricing
Input price
$0.28 / 1M tokens
Output price
$0.86 / 1M tokens
Sample cost
$0.00071
Speed measurements
500-token response
15.85 s
Response starts
0.23 s
Output speed
32.0 tok/s
Endpoint details
Uptime (30 min)
Insufficient recent data
Context
262.1K
Model format
unknown
Max output
N/a
13 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, stop, temperature, top_k, top_p

Provider / route
SambaNovasambanova
Current pricing
Input price
$0.38 / 1M tokens
Output price
$1.15 / 1M tokens
Sample cost
$0.000955
Speed measurements
500-token response
7.16 s
Response starts
1.90 s
Output speed
95.0 tok/s
Endpoint details
Uptime (30 min)
99.96%
Context
131.1K
Model format
unknown
Max output
131.1K
9 parameters

include_reasoning, max_tokens, reasoning, stop, temperature, tool_choice, tools, top_k, top_p

Provider / route
Togethertogether
Current pricing
Input price
$0.39 / 1M tokens
Output price
$0.97 / 1M tokens
Sample cost
$0.000875
Speed measurements
500-token response
15.85 s
Response starts
0.23 s
Output speed
32.0 tok/s
Endpoint details
Uptime (30 min)
99.65%
Context
262.1K
Model format
unknown
Max output
N/a
16 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
Cerebrascerebras/fp16
Current pricing
Input price
$0.99 / 1M tokens
Output price
$1.49 / 1M tokens
Sample cost
$0.001735
Speed measurements
500-token response
14.09 s
Response starts
0.20 s
Output speed
36.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
131.1K
Model format
fp16
Max output
41K
11 parameters

include_reasoning, max_tokens, reasoning, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_p

Endpoint data fetched .

Gemma 4 31B deployment guide

How to choose a Gemma 4 31B inference provider

Gemma 4 31B is indexed here as a text model by Google, with 14 provider endpoints from Weights & Biases, Venice, Chutes, DeepInfra, SiliconFlow, and others. The comparison preserves each exact OpenRouter routing tag so pricing and performance observations can be connected to the route an application would actually request.

Match the endpoint to the workload

The model publishes a 262.1K-token context window. It accepts image, text, video input and returns text output. 19 distinct supported parameters appear across the listed routes. Confirm limits on the specific endpoint rather than assuming every host exposes the same configuration.

Compare the real request economics

Weights & Biases currently has the lowest estimated cost for the standard 1,000-input/500-output-token sample at $0.000295. Input-heavy and output-heavy applications can produce a different result, so review both per-million-token prices in the endpoint table.

Balance response start and generation speed

ModelRun currently has the shortest estimated 500-token response at 3.92 seconds. Weights & Biases is the single endpoint closest to the current ideal cost/speed combination. Recent observations can change, so validate finalists with your own prompts.