Grok 4 API Provider Benchmarking & Analysis
Analysis of API providers for Grok 4 across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include xAI, Microsoft Azure.
Fastest
Output speed
Total 2 providers
Lowest Latency
Time to first token
Total 2 providers
Lowest Price
Blended price (per 1M tokens)
Total 2 providers
Grok 4 is available through 2 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 Azure (50.6 t/s), xAI (49.2 t/s).
- For latency, xAI (10.60s), Azure (14.95s) offer the lowest time to first token.
- For pricing, xAI (6.00), Azure (11.00) offer the lowest blended prices per 1M tokens.
- xAI offers both the lowest latency and best pricing, making it attractive for cost-conscious applications. Azure is the fastest option for throughput-intensive workloads.
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: Grok 4 Providers
Speed vs. Price: Grok 4 Providers
Speed
Measured by Output Speed (tokens per second)
Output Speed: Grok 4 Providers
Latency vs. Output Speed: Grok 4 Providers
Latency
Measured by Time (seconds) to First Token
Time to First Answer Token: Grok 4 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: Grok 4 Providers
API Features
Context Window: Grok 4 Providers
Summary Table of Key Comparison Metrics
Frequently Asked Questions
Common questions about Grok 4 providers
Grok 4 is currently available through 2 API providers that we benchmark and track.
1 of 2 providers support JSON mode for Grok 4: xAI.
All 2 providers of Grok 4 support function calling (tool use).
When choosing a provider for Grok 4, 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 Grok 4's intelligence, capabilities, modalities, and how it compares to other models, see the model overview page. View model overview