This model is deprecated. We only continue performance benchmarking for the default 10k input token workload. Results for other workloads are historical and no longer updated.

SpaceXAI has launched a newer model, Grok 4.20 0309. We suggest considering it instead.

For more information, see comparison of Grok 4.20 0309 to other models and API provider benchmarks for Grok 4.20 0309.

Proprietary model

Released July 2025

Grok 4 API Provider Benchmarking & Analysis

Model Comparison

This analysis is intended to support you in choosing the best API provider of Grok 4 for your use-case.

Fastest

#1
AzureAzure
77.6 t/s

Output speed

Total 1 provider

Lowest Latency

#1
AzureAzure
8.15 s

Time to first answer token

Total 1 provider

Lowest Price

#1
AzureAzure
$4.20

Blended price (per 1M tokens)

Total 1 provider

Grok 4 is available through Azure.

Highlights

Output tokens per second · Higher is better
Seconds · Lower is better
USD per 1M tokens (blended) · Lower is better

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

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

Speed

Measured by Output Speed (tokens per second)

Output Speed: Grok 4

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

Microsoft Azure logoMicrosoft Azure
256k
Proprietary
--
76
7.44
14.03
--

Frequently Asked Questions

Common questions about Grok 4 providers