Context
256K
Max output
256K
Serving providers
5
Cheapest input
$3.00 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.
Benchmarks
independent evaluations · source: Artificial AnalysisHeadline indices
Individual benchmarks · click a row for effort variants
| Benchmark | Best score | Effort | Cost / task | |
|---|---|---|---|---|
| CritPt | 2% | default | — | |
| GPQA Diamond | 88% | default | — | |
| Humanity's Last Exam | 24% | default | — | |
| IFBench | 54% | default | — | |
| LiveCodeBench | 82% | default | — | |
| Long-Context Reasoning | 68% | default | — | |
| MMLU-Pro | 87% | default | — | |
| MMMU-Pro | 69% | default | — | |
| Omniscience | 3.8 | default | — | |
| SciCode | 46% | default | — | |
| TerminalBench Hard | 38% | default | — | |
| τ²-bench | 75% | default | — |
Pricing by serving provider
standard tier · per 1M tokens · click a provider to expandInput pricing runs from $3.00 to $7.20 per 1M tokens across 5 providers, so the dearest route costs 140% more than the cheapest for the same model.
| Serving provider | Input /1M | Output /1M | Endpoints | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AzureCheapest | $3.00 | $15.00 | 1 | ||||||||||||||||
| |||||||||||||||||||
| xAICheapest | $3.00 | $15.00 | 1 | ||||||||||||||||
| |||||||||||||||||||
| Vercel AI GatewayCheapest | $3.00 | $15.00 | 1 | ||||||||||||||||
| |||||||||||||||||||
| OpenRouterCheapest | $3.00 | $15.00 | 1 | ||||||||||||||||
| |||||||||||||||||||
| Replicate | $7.20 | $36.00 | 1 | ||||||||||||||||
| |||||||||||||||||||
Price history
input + output $/1M since we started tracking Input Output
Cost calculator
estimate your monthly spend on this model$1,800
estimated / month
Model IDs
copy the exact identifier for your platformazure_ai/grok-4xai/grok-4vercel_ai_gateway/xai/grok-4openrouter/x-ai/grok-4replicate/xai/grok-4
Frequently asked questions
Grok 4 pricing, context and availabilityHow much does Grok 4 cost?
Grok 4 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens at its cheapest provider via Azure. Across 5 serving providers, input prices range from $3.00 to $7.20 per 1M tokens.
What is the context window of Grok 4?
Grok 4 accepts up to 256K tokens of context and can return up to 256K output tokens.
Which providers serve Grok 4?
Grok 4 is available from 5 serving providers, each with its own pricing and model ID. Azure is currently the cheapest.
What can Grok 4 do?
Grok 4 supports tool use, reasoning, prompt caching, structured output and web search.
Other xAI models
compare pricing across the xAI lineupGrok 4.1 Fast Non Reasoning$0.20/1M · 3 providersGrok 4.1 Fast Reasoning$0.20/1M · 3 providersGrok 3 Mini$0.25/1M · 3 providersGrok 3$3.00/1M · 3 providersGrok 4 Fast Non Reasoning$0.20/1M · 2 providersGrok 4 Fast Reasoning$0.20/1M · 2 providersGrok Code Fast 1$0.20/1M · 2 providersGrok 3 Mini Fast$0.60/1M · 2 providers
Popular comparisons
head-to-head pages featuring Grok 4 Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI