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 FriendliAI, Google (AI Studio), Novita, GMI (FP8), Together.ai, Parasail, Weights & Biases, DeepInfra.
Fastest
Output speed
Total 8 providers
Lowest Latency
Time to first answer token
Total 8 providers
Lowest Price
Blended price (per 1M tokens, 3:1 Input-Output ratio)
Total 8 providers
Gemma 4 31B is available through 8 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 FriendliAI (70.3 t/s), Weights & Biases (57.0 t/s), Parasail (43.6 t/s). Speed varies significantly across providers, with a 114% difference between the fastest and slowest.
- For latency, FriendliAI (30.67s), Weights & Biases (36.17s), Parasail (47.55s) offer the lowest time to first token.
- For pricing, DeepInfra (0.19), FriendliAI (0.21), Novita (0.21) offer the lowest blended prices per 1M tokens.
- FriendliAI 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
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
Frequently Asked Questions
Common questions about Gemma 4 31B (Reasoning) providers
Gemma 4 31B (Reasoning) is available through 8 API providers: FriendliAI, Google (AI Studio), Novita, GMI (FP8), Together.ai, Parasail, Weights & Biases, and DeepInfra. Each provider offers different performance characteristics and pricing.
Gemma 4 31B (Reasoning) is currently available through 8 API providers that we benchmark and track.
The fastest providers for Gemma 4 31B (Reasoning) by output speed are FriendliAI (70.3 t/s), Weights & Biases (57.0 t/s), and Parasail (43.6 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 (0.97s), Weights & Biases (1.07s), and Together.ai (1.52s). Lower latency means faster initial response time.
The most affordable providers for Gemma 4 31B (Reasoning) by blended price are DeepInfra ($0.19 per 1M tokens), FriendliAI ($0.21 per 1M tokens), and Novita ($0.21 per 1M tokens). Blended price uses a 3:1 input to output token ratio.
The providers with the lowest input token pricing for Gemma 4 31B (Reasoning) are DeepInfra ($0.13 per 1M input tokens), FriendliAI ($0.14 per 1M input tokens), and Novita ($0.14 per 1M input tokens).
The providers with the lowest output token pricing for Gemma 4 31B (Reasoning) are DeepInfra ($0.38 per 1M output tokens), FriendliAI ($0.40 per 1M output tokens), and Novita ($0.40 per 1M output tokens).
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. FriendliAI is the fastest at 70.3 t/s, which is 7.4x faster than Together.ai at 9.5 t/s.
6 of 8 providers support JSON mode for Gemma 4 31B (Reasoning): FriendliAI, Google (AI Studio), GMI (FP8), Together.ai, Weights & Biases, and DeepInfra.
7 of 8 providers support function calling for Gemma 4 31B (Reasoning): FriendliAI, Google (AI Studio), GMI (FP8), Together.ai, Parasail, Weights & Biases, and DeepInfra.
The best provider for Gemma 4 31B (Reasoning) depends on your priorities: FriendliAI 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