Gemma 4 31B (Reasoning) API Provider Benchmarking & Analysis
Analysis of API providers for Gemma 4 31B (Reasoning) across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include CoreWeave, Cerebras, Parasail, DeepInfra, SiliconFlow (FP8), SambaNova, FriendliAI, Lightning AI, Together AI, Google (AI Studio).
Fastest
Output speed
Total 10 providers
Lowest Latency
Time to first answer token
Total 10 providers
Lowest Price
Blended price (per 1M tokens)
Total 10 providers
Gemma 4 31B is available through 10 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 Cerebras (2,065.3 t/s), SambaNova (195.5 t/s), Lightning AI (158.3 t/s). Speed varies significantly across providers, with a 4923% difference between the fastest and slowest.
- For latency, Cerebras (1.40s), Lightning AI (11.60s), SambaNova (12.10s) offer the lowest time to first token.
- For pricing, DeepInfra (0.08), Parasail (0.12), CoreWeave (0.12) offer the lowest blended prices per 1M tokens. Prices vary up to 2.1x across providers.
- Cerebras offers the best performance with both the highest speed and lowest latency. For cost optimization, DeepInfra provides the most competitive pricing.
Highlights
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
Pricing: Blended Price
Pricing: Cache Discount
Speed vs. Price
Speed
Measured by Output Speed (tokens per second)
Output Speed: Gemma 4 31B Providers
Latency vs. Output Speed: Gemma 4 31B Providers
Latency
Measured by Time (seconds) to First Token
Time to First Answer Token: Gemma 4 31B Providers
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: Gemma 4 31B Providers
API Features
Summary Table of Key Comparison Metrics
Gemma 4 31B | 262k | Open | $0.12 | 39 | 1.02 | 58.39 | 44.54 | |
Gemma 4 31B | 131k | Open | $1.04 | 2,065 | 0.56 | 1.65 | 0.84 | |
Gemma 4 31B | 262k | Open | $0.12 | 41 | 3.21 | 57.60 | 42.22 | |
Gemma 4 31B | 262k | Open | $0.08 | 21 | 1.24 | 107.79 | 82.72 | |
Gemma 4 31B (FP8) | 262k | Open | $0.16 | 38 | 4.27 | 62.43 | 45.15 | |
Gemma 4 31B | 131k | Open | $0.46 | 196 | 3.22 | 14.65 | 8.88 | |
Gemma 4 31B | 256k | Open | $0.17 | 69 | 2.20 | 34.40 | 25.00 | |
Gemma 4 31B | 131k | Open | $0.17 | 158 | 0.64 | 14.76 | 10.97 | |
Gemma 4 31B | 262k | Open | $0.23 | 38 | 1.35 | 60.60 | 46.00 | |
Gemma 4 31B (AI Studio) | 262k | Open | $0.00 | 35 | 0.99 | 65.33 | 49.95 | |
Frequently Asked Questions
Common questions about Gemma 4 31B (Reasoning) providers
Gemma 4 31B (Reasoning) is available through 10 API providers: CoreWeave, Cerebras, Parasail, DeepInfra, SiliconFlow (FP8), SambaNova, FriendliAI, Lightning AI, Together AI, and Google (AI Studio). Each provider offers different performance characteristics and pricing.
Gemma 4 31B (Reasoning) is currently available through 10 API providers that we benchmark and track.
The fastest providers for Gemma 4 31B (Reasoning) by output speed are Cerebras (2,065.3 t/s), SambaNova (195.5 t/s), and Lightning AI (158.3 t/s). Output speed measures how quickly tokens are generated after the model starts responding.
The providers with the lowest time to first token for Gemma 4 31B (Reasoning) are Cerebras (0.56s), Lightning AI (0.64s), and Google (AI Studio) (0.99s). Lower latency means faster initial response time.
The providers with the lowest input token pricing for Gemma 4 31B (Reasoning) are CoreWeave ($0.12 per 1M input tokens), DeepInfra ($0.13 per 1M input tokens), and SiliconFlow (FP8) ($0.13 per 1M input tokens).
9 of 10 providers support JSON mode for Gemma 4 31B (Reasoning): CoreWeave, Cerebras, Parasail, DeepInfra, SambaNova, FriendliAI, Lightning AI, Together AI, and Google (AI Studio).
All 10 providers of Gemma 4 31B (Reasoning) support function calling (tool use).
When choosing a provider for Gemma 4 31B (Reasoning), consider: output speed (for throughput-intensive tasks), latency (for interactive applications requiring quick first responses), pricing (for cost-sensitive workloads), and API features like JSON mode or function calling.
Yes, provider performance can vary over time due to infrastructure changes, load balancing, and updates. We continuously benchmark all providers and display historical performance trends in the "Over Time" charts.
For information about Gemma 4 31B (Reasoning)'s intelligence, capabilities, modalities, and how it compares to other models, see the model overview page. View model overview
Cerebras
DeepInfra
SambaNova