Grok API Pricing 2026: xAI Per-Token Rates & Cost Calculator
xAI's list prices look ordinary. What makes Grok different is that the list price is very nearly the final price — there is no batch discount, and the cache discount is the shallowest in the industry. Here is what that actually costs.
Prices verified July 28, 2026 against docs.x.ai/docs/models. Rates shown are for prompts under 200,000 tokens.
Grok API pricing at a glance
- Grok 4.5: $2.00 input / $6.00 output per 1M • cache hit $0.30 • output is 3x input
- Grok 4.3: $1.25 input / $2.50 output per 1M • cache hit $0.20 • output is 2x input
- Grok Build 0.1: $1.00 input / $2.00 output per 1M • cache hit $0.20 • output is 2x input
Two structural facts that no other page in this cluster has to mention: xAI publishes no batch discount, and its cache hits cost 6.3x–6.7x less than a miss, against 10x everywhere else and 50x at DeepSeek.
Grok API Cost Calculator
Price a Grok workload and compare against OpenAI, Anthropic, Google and DeepSeek on the same numbers. The batch checkbox deliberately leaves xAI rates unchanged, because xAI publishes no batch discount — that asymmetry is the point.
Models to compare (5 selected)
| Model | Input cost | Output cost | Per request | Monthly total |
|---|---|---|---|---|
| Grok Build 0.1xAICHEAPEST | $36.48 | $240.00 | $0.0069 | $276.48 |
| Grok 4.3xAI | $44.88 | $300.00 | $0.0086 | $344.88 |
| Grok 4.5xAI | $71.52 | $720.00 | $0.02 | $791.52 |
| GPT-5OpenAI | $43.80 | $1,200 | $0.03 | $1,244 |
| Claude Sonnet 5 (intro rate)Anthropic | $70.08 | $1,200 | $0.03 | $1,270 |
You've priced the tokens. Have you priced your AI visibility?
It's free, and it takes about as long as one calculator run: we ask ChatGPT about your category from 5 angles and score how often your tool is named. Most builders are surprised by the answer.
On this page
List price is not the number. Floor price is.
Every LLM comparison you will read ranks providers on their published per-million rate. That is the wrong number, because most providers sell you two large discounts on top of it — prompt caching and a 50% asynchronous batch rate — and the ones that stack cleanly can land at a fraction of sticker. xAI offers one of those two levers, weakly.
"Floor" below is the best per-million rate a workload can actually reach: cached input, batch discount applied where the provider publishes one.
| Model | Input list | Input floor | Input discount | Output list | Output floor |
|---|---|---|---|---|---|
| Grok 4.3 (xAI) | $1.25 | $0.20 | 6.3x | $2.50 | $2.50 |
| Grok 4.5 (xAI) | $2.00 | $0.30 | 6.7x | $6.00 | $6.00 |
| GPT-5 (OpenAI) | $1.25 | $0.06 | 20.0x | $10.00 | $5.00 |
| Claude Sonnet 5 (intro rate) (Anthropic) | $2.00 | $0.10 | 20.0x | $10.00 | $5.00 |
| Gemini 2.5 Flash (Google) | $0.30 | $0.01 | 20.0x | $2.50 | $1.25 |
Grok 4.3 and GPT-5 have the identical list input rate of $1.25. Their floors are $0.20 and $0.06 — GPT-5 lands 3.2x lower on input for the same starting price, purely because its discounts are deeper and they stack.
On output the comparison runs the other way: Grok 4.3's floor of $2.50 still beats GPT-5's $5.00. So the honest summary is not "Grok is expensive" or "Grok is cheap" — it is that Grok is cheap on output and dear on input once discounts are in play, and which of those dominates your bill is decided by your workload shape, not by the rate card.
There is a second, non-financial implication. On providers with deep discount stacks, a lot of cost engineering is available to you after the fact — turn on caching, move a pipeline to batch, restructure a prompt to lengthen the cacheable prefix. On Grok, most of that toolbox is missing or blunted, so your cost is settled at architecture time. Estimate carefully up front, because there is less room to optimise your way out later.
Grok API price table, per 1M tokens
| Model | Input / 1M | Cache hit / 1M | Cache discount | Output / 1M | Notes |
|---|---|---|---|---|---|
Grok 4.5grok-4.5 | $2.00 | $0.30 | 6.7x | $6.00 | Rate shown is for prompts <200k tokens; doubles above that |
Grok 4.3grok-4.3 | $1.25 | $0.20 | 6.3x | $2.50 | <200k-token prompts |
Grok Build 0.1grok-build-0.1 | $1.00 | $0.20 | 5.0x | $2.00 | <200k-token prompts |
Want to hear about it when xAI reprices?
Grok's rates have moved more than once since launch, and xAI doesn't publish a changelog. We diff the docs page and email you what changed.
Already on the calendar: Claude Sonnet 5's introductory $2 / $10 per 1M tokens expires Aug 31, 2026 and goes to $3 / $15 — a 50% increase on the same workload. Prices here were last re-verified July 28, 2026.
Where Grok's flat output ratio wins, and where it loses
Because Grok charges only 2x for output where most providers charge 4x–8x, its competitiveness swings hard on workload shape. Same request volume, same cache rate, opposite shapes.
Generation-heavy: 1,200 in → 3,000 out, 40,000/month
Long-form drafting, code synthesis, verbose reasoning. Output dominates.
| Model | Input | Output | Monthly |
|---|---|---|---|
| Gemini 2.5 Flash (Google) | $10.51 | $300.00 | $310.51 |
| Grok 4.3 (xAI) | $44.88 | $300.00 | $344.88 |
| Grok 4.5 (xAI) | $71.52 | $720.00 | $791.52 |
| GPT-5 (OpenAI) | $43.80 | $1,200 | $1,244 |
| Claude Sonnet 5 (intro rate) (Anthropic) | $70.08 | $1,200 | $1,270 |
Retrieval-heavy: 12,000 in → 300 out, 40,000/month
RAG answering, document Q&A, classification over long records. Input dominates.
| Model | Input | Output | Monthly |
|---|---|---|---|
| Gemini 2.5 Flash (Google) | $105.12 | $30.00 | $135.12 |
| Grok 4.3 (xAI) | $448.80 | $30.00 | $478.80 |
| GPT-5 (OpenAI) | $438.00 | $120.00 | $558.00 |
| Grok 4.5 (xAI) | $715.20 | $72.00 | $787.20 |
| Claude Sonnet 5 (intro rate) (Anthropic) | $700.80 | $120.00 | $820.80 |
Grok 4.3 places 2 of 5 on the generation-heavy job and 2 of 5 on the retrieval-heavy one — same model, same volume, different answer. This is the practical reason to run your own numbers in the calculator rather than reading a "cheapest LLM API" ranking: the ranking depends on a variable that only you know.
The 200,000-token threshold
The rates on this page are xAI's sub-200k band. Above 200,000 tokens in a single prompt, several Grok models charge roughly double, and the higher rate applies across the whole prompt rather than only the excess. Google does the same thing on Gemini Pro; OpenAI, Anthropic and DeepSeek do not, and charge a single flat rate at any length.
The dangerous property of a threshold like this is that it is invisible in aggregate metrics. Average prompt length can look completely stable while the tail of your distribution crosses the line and takes a growing share of your spend with it.
- Log a histogram of input token counts, not a mean. Alert on the share of requests above 200k, not on the average.
- If your prompts cluster just under the line, cap retrieval or history truncation at roughly 190k. The couple of chunks you drop are worth far less than halving the rate on every token in the request.
- Prefer two sub-threshold calls over one that crosses it, whenever the task decomposes. Same tokens, half the input rate.
Grok API pricing FAQ
How much does the Grok API cost?
As of July 28, 2026: Grok 4.5 is $2.00 per million input tokens and $6.00 output; Grok 4.3 is $1.25 / $2.50; and Grok Build 0.1 is $1.00 / $2.00. Cached input is $0.30, $0.20 and $0.20 respectively. All of these rates apply to prompts under 200,000 tokens; above that threshold xAI charges roughly double on several models.
Does xAI offer a batch API discount on Grok?
No. xAI publishes no asynchronous batch discount, and neither does DeepSeek. OpenAI, Anthropic and Google all take 50% off both input and output for work returned within 24 hours. For any offline workload this is a meaningful structural disadvantage: it means the standard lever teams reach for first — move the nightly pipeline to batch, halve the bill — simply is not available on Grok. If a large share of your traffic is offline, that alone can outweigh a favourable list price.
How good is Grok's prompt caching discount?
It is the shallowest of any provider in this comparison, and it is not close. OpenAI, Anthropic and Google all price a cache hit at about 10% of the standard input rate — a 10x discount — and DeepSeek reaches 50x or more. xAI's cache hits run at $0.20 against a $1.25 miss on Grok 4.3, a 6.3x discount, and 6.7x on Grok 4.5. Caching still saves you money on Grok, but it saves you far less of it, and a chatbot architecture whose economics depend on aggressive caching will not port across from OpenAI at the same margins.
Why is Grok's output so cheap relative to its input?
Grok 4.3 charges $2.50 output against $1.25 input — only 2x. Every OpenAI family runs 4x to 8x, and every Claude model is exactly 5x. Whatever the reason on xAI's side, the consequence for you is concrete and exploitable: Grok is structurally most competitive on workloads that generate a lot of text relative to what they consume — long-form content generation, code synthesis, verbose reasoning, anything with a long answer. It is least competitive on the opposite shape, where a huge retrieved context produces a one-line answer.
What happens to Grok pricing above 200,000 tokens of context?
The rate roughly doubles on several xAI models, and — as with Gemini's equivalent threshold — the higher rate applies to the whole prompt rather than just the excess. The rates published on this page are the sub-200k band. If your prompts cluster near the threshold, log a histogram of input token counts rather than an average: a distribution that has quietly crept across the line is the usual explanation for a Grok bill that grew without a traffic increase.
Does an X Premium or SuperGrok subscription include Grok API access?
No. X Premium, Premium+ and SuperGrok cover Grok inside the X app and the Grok consumer apps. API access is a separate product, billed per token through the xAI developer console with its own billing account and its own spend limits. A consumer subscription buys you zero API credit, and API usage does not draw down any consumer allowance.
Is Grok cheaper than GPT-5 or Claude?
On list price Grok 4.3 and GPT-5 are identical on input at $1.25, and Grok is four times cheaper on output ($2.50 against $10.00). So at sticker, yes, and substantially so on generation-heavy work. Once you stack discounts the picture reverses on the input side: GPT-5 with caching and batch reaches $0.06 per million input tokens, while Grok 4.3's best case is $0.20 — around 3.2x more. Which one is actually cheaper for you depends entirely on your workload shape and whether you can use batch at all.
What is Grok Build 0.1 and when should I use it?
It is xAI's cheapest published option at $1.00 input / $2.00 output — 20% below Grok 4.3 on both directions, with the same 2x output ratio. At that spread the saving is small enough that it should not drive the decision on its own; pick it when it performs adequately on your evaluation, not because the rate card is marginally friendlier. A 20% model-price difference is comfortably smaller than the swing you get from a single prompt-length or output-length change.
Do Grok's reasoning tokens count as output?
Yes, as on every provider — internal reasoning bills at the output rate whether or not it is returned to you. The saving grace on Grok is that the output rate is unusually low relative to input, so reasoning burn is less punishing here than on a model charging $15 to $50 per million output. It is still the item most likely to make your real bill exceed your estimate, so set the output figure in the calculator to total generated tokens, not visible answer length.
Per-token pricing for the other providers
Every page in this set reads from the same verified price table, so the numbers never disagree with each other.
OpenAI API pricing
GPT-5.6, GPT-5, mini and nano rates, plus the cost calculator.
Claude API pricing
Anthropic's tier ladder, cache-write premiums and the Sonnet 5 intro rate.
Gemini API pricing
Google's free tier, the 200k context price cliff and the Batch/Priority service tiers.
DeepSeek API pricing
The cheapest rates on the board and a 50x cache-hit discount.
LLM API pricing comparison
All five providers head to head, with a recommendation per workload shape.
Related
ChatGPT already recommends your Grok-powered app. Does it recommend yours?
If you're building in LLM APIs, run a free AI-visibility scan on your own product — we ask ChatGPT across 5 prompt angles and score how often you get named. ~30 seconds, no signup, no card.
📬 Get the best new AI tools delivered weekly
One concise email with fresh launches, trending picks, and featured standouts.