Grok API Pricing (xAI)
We track 6 Grok models, 4 of them open to new users. The cheapest of those is Grok Build 0.1 at $1.00/MTok input and $2.00/MTok output, and the most expensive is Grok 4.7 at $2.00/MTok input and $6.00/MTok output.
Prices checked 13 Nov 2026 against xAI’s pricing page ↗
| Model | Input | Output | Cached in |
|---|---|---|---|
| Grok Build 0.1Budget | $1.00 | $2.00 | $0.20 |
| Grok 4.20Mid-tier | $1.25 | $2.50 | – |
| Grok 4.7Flagship | $2.00 | $6.00 | $0.50 |
Per 1M tokens · 4 current models + 2 legacy · Largest context 1M tokens · Batch discount 20% off on 3 of 4 current models
Model prices
| Model | Tier | Input | Output | Over size | Cached in | Batch in / out | Context | Details |
|---|---|---|---|---|---|---|---|---|
| Grok 4.7 | Flagship | $2.00 | $6.00 | over 200K: $4.00 / $12.00 | $0.50 | $1.60 / $4.80 | 500K | Details for Grok 4.7 |
Flagship (Sep 21, 2026), xAI's frontier model for coding, agentic tasks and knowledge work. Same $2/$6 and $0.50 cached input as Grok 4.6. $4/$12 above 200K prompt tokens. Batch 20% off. No output limit. Reasoning effort low to xhigh, default high. Also served on xAI's US regional endpoint at 1.1x the global rates. | ||||||||
| Grok 4.3 | Flagship | $1.25 | $2.50 | over 200K: $2.50 / $5.00 | $0.20 | $1.00 / $2.00 | 1M | Details for Grok 4.3 |
Earlier flagship (May 2026). Cheaper than Grok 4.5 and 4.6 with a larger 1M context. $2.50/$5.00 above 200K prompt tokens. Cached input $0.20. Batch 20% off. | ||||||||
| Grok 4.20 | Mid-tier | $1.25 | $2.50 | over 200K: $2.50 / $5.00 | — | $1.00 / $2.00 | 1M | Details for Grok 4.20 |
Repriced to match 4.3, including $2.50/$5.00 above 200K prompt tokens. Lowest hallucination rate; reasoning and multi-agent variants. | ||||||||
| Grok Build 0.1 | Budget | $1.00 | $2.00 | over 200K: $2.00 / $4.00 | $0.20 | — | 256K | Details for Grok Build 0.1 |
No batch discount. Coding specialist. $2.00/$4.00 above 200K prompt tokens. grok-code-fast-1 is now an alias for this model. Cached input $0.20. | ||||||||
| Legacy models (2) | ||||||||
| Grok 4.6 Legacy | Flagship | $2.00 | $6.00 | over 200K: $4.00 / $12.00 | $0.50 | $1.60 / $4.80 | 500K | Details for Grok 4.6 |
Previous flagship (Aug 12, 2026), superseded by Grok 4.7 at the same $2/$6. Same token rates as Grok 4.5, but cached input is $0.50 (4.5 charges $0.30). $4/$12 above 200K prompt tokens. Batch 20% off. Also served on xAI's US regional endpoint at 1.1x the global rates. | ||||||||
| Grok 4.5 Legacy | Flagship | $2.00 | $6.00 | over 200K: $4.00 / $12.00 | $0.30 | $1.60 / $4.80 | 500K | Details for Grok 4.5 |
Earlier flagship (Jul 8, 2026), superseded by Grok 4.6 and then 4.7, all at the same $2/$6. $4/$12 above 200K prompt tokens. Cached input $0.30. Batch 20% off. | ||||||||
No models match those filters
What would Grok cost you?
Preset to xAI’s current models. Adjust to your usage.
- 1Grok Build 0.1 $0.0023 per request$115.00
- 2Grok 4.20 $0.0029 per request$143.75
- 3Grok 4.3 $0.0029 per request$143.75
- 4Grok 4.7 $0.0054 per request$270.00
50,000 requests × (1,500 in + 400 out). List prices; excludes tax and cache-write fees.
What Grok costs for real jobs
Three jobs priced for xAI’s budget, mid-tier and flagship models.
Support replies
1,000 replies a day for 30 days. 30,000 requests, 1,500 input and 300 output tokens each.
| Model | List price | Batch |
|---|---|---|
| Grok Build 0.1Budget | $63.00 | – |
| Grok 4.20Mid-tier | $78.75 | $63.00 |
| Grok 4.7Flagship | $144.00 | $115.20 |
Coding agent session
One session of 40 requests that mostly re-read the same code. 40 requests, 60,000 input and 1,500 output tokens each; where a cached price exists, 80% of the input is billed at it.
| Model | List price | Batch | Cached (80% of input) |
|---|---|---|---|
| Grok Build 0.1Budget | $2.52 | – | $0.98 |
| Grok 4.20Mid-tier | $3.15 | $2.52 | This model has no cached-input price in our data, so only the list total is shown. |
| Grok 4.7Flagship | $5.16 | $4.13 | $2.28 |
Long document review
50 documents a month. 50 requests, 120,000 input and 2,000 output tokens each.
| Model | List price | Batch |
|---|---|---|
| Grok Build 0.1Budget | $6.20 | – |
| Grok 4.20Mid-tier | $7.75 | $6.20 |
| Grok 4.7Flagship | $12.60 | $10.08 |
Totals are for all the requests in each example, in US dollars, from the same cost function as the calculator above.
Is there a free API tier?
xAI’s pricing page lists no free API tier.
Checked 11 Nov 2026 on xAI’s pricing page ↗.
Grok pricing FAQ
What is the cheapest Grok model?
Grok Build 0.1 is the cheapest current Grok model, at $1.00 per million input tokens and $2.00 per million output tokens.
Which Grok model should I use?
By tier, the models we list first are Grok Build 0.1 (budget), Grok 4.20 (mid-tier) and Grok 4.7 (flagship): the cheapest budget and mid-tier models and the dearest flagship we track that are open to new users. To spend less, pick the tier that fits the job and its cheapest model: For the hardest work, flagship models: Grok 4.3 and Grok 4.7 (from $1.25 / $2.50 for Grok 4.3). For everyday work, mid-tier models: Grok 4.20 ($1.25 / $2.50). For high-volume, simple jobs, budget models: Grok Build 0.1 ($1.00 / $2.00). Prices are input / output per million tokens. Tiers group models by capability, not price, so price your own workload in the calculator on this page.
Does Grok offer batch or caching discounts?
Batch: 20% off input and output on 3 of 4 current models, so Grok 4.3 drops from $1.25 / $2.50 to $1.00 / $2.00 per million tokens. Prompt caching: reading cached input costs 16% to 25% of the input price on 3 of 4 current models; Grok Build 0.1's $1.00 input falls to $0.20 per million tokens when read from the cache.
What context window do Grok models have?
The largest is 1M tokens on Grok 4.3 and Grok 4.20, then 500K tokens on Grok 4.7 and 256K tokens on Grok Build 0.1. A request's prompt and its output together must fit in the window.
What does the Grok API cost per person each month?
It depends on how much each person uses it. At list prices, an occasional user (3 short requests a working day) costs about $0.073 a month on Grok Build 0.1, and a daily power user (40 longer requests a day) about $8.80 on Grok 4.20. The cost-per-seat calculator works it out for a whole team.
How often do Grok API prices change?
We check xAI's pricing page every day, and last re-verified every price on 13 Nov 2026. Since Feb 2026 we have recorded 1 price cut and no price rises on Grok models, the latest on 15 May 2026, plus 4 launches. The price history chart on this page shows how each tier has moved.
Price history
Input price of the cheapest Grok model in each tier, month by month, among the models on today’s price list.
View as a table
| Month | Flagship | Mid-tier | Budget |
|---|---|---|---|
| Feb 2026 | — | $2.00 | — |
| Mar 2026 | — | $2.00 | — |
| Apr 2026 | — | $2.00 | — |
| May 2026 | $1.25 | $1.25 | $1.00 |
| Jun 2026 | $1.25 | $1.25 | $1.00 |
| Jul 2026 | $1.25 | $1.25 | $1.00 |
| Aug 2026 | $1.25 | $1.25 | $1.00 |
| Sep 2026 | $1.25 | $1.25 | $1.00 |
| Oct 2026 | $1.25 | $1.25 | $1.00 |
| Nov 2026 | $1.25 | $1.25 | $1.00 |
Launches and price changes
- Grok 4.3 gets API token pricing ($1.25/$2.50, 1M context); xAI ships the Grok Build 0.1 coding modelLaunch
- Grok 4.20: input $2→$1.25, output $6→$2.50 (matches Grok 4.3); context revised 2M→1M▼ Price cut
- xAI launches Grok 4.5 - new flagship at $2/$6 (500K context; $4/$12 above 200K prompt tokens). Cached input $0.30, no batch discount, not yet available in the EU.Launch
- xAI launches Grok 4.6 as its new flagship at $2/$6 (500K context; $4/$12 above 200K prompt tokens), the same token rates as Grok 4.5 but with cached input at $0.50 instead of $0.30. No batch discountLaunch
- xAI launches Grok 4.7 as its new flagship at $2/$6 (500K context; $4/$12 above 200K prompt tokens), the same rates as Grok 4.6 including $0.50 cached input. No batch discountLaunch
- xAI now lists Grok 4.7, Grok 4.6 and Grok 4.5 for its 20% batch discountTier change