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 Google (AI Studio), Novita, Parasail, GMI (FP8), Weights & Biases, DeepInfra, Together.ai.
Fastest
Output speed
Total 7 providers
Lowest Latency
Time to first answer token
Total 7 providers
Lowest Price
Blended price (per 1M tokens)
Total 7 providers
Gemma 4 31B is available through 7 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 Weights & Biases (66.3 t/s), Google (AI Studio) (35.5 t/s), DeepInfra (26.2 t/s). Speed varies significantly across providers, with a 225% difference between the fastest and slowest.
- For latency, Weights & Biases (31.22s), Google (AI Studio) (58.16s), DeepInfra (77.27s) offer the lowest time to first token.
- For pricing, DeepInfra (0.19), Novita (0.20), Parasail (0.20) offer the lowest blended prices per 1M tokens.
- Weights & Biases 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: Input and Output Prices: Gemma 4 31B Providers
Speed vs. Price: Gemma 4 31B Providers
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
Frequently Asked Questions
Common questions about Gemma 4 31B (Reasoning) providers
Gemma 4 31B (Reasoning) is available through 7 API providers: Google (AI Studio), Novita, Parasail, GMI (FP8), Weights & Biases, DeepInfra, and Together.ai. Each provider offers different performance characteristics and pricing.
Gemma 4 31B (Reasoning) is currently available through 7 API providers that we benchmark and track.
The fastest providers for Gemma 4 31B (Reasoning) by output speed are Weights & Biases (66.3 t/s), Google (AI Studio) (35.5 t/s), and DeepInfra (26.2 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 DeepInfra (1.04s), Weights & Biases (1.04s), and Google (AI Studio) (1.79s). Lower latency means faster initial response time.
Prices for Gemma 4 31B (Reasoning) vary up to 2.8x across providers. The most affordable is DeepInfra at $0.19 per 1M tokens, while Weights & Biases charges $0.54 per 1M tokens.
Output speed for Gemma 4 31B (Reasoning) varies significantly across providers. Weights & Biases is the fastest at 66.3 t/s, which is 4.0x faster than GMI (FP8) at 16.5 t/s.
5 of 7 providers support JSON mode for Gemma 4 31B (Reasoning): Google (AI Studio), GMI (FP8), Weights & Biases, DeepInfra, and Together.ai.
6 of 7 providers support function calling for Gemma 4 31B (Reasoning): Google (AI Studio), Parasail, GMI (FP8), Weights & Biases, DeepInfra, and Together.ai.
The best provider for Gemma 4 31B (Reasoning) depends on your priorities: Weights & Biases offers the highest output speed, DeepInfra has the lowest latency, and DeepInfra provides the most competitive pricing.
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
DeepInfra