•
Gemma 4 31B
•

Open weights model

•

Released April 2026

Gemma 4 31B (Reasoning) API Provider Benchmarking & Analysis

Model Comparison

This analysis is intended to support you in choosing the best API provider of Gemma 4 31B (Reasoning) for your use-case.

Fastest

#1
Modular (NVFP4)Modular (NVFP4)
233.9 t/s
#2
SambaNovaSambaNova
192.4 t/s
#3
FriendliAIFriendliAI
76.1 t/s
#4
CoreWeaveCoreWeave
63.4 t/s
#5
ParasailParasail
53.9 t/s

Output speed

Total 11 providers

Lowest Latency

#1
Modular (NVFP4)Modular (NVFP4)
7.93 s
#2
SambaNovaSambaNova
18.48 s
#3
FriendliAIFriendliAI
25.08 s
#4
CoreWeaveCoreWeave
29.31 s
#5
ParasailParasail
34.32 s

Time to first answer token

Total 11 providers

Lowest Price

#1
Google (AI Studio)Google (AI Studio)
$0.00
#2
ParasailParasail
$0.11
#3
CoreWeaveCoreWeave
$0.12
#4
DeepInfraDeepInfra
$0.15
#5
GMI (FP8)GMI (FP8)
$0.17

Blended price (per 1M tokens)

Total 11 providers

Gemma 4 31B is available through 11 API providers, each offering different performance characteristics and pricing. Below is a comparison of the key metrics across providers.

  • For output speed, the top providers are Modular (NVFP4) (233.9 t/s), SambaNova (192.4 t/s), and FriendliAI (76.1 t/s). Speed varies significantly across providers, with a 1380% difference between the fastest and slowest.
  • For latency, Modular (NVFP4) (7.93s), SambaNova (18.48s), and FriendliAI (25.08s) offer the lowest time to first answer token.
  • For pricing, Google (AI Studio) (0.00), Parasail (0.11), and CoreWeave (0.12) offer the lowest blended prices per 1M tokens.
  • Modular (NVFP4) offers the best performance with both the highest speed and lowest latency. For cost optimization, Google (AI Studio) provides the most competitive pricing.

Highlights

Output tokens per second · Higher is better
Seconds to first answer token received · Lower is better
USD per 1M tokens (blended) · Lower is better

Update: Default performance benchmarking workload has updated to 10k input tokens to better reflect production use cases. You can still select different workloads above.

Pricing

Pricing: Cache Hit, Input, and Output

Price (USD per M Tokens) · Lower is better · 10,000 input tokens

Pricing: Blended Price

Blended at 7:2:1 (cache-input-output) · USD per 1M tokens (blended) · Lower is better

Pricing: Cache Discount

1 - (cache hit price / input price) · Higher is better

Output Speed vs. Price

Blended at 7:2:1 (cache-input-output) · Output speed: output tokens per second · USD per 1M tokens (blended)
Most attractive quadrant
Pareto line

Speed

Measured by Output Speed (tokens per second)

Output Speed: Gemma 4 31B (Reasoning)

Output speed: output tokens per second · 10,000 input tokens

Latency vs. Output Speed

Latency: seconds to first token received · Output speed: output tokens per second · 10,000 input tokens
Most attractive quadrant

Latency

Measured by Time (seconds) to First Token

Time to First Answer Token

Seconds to first token received · Lower is better · 10,000 input tokens

End-to-End Response Time

Seconds to output 500 tokens, calculated based on time to first token, 'thinking' time for reasoning models, and output speed

End-to-End Response Time

Seconds to output 500 tokens, including reasoning model 'thinking' time · Lower is better · 10,000 input tokens

Key Comparison Metrics & API Features

CoreWeave logoCoreWeave
262k
Open
$0.07
63
1.95
37.20
27.37
Modular logoModular
262k
Open
--
234
0.50
10.06
7.42
GMI logoGMI
262k
Open
$0.10
--
--
--
--
Novita logoNovita
262k
Open
$0.10
17
4.33
137.11
103.09
Google logoGoogle
262k
Open
$0.00
36
1.10
63.92
48.77
Parasail logoParasail
262k
Open
$0.07
54
2.13
43.59
32.19
DeepInfra logoDeepInfra
262k
Open
$0.10
16
2.71
144.19
109.84
Crusoe logoCrusoe
262k
Open
$0.10
29
1.14
77.13
58.99
SiliconFlow logoSiliconFlow
262k
Open
$0.54
49
3.60
49.55
35.67
SambaNova logoSambaNova
131k
Open
$0.28
192
9.45
21.08
9.02
FriendliAI logoFriendliAI
256k
Open
$0.10
76
2.28
31.65
22.80

Frequently Asked Questions

Common questions about Gemma 4 31B (Reasoning) providers