Grok API pricing
xAI's models. Grok 4.7, released 21 September 2026, costs $2 / $6 per 1M tokens for prompts under 200K tokens and $4 / $12 above.
Grok 4.7
Joint 4th cheapest of 12 current frontier models (blended 3:1). Cheapest: DeepSeek V4 Pro, $1.32 / $3.96.
Capability score 156, joint 16th of 29 current models scored on the Epoch Capabilities Index (range 154–158).
GPT-6 Luna scores level (157) and costs 30× less on a coding agent: $25.98 vs $772 a month.
Source: Epoch Capabilities Index by Epoch AI, CC BY 4.0, read 11 Nov 2026. What the score means
What it costs in practice
Grok 4.7 at list prices, no batch discount.
| 1,000 chat replies1,500 tokens in and 300 out each | $4.80 |
|---|---|
| Summarising 100 long reports20,000 tokens in and 800 out each | $4.48 |
| A month of a coding agent400 tasks, 85% of input cached | $592 |
The coding-agent example assumes 85% of input is served from cache, typical for agents that resend the same context each step, and prompts under 200K tokens; longer prompts cost more. Work out AI agent cost on Grok 4.7
Details
grok-4.7- Prompts of 200K tokens or more cost $4 / $12 per 1M.
Checked 13 Oct 2026 against xAI pricing and xAI release notes .
Estimate your monthly cost
List prices, no batch discount
| Model | Input / output per 1M | Per month |
|---|---|---|
| Grok 4.7 | $2.00 / $6.00 | $32.00 |
| Grok Build 0.1 | $1.00 / $2.00 | $14.00 |
| DeepSeek V4 ProCheaper alternative · DeepSeek | $1.32 / $3.96 | $21.12 |
| Qwen3.8 MaxSimilar price · Alibaba | $2.00 / $6.00 | $32.00 |
Type amounts like 500K, 25M or 2B.
Price Grok 4.7 in: Token cost calculator · AI agent cost · Token counter
Cheaper alternative
DeepSeek V4 Pro (DeepSeek) costs $1.32 / $3.96 per 1M tokens, 34% less than Grok 4.7 at a 3:1 input-to-output mix. It’s the cheapest current frontier model from another family. Cheaper doesn’t mean as good: test it on your own tasks.
Compare Grok 4.7 with DeepSeek V4 Pro
Similar price from another provider: Qwen3.8 Max, $2.00 / $6.00. Compare
Compare Grok 4.7 with
Side by side: prices, cached and batch rates, and the cost of the same workload.
Other Grok models
Grok 3 was retired on 15 May 2026. Grok 4 and Grok 4.1 Fast are no longer listed in xAI's documentation.
| Model | Input / 1M | Output / 1M | Cached input | Context | Released |
|---|---|---|---|---|---|
| $1.00 | $2.00 | $0.20 | 256K | 19 May 2026 | |
| $2.00 | $6.00 | $0.50 | 500K | 12 Aug 2026 | |
| $2.00 | $6.00 | $0.30 | 500K | 8 Jul 2026 | |
| $1.25 | $2.50 | $0.20 | 1M | Apr 2026 |
Version details
Grok Build 0.1
$1.00 / $2.00 per 1M tokenscached $0.20 · 256K context
- xAI's coding model for agentic coding, in early access.
- A code-specialised model; excluded from general comparisons and the index.
Checked 13 Oct 2026 against xAI pricing and xAI release notes, 19 May 2026 .
Grok 4.6
Previous$2.00 / $6.00 per 1M tokenscached $0.50 · 500K context
Newer option: Grok 4.7 at $2.00 / $6.00. Checked 13 Oct 2026 against xAI pricing .
Grok 4.5
Previous$2.00 / $6.00 per 1M tokenscached $0.30 · 500K context
Newer option: Grok 4.7 at $2.00 / $6.00. Checked 13 Oct 2026 against xAI pricing .
Grok 4.3
Previous$1.25 / $2.50 per 1M tokenscached $0.20 · batch 20% off · 1M context
Newer option: Grok 4.7 at $2.00 / $6.00. Checked 13 Oct 2026 against xAI pricing .
Compare Grok 4.7
Price history
All changes- xAI launched Grok 4.7 at $2 / $6 for prompts under 200K tokens. Source
- xAI launched Grok 4.6 at $2 / $6. Source
- xAI launched Grok 4.5 at $2 / $6. Source
- xAI released Grok Build 0.1, a coding model, in early access at $1 / $2 per 1M tokens. Source
- xAI retired Grok 3; requests now go to Grok 4.3. Source
Every dated price: price records · CSV. Cite as: AI Token Price, Grok pricing, https://aitokenprice.com/pricing/grok#price-history
xAI pricing rules
- Grok 4.5 and later cost twice as much for prompts of 200K tokens or more.
- Batch requests cost 20% less, but only on Grok 4.3 and Grok 4.20.
Retired Grok models
- RetiredGrok 4.1 Fast was $0.20 / $0.50 per 1M tokens. No longer listed in xAI's documentation as of 27 September 2026. Use Grok 4.7 instead.
- RetiredGrok 4 was $3.00 / $15.00 per 1M tokens. No longer listed in xAI's documentation as of 27 September 2026. Use Grok 4.7 instead.
- Retired 15 May 2026Grok 3 was $3.00 / $15.00 per 1M tokens. Retired on 15 May 2026. Requests to it are redirected to Grok 4.3. Use Grok 4.3 instead.
Questions
How much does Grok 4.7 cost?
As of 13 Oct 2026, Grok 4.7 costs $2 per million input tokens and $6 per million output tokens, and $0.50 per million cached input tokens. Prices checked 13 Oct 2026.
How much does Grok Build 0.1 cost?
Grok Build 0.1 costs $1 per million input tokens and $2 per million output tokens, with cached input at $0.20. Checked 13 Oct 2026.
What is the cheapest Grok model?
Grok Build 0.1, at $1 / $2 per million input / output tokens.
What is Grok 4.7's context window?
500K tokens.
Does Grok 4.7 support prompt caching?
Yes. Repeated input read from the cache costs $0.50 per million tokens, 75% less than normal input.