Scheduled for retirement on Jan 31, 2027. Still available at the prices below until then.
Context
262K
Max output
256K
Serving providers
6
Cheapest input
$1.25 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. 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 | |
|---|---|---|---|---|
| CritPtLast refreshed Oct 26, 2026 | 2% | default | — | |
| GPQA DiamondLast refreshed Oct 26, 2026 | 88% | default | — | |
| Humanity's Last ExamLast refreshed Oct 26, 2026 | 27% | default | — | |
| IFBenchLast refreshed Oct 26, 2026 | 54% | default | — | |
| LiveCodeBenchLast refreshed Oct 26, 2026 | 82% | default | — | |
| Long-Context ReasoningLast refreshed Oct 26, 2026 | 68% | default | — | |
| MMLU-ProLast refreshed Aug 18, 2026 | 87% | default | — | |
| MMMU-ProLast refreshed Oct 26, 2026 | 69% | default | — | |
| OmniscienceLast refreshed Nov 13, 2026 | 2.1 | default | — | |
| Omniscience AccuracyLast refreshed Oct 26, 2026 | 0.4 | default | — | |
| Omniscience Non HallucinationLast refreshed Oct 26, 2026 | 0.4 | default | — | |
| SciCodeLast refreshed Oct 26, 2026 | 46% | default | — | |
| TerminalBench HardLast refreshed Oct 26, 2026 | 38% | default | — | |
| τ²-benchLast refreshed Oct 26, 2026 | 75% | default | — |
Artificial Analysis scores last refreshed Nov 13, 2026.
Artificial Analysis scores last refreshed Oct 26, 2026.
Artificial Analysis scores last refreshed Aug 18, 2026.
Pricing by serving provider
standard tier · per 1M tokens · click a provider to expandInput pricing runs from $1.25 to $7.20 per 1M tokens across 6 providers, so the dearest route costs 476% more than the cheapest for the same model.
| Serving provider | Input /1M | Output /1M | Endpoints | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| xAI Cheapest | $1.25 | $2.50 | 1 | |||||||||||||
Standardxai/grok-4
| ||||||||||||||||
| Azure | $3.00 | $15.00 | 1 | |||||||||||||
Standardazure_ai/grok-4
| ||||||||||||||||
| OCI | $3.00 | $15.00 | 1 | |||||||||||||
Standardoci/xai.grok-4
| ||||||||||||||||
| OpenRouter | $3.00 | $15.00 | 1 | |||||||||||||
Standardopenrouter/x-ai/grok-4
| ||||||||||||||||
| Vercel Reseller quote | $3.00 | $15.00 | 1 | |||||||||||||
Standardvercel_ai_gateway/xai/grok-4
| ||||||||||||||||
| Replicate | $7.20 | $36.00 | 1 | |||||||||||||
Standardreplicate/xai/grok-4
| ||||||||||||||||
Price history
listed seller prices, input and output per 1M tokens Input Output
Input down 58% since first tracked
Cost calculator
estimate your monthly spend on this model$450
estimated / month
Model IDs
copy the exact identifier for your platformxai/grok-4openrouter/x-ai/grok-4azure_ai/grok-4oci/xai.grok-4vercel_ai_gateway/xai/grok-4replicate/xai/grok-4
Frequently asked questions
Grok 4 pricing, context and availabilityIs Grok 4 still available?
Yes. Grok 4 is scheduled for retirement on 2027-01-31.
How much does Grok 4 cost?
Grok 4 costs $1.25 per 1M input tokens from xAI, and $2.50 per 1M output tokens from xAI. Across 6 serving providers, input prices range from $1.25 to $7.20 per 1M tokens.
What is the context window of Grok 4?
Grok 4 accepts up to 262K tokens of context and can return up to 256K output tokens.
Which providers serve Grok 4?
Grok 4 is available from 6 serving providers, each with its own pricing and model ID. xAI is currently the cheapest.
What can Grok 4 do?
Grok 4 supports tool use, structured output and web search.
Other xAI models
compare pricing across the xAI lineupGrok 4.6$2.00/1M · 11 providersGrok 4.7$2.00/1M · 10 providersGrok 4.3$1.25/1M · 7 providersGrok 4.5$2.00/1M · 7 providersGrok 4 20 Non Reasoning$1.25/1M · 6 providersGrok 4 20 Reasoning$1.25/1M · 6 providersGrok 4.1 Fast Non Reasoning$0.20/1M · 4 providersGrok 4.1 Fast Reasoning$0.20/1M · 4 providers
Popular comparisons
head-to-head pages featuring Grok 4 Listed prices from LiteLLM, OpenRouter and Vercel · last checked Sep 22, 2026
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI