xAI charges $2.00 per million input tokens and $6.00 per million output tokens on grok-4.6, the same input and output rates as grok-4.7 and grok-4.5, re-read on xAI’s pricing page on 29 September 2026. That three-to-one gap between output and input is the tightest in the frontier tier we track, where the usual multiplier runs from five to six times.
The catch sits on repeated context. xAI bills cached input at $0.50 per million on grok-4.6, a quarter of the fresh rate, where Claude Sonnet 5 and gpt-5.6-terra bill a tenth, and once a prompt reaches 200,000 tokens every token of the request moves to a grid that costs double. Two rivals charge the same $2.00 for input, Claude Sonnet 5 and gpt-5.6-terra, and they are the fair yardstick.

What xAI charges per million tokens
xAI prices its general-purpose text models per million tokens on the standard tier, with no minimum commitment. On 29 September 2026 its pricing page showed $2.00 for input, $0.50 for cached input and $6.00 for output on grok-4.6, plus a second set of rates for long prompts. The cached column was not on the x.ai page we captured on 14 August 2026, and this page has been rewritten around it. The screenshot below is the record we keep, so any figure here can be traced back to its source.
grok-4.7, grok-4.6 and grok-4.5 share one grid, almost
The unusual part of the xAI grid is that three generations cost the same to read and to write. grok-4.7, grok-4.6 and grok-4.5 are all billed at $2.00 in and $6.00 out per million tokens, all with a 500,000-token context window, and as detailed in our breakdown of grok-4.7 price and regional surcharge, grok-4.7 matches grok-4.6 on every column. The one exception is cached input: grok-4.5 bills it at $0.30 against $0.50 on the two newer models. Most providers hand you a cheaper legacy tier and let you trade a generation of capability for a lower invoice. xAI does that only on the cached line, so dropping back to grok-4.5 saves money only on a workload made mostly of repeated context.
| Model | Input per 1M | Cached input | Output per 1M | Prompts of 200k or more, in / cached / out | Context |
|---|---|---|---|---|---|
| grok-4.7 | $2.00 | $0.50 | $6.00 | $4.00 / $1.00 / $12.00 | 500k |
| grok-4.6 | $2.00 | $0.50 | $6.00 | $4.00 / $1.00 / $12.00 | 500k |
| grok-4.5 | $2.00 | $0.30 | $6.00 | $4.00 / $0.60 / $12.00 | 500k |
The xAI model grid, per million tokens

Past 200,000 tokens, the whole request doubles
The second set of columns is the one that catches large-context users. Once a prompt reaches 200,000 tokens, xAI bills every token of that request at the long-context rates: $4.00 input, $1.00 cached input and $12.00 output on grok-4.6. It is not a surcharge on the tokens above the threshold, it is the whole request, output included. A 250,000-token prompt with a 5,000-token answer costs $1.06 on the long-context grid instead of $0.53 on the short one. If your prompts hover near the line, trimming them under 200,000 tokens halves the bill.
Imagine, priced per image rather than per token
The Imagine image API sits on a different basis entirely. On the same day it read $0.01 per image on input and $0.05 per image on output at 1K resolution. Those are per-image rates, not per-million-token rates, so they never enter a per-token comparison and they belong on their own budget line, much like xAI’s speech-to-text hourly rate. Ten thousand generated images a month at 1K is $500 of output cost regardless of what your text traffic is doing, which tends to surprise teams who assume image calls are a rounding error next to a chat workload.
The three-to-one output ratio, the tightest of the frontier tier
Every provider charges more to write than to read, because reading your prompt is one pass over the text while writing an answer runs the model once per token produced. What varies is the multiplier. OpenAI applies roughly six times across the gpt-5.6 line. Anthropic applies five times on Claude Opus 5 and Claude Sonnet 5. xAI applies three, and that single number is most of the story of Grok pricing.
The comparison is unusually clean because the input price is identical. grok-4.6, gpt-5.6-terra and Claude Sonnet 5 all charged $2.00 per million input tokens on 14 August 2026. Every difference between them sits on the output side, where Grok reads $6.00 against $10.00 for Sonnet 5 and $12.00 for terra. Nothing else is in play: no volume tiers, no bundled credits, just the rate at which each one bills the tokens it writes.
Take a genuinely verbose workload, a drafting assistant that reads 2 million tokens a month and writes 10 million. On grok-4.6 that is $4.00 of input and $60.00 of output, $64.00 in total. The same month costs $104.00 on Claude Sonnet 5 and $124.00 on gpt-5.6-terra. The gap is not marginal: Sonnet 5 bills 63 percent more for that month and terra 94 percent more, and all of it comes from the ratio.
A cache discount of 75 percent, against 90 percent on Sonnet 5 and terra

Now the other half of the picture. When you send the same content on every call, a system prompt, a retrieved document set, a conversation history you keep replaying, providers bill the repeated part at a fraction of the normal input rate. Anthropic reads cached input on Claude Sonnet 5 at $0.20 per million against $2.00 fresh. OpenAI does the same on gpt-5.6-terra, also $0.20. xAI bills it at $0.50 on grok-4.6, so repeated context costs two and a half times what it costs on the two rivals, even though all three charge the same $2.00 for fresh input.
On most workloads that gap is too small to matter. A retrieval assistant that reads 10 million tokens a month and writes 2 million pays $32.00 on grok-4.6 with no cache, against $40.00 on Claude Sonnet 5 and $44.00 on gpt-5.6-terra. At 90 percent cached the three bills fall to $18.50, $23.80 and $27.80. Grok stays the cheapest at every cache share on that mix, because the $4.00 to $6.00 it saves on each million output tokens outweighs the $0.30 it loses on each million cached ones.
The ranking flips only when cached input dwarfs output: more than about 13 cached tokens per output token against Sonnet 5, about 20 against terra. Push the same assistant to 200 million input tokens and 2 million output a month. With no cache, grok-4.6 bills $412.00 against $420.00 and $424.00. With 90 percent of the input cached, it bills $142.00, against $96.00 on Claude Sonnet 5 and $100.00 on gpt-5.6-terra.
So the verdict is conditional rather than flattering. Grok is the cheapest of the three on any workload where output carries real weight, and it stays cheapest with a cache until repeated context outweighs output by an order of magnitude. Past that point the smaller discount outweighs the better ratio, and it does so quietly, because nothing on an invoice compares your cached rate with anybody else’s.
Grok against gpt-5.6-terra and Claude Sonnet 5 on the same workload
That arithmetic is clearest on three models that share an input price, although they are no longer the only ones: Claude Sonnet 5.5 charges the same $2.00 input and $10.00 output as Sonnet 5 but, since Anthropic cut its cache-read price on 7 October 2026, caches at $0.10 instead of $0.20, like gpt-6.1-sol, which also sits at $2.00 input and $10.00 output; both were re-read on 6 October 2026, with the Sonnet 5.5 cache-read row re-read on 13 October 2026 after that price cut. The three were kept because that is the only way to watch the output ratio and the cache discount work against each other without a dozen other variables in the way. For the full grid across every provider, including the cheap tier and the long-context surcharges, see our LLM API pricing comparison.
A verbose workload
Anything that turns a short prompt into a long document: report generation, code synthesis, marketing copy at volume, transcript cleanup. Output runs several times input, cache is close to irrelevant because the prompts are short and rarely identical, and the output multiplier decides the bill on its own. grok-4.6 wins this profile outright and the margin widens with volume. Nothing in the rival grids can close a three-to-one gap on the side of the ledger that is doing all of the spending.
A repeated-context workload
Anything that reads far more than it writes with a stable preamble: customer support on a fixed knowledge base, retrieval over a document corpus, agents that carry a long system prompt through every step. Input dominates, most of it repeats, and cached rates become the single biggest lever available to you. Here the Grok advantage shrinks, and it disappears once cached input runs at more than a dozen times your output. Watch the 200,000-token line as well: a preamble that crosses it doubles every rate on the request. At 200 million input tokens, 2 million output and 90 percent of the input cached, the ranking inverts.
What developers are building on the Grok API
A pricing page tells you the rate, not whether the model earns it. The more useful signal is what people ship on it and what they measure afterwards, particularly on coding and agentic tasks, where xAI has pushed hardest and where token volumes get large enough for a three-to-one output ratio to show up on a real invoice.
The most recent public signal comes from Kilo Code, which reported on 18 June 2026 that Grok Build 0.1 came out ahead of frontier models on its internal code review benchmark. The run itself is written up in a long form article we could not open, so we are repeating the claim rather than the numbers behind it. grok-build-0.1 is a separate coding model, listed on the xAI grid at $1.00 input, $0.20 cached input and $2.00 output on 29 September 2026, and it is not part of this comparison.
That claim was posted by Kilo Code and read on 15 August 2026. Benchmarks published by tool vendors deserve the usual scepticism about the harness and the choice of comparison. A run that names the model, the task and the cost of the run is at least reproducible, though, which is more than most model comparisons offer, and cost per run is the number that connects a benchmark back to the grid at the top of this page.
How we checked these prices
Every xAI figure on this page was re-read from the provider’s own pricing page on 29 September 2026 and captured as the screenshot above. We do not take prices from aggregators, because aggregators lag and rarely date their entries. What we verified is the standard-tier per-million rate for grok-4.7, grok-4.6 and grok-4.5, on short and long context, their cached-input rates, the 500,000-token context, the batch discount table (re-read on 17 November 2026), and the Imagine per-image rates at 1K resolution. The same page states that requests sent to xAI’s US regional endpoint are billed at 1.1 times these rates.
What we did not verify, and will not assert: enterprise commitments and any discount available under a negotiated contract. When the grid moves we update the number and say what moved, rather than editing the page in silence. What moved this time: the page we captured on 14 August 2026 showed no cached-input rate and no long-context rates, and the earlier version of this article concluded that xAI offered no cache discount. It does, and the cost comparisons above were recalculated on 29 September 2026.
Frequently asked questions
Is grok-4.5 cheaper than grok-4.6?
Only on cached input. Both read $2.00 input and $6.00 output per million tokens on 29 September 2026, with the same 500,000-token context, but grok-4.5 bills cached input at $0.30 against $0.50 on grok-4.6, and $0.60 against $1.00 past 200,000 tokens. On a workload made mostly of repeated context, that is the one cost argument for the older generation.
Does xAI offer a batch discount?
Yes. Re-read on 17 November 2026, xAI’s Batch API takes 20 percent off grok-4.7, grok-4.6 and grok-4.5, the same rate as on grok-4.3 and the grok-4.20 models, and the discount applies to every token type: input, cached, output and reasoning. That puts grok-4.6 and grok-4.7 at $1.60 input, $0.40 cached and $4.80 output per million tokens, and grok-4.5 at $1.60, $0.24 and $4.80. On 29 September 2026 the same table listed only grok-4.3 and the grok-4.20 models. Every other figure in this article is standard tier: for Batch text requests, subtract 20 percent. Imagine images sent through Batch are still billed at standard rates.
What does the 500k context change in practice?
It changes what fits in a single request, and past 200,000 tokens of prompt it also changes the rate. A 400,000-token preamble sent a thousand times a month is 400 million input tokens, all on the long-context grid: $1,600.00 with no cache hits, and $401.20 if every call after the first reads the preamble from cache (one full send at $1.60, then 399.6 million cached tokens at $1.00). Trim the same preamble to 190,000 tokens and it stays on the short grid: $380.00 uncached, $95.29 cached. Output is extra in both cases, and doubles as well past the threshold.
Is Grok the cheapest frontier model?
On output, yes, among the frontier tier we track. $6.00 per million sits below Claude Sonnet 5 at $10.00, gpt-5.6-terra at $12.00 and everything above them. Cheaper models exist, Mistral Large 3 at $1.50 and DeepSeek V4.1-Flash at $1.20 on output, but they sit a tier below on capability rather than competing with grok-4.6 head on. Our full LLM API pricing grid ranks all fourteen models we track on the volume you actually run.
How often is this page rechecked?
Whenever xAI ships a model or changes a tier, and on the routine pass we run across the rest of the pricing grid. Each figure carries the date it was verified, so you can judge the freshness yourself instead of trusting a generic update stamp.