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.

Grok 4 logo

Proprietary model

Released July 2025

Grok 4 API Provider Benchmarking & Analysis

Model Comparison

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 Microsoft Azure.

Fastest

#1
AzureAzure
43.6 t/s

Output speed

Total 1 provider

Lowest Latency

#1
AzureAzure
17.24 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

Price per token for cached prompts (previously processed), typically offering a significant discount compared to regular input price, represented as USD per million tokens. The values shown here are the cache hit price; cache write and cache storage are billed separately and vary by provider — see "Cache pricing by provider" for detail.

Pricing: Blended Price

Blended at 7:2:1 (cache-input-output) · USD per 1M tokens (blended) · Lower is better

Price per token, shown in USD per million tokens. Price is a blend of cache hit, input, and output token prices using the selected ratio (default 7:2:1 cache-input-output).

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

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Speed

Measured by Output Speed (tokens per second)

Output Speed: Grok 4

Output speed: output tokens per second · 10,000 input tokens

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Latency vs. Output Speed

Latency: seconds to first token received · Output speed: output tokens per second · 10,000 input tokens
Most attractive quadrant

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

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

Time to first answer token received, in seconds, after API request sent. For reasoning models, this includes the 'thinking' time of the model before providing an answer. For models which do not support streaming, this represents time to receive the completion.

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

Seconds to receive a 500 token response. Key components:

  • Input time: Time to receive the first response token
  • Thinking time (only for reasoning models): Time reasoning models spend outputting tokens to reason prior to providing an answer. Amount of tokens based on the average reasoning tokens across a diverse set of 60 prompts (methodology details).
  • Answer time: Time to generate 500 output tokens, based on output speed

Key Comparison Metrics & API Features

Microsoft Azure logoMicrosoft Azure
256k
Proprietary
--
44
17.24
28.71
--

Frequently Asked Questions

Common questions about Grok 4 providers

Grok 4 is available through 1 API provider: Azure. Each provider offers different performance characteristics and pricing.

Grok 4 is currently available through 1 API provider that we benchmark and track.

The fastest provider for Grok 4 by output speed is Azure (43.6 t/s). Output speed measures how quickly tokens are generated after the model starts responding.

The provider with the lowest time to first answer token for Grok 4 is Azure (17.24s). Lower latency means faster initial response time.

The most affordable provider for Grok 4 by blended price is Azure ($4.20 per 1M tokens). Blended price uses a 7:2:1 cache hit/input/output token ratio.

The provider with the lowest input token pricing for Grok 4 is Azure ($3.00 per 1M input tokens).

The provider with the lowest output token pricing for Grok 4 is Azure ($15.00 per 1M output tokens).

The only provider of Grok 4 supports JSON mode for structured output.

The only provider of Grok 4 supports function calling (tool use).

Azure leads across all key metrics for Grok 4, offering the fastest speed, lowest latency, and most competitive pricing.

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