Grok 4
Retired May 2026xAI's flagship reasoning model, released July 2025 and trained with reinforcement learning at pretraining scale on the Colossus cluster, aimed at complex multi-step tasks.
- Context
- 256K tokens
- Cutoff
- Released
Hosted API price
Cheapest via Azure · per 1M tokens
- Input
- $3.00 /1M
- Output
- $15.00 /1M
- Hosted by
-
1 provider
Hosted API pricing
How we price
Order
Providers are listed cheapest input rate first, then by output rate, a tie going to the creator's own listing. A provider that lists the model without a published rate sits at the end.
Prices
Base-tier, on-demand rates in USD per 1M tokens, converted at ECB reference rates where a provider publishes in another currency. Cached-input and batch rates show only where a provider publishes them. "Cheapest" marks the one provider with the lowest input and output pair; a tie wears no badge.
Cost
Input rate times the input tokens plus output rate times the output tokens, at the monthly volume set above the table. Cached-input, batch, long-context and reasoning-token billing are not modelled.
Transparency and funding
- Affiliates: Affiliate links are marked. We may earn a commission if you click them, but commissions never affect the order.
Every provider serving Grok 4, cheapest input first. Set your monthly volume to see what each would bill.
| Provider | Input /1M | Output /1M | Cost at 10M in + 2M out | Link |
|---|---|---|---|---|
|
|
$3.00 | $15.00 | $60.00 | Visit website |
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Similarly priced models
The models nearest Grok 4 by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs Grok 4 |
|---|---|---|---|---|---|---|
|
|
$3.7917 | $1.75 | $14.00 | 400K | Aug 2025 | −24% |
|
|
$3.7917 | $1.75 | $14.00 | 400K | Aug 2025 | −24% |
|
|
$4.5833 | $2.50 | $15.00 | 1M | Aug 2025 | −8% |
|
|
$5.00 | $3.00 | $15.00 | 200K | Jan 2025 | 0% |
|
|
$5.00 | $3.00 | $15.00 | 1M | Aug 2025 | 0% |
|
|
$5.00 | $3.00 | $15.00 | 256K | Oct 2024 | |
|
|
$6.6667 | $4.00 | $20.00 | 1M | Jun 2026 | +33% |
|
|
$6.6667 | $4.00 | $20.00 | 1M | +33% | |
|
|
$8.3333 | $5.00 | $25.00 | 200K | May 2025 | +67% |
|
|
$8.3333 | $5.00 | $25.00 | 1M | May 2025 | +67% |
|
|
$8.3333 | $5.00 | $25.00 | 1M | Jan 2026 | +67% |
USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Capabilities
What Grok 4 accepts and can do, as published by xAI.
- Text Accepts and generates natural-language text.
- Image Accepts images as input alongside text.
- Reasoning Thinks before it answers, always on or as a switchable mode.
- Function calling Connect to external tools, APIs, and systems.
- Structured output Return responses in structured formats like JSON.
Common questions
What is Grok 4 good for?
Multi-step reasoning over text and images. It was xAI's flagship reasoning model from July 2025 until its retirement.
When is Grok 4 not a good fit?
Any new work: xAI retired it in May 2026, and its migration guide points to Grok 4.3 with low reasoning effort. No built-in web search or code execution, and closed weights.
What is the cheapest way to run Grok 4?
The cheapest hosted rate is $3.00 / $15.00 per 1M tokens via Azure.
How does Grok 4 compare with Grok 4.3?
xAI describes Grok 4.3 as a fast, reliable model with strong tool calling and instruction following, and it adds a configurable reasoning effort with a no-reasoning setting, which Grok 4 did not offer. Same text and image input. Grok 4 costs 140% more per 1M input tokens and 500% more per 1M output tokens than Grok 4.3, at each model's cheapest listed provider. It came out 9 months earlier and has a smaller context (256K against 1M tokens).
Can I self-host Grok 4?
No. xAI does not publish the weights; Grok 4 is available only through hosted APIs.
More from xAI
-
Grok 4.7
500K context · cutoff May 2026
From $2.00 / $6.00 /1M in / out at the cheapest provider -
Grok 4.5
500K context · cutoff Feb 2026
From $2.00 / $6.00 /1M in / out at the cheapest provider -
Grok 4.6
500K context · cutoff Jan 2026
From $2.00 / $6.00 /1M in / out at the cheapest provider -
Grok 4.20 (Non-Reasoning)
1M context
From $1.25 / $2.50 /1M in / out at the cheapest provider -
Grok 4.20 (Reasoning)
1M context
From $1.25 / $2.50 /1M in / out at the cheapest provider -
Grok 4.3
1M context
From $1.25 / $2.50 /1M in / out at the cheapest provider -
Grok Build 0.1
256K context
From $1.00 / $2.00 /1M in / out at the cheapest provider -
Grok Code Fast 1
256K context
From $0.20 / $1.50 /1M in / out at the cheapest provider