3 models tracked
xAI API pricing
xAI prices Grok in the same band as the mid-tier models from OpenAI and Anthropic, with one structural difference that matters more than the headline rate: every price doubles above a 200,000 token prompt.
- Models tracked
- 3 3 current
- Cheapest input
- $1.00 Grok Build 0.1
- Highest input
- $2.00 Grok 4.5
- Exact token counts
- 0 / 3 no browser tokenizer
Every xAI model, cheapest first
| Model | Input | Cached | Output | Context | Count | Chat turn |
|---|---|---|---|---|---|---|
| Grok Build 0.1 | $1.00 | $0.2000 | $2.00 | 256K | Estimate | $0.002100 |
| Grok 4.3 | $1.25 | $0.2000 | $2.50 | 1M | Estimate | $0.002625 |
| Grok 4.5 | $2.00 | $0.3000 | $6.00 | 500K | Estimate | $0.004800 |
Chat turn is 1,500 input and 300 output tokens. Prices read from xAI’s pricing documentation; each row links to its own dated source.
What is distinctive about xAI pricing
- 01
The published rate applies only to prompts under 200,000 tokens. Above that threshold input, cached input and output all double — so a long-context request is not merely bigger, it is twice as expensive per token.
- 02
That makes the threshold a design constraint rather than a detail. A retrieval step that keeps prompts under 200,000 tokens is worth building on cost grounds alone, independently of the accuracy argument for retrieving less.
- 03
Cached input runs at roughly a sixth of base rate on current models, which is a smaller discount than OpenAI or DeepSeek offer but still the largest single lever on a repetitive workload.
Token counting on xAI
xAI does not publish a browser-capable tokenizer, so counts on this site are estimates rather than measurements. The practical consequence is worst near the 200,000 token pricing boundary, where an estimate that lands on the wrong side of the line understates cost by a factor of two.
Counts shown here for xAI models are estimates and are labelled as such everywhere they appear. The methodology page documents every scaling factor used.
Compare with other providers
Or shortlist across all of them at once in the model finder, filtering by budget, context window and whether token counts can be exact.
Frequently asked questions
- How much does the xAI API cost?
- It depends on the model. Across the 3 models tracked here, input ranges from $1.00 to $2.00 per million tokens and output from $2.00 to $6.00. On a typical chat turn of 1,500 input and 300 output tokens the range is $0.002100 to $0.004800 per request.
- What is the cheapest xAI model?
- Grok Build 0.1, at $1.00 per million input tokens and $2.00 per million output. Whether it is cheap enough depends on whether it can do your task — the cost of finding out is usually a few cents.
- Can I count xAI tokens exactly?
- Not in a browser. xAI does not publish a browser-capable tokenizer, so counts on this site are estimates rather than measurements. The practical consequence is worst near the 200,000 token pricing boundary, where an estimate that lands on the wrong side of the line understates cost by a factor of two. Counts shown on this site for xAI models are labelled as estimates everywhere they appear.
- How current is this xAI pricing?
- Every model entry stores the URL it was read from and the date it was read, both shown in the table above. The full data set was last reviewed on August 5, 2026. Prices change without notice, so verify against xAI's own documentation before committing spend.