xAI API cost: every model on one page
All 2 xAI models this site tracks, on one table: the input, cached-input and output rate per million tokens, the blended cost of a 70/30 traffic mix, and the monthly bill at 10 and 100 million tokens. The cheapest is Grok 4.3 at $1.62 per million blended; the dearest is Grok 4.7 at $3.20. Every figure is computed from the same pricing data the calculators use.
Prices verified December 1, 2026
| Model | Tier | Input | Cached | Output | 70/30 blend | 10M/month | 100M/month |
|---|---|---|---|---|---|---|---|
| Grok 4.3 | mid-tier | $1.25 | $0.200 | $2.50 | $1.62 | $16.25 | $162.50 |
| Grok 4.7 | flagship | $2.00 | $0.500 | $6.00 | $3.20 | $32.00 | $320.00 |
Reading the table
The blend column is 70% input and 30% output, the shape of ordinary chat and agent traffic. Change the mix and the ranking can change: on a reply-heavy workload the output column dominates, and on a retrieval workload the input column does. The cached column is what you pay when the provider serves a repeated prefix from its prompt cache — usually 5% to 25% of the input rate, and the single biggest lever on a long-running agent.
Monthly figures are list price: no batch discount, no committed-use agreement, no regional resale. A 100M-token month on the cheapest model here is $162.50; on the dearest, $320.00. That spread is why teams end up with two models — a cheap one for the bulk and a flagship for the hard 10%.
How these models are chosen
Only models with a published standard-tier rate on xAI's own pricing page are listed. Embedding, image and video models are priced separately in the workflow estimator, and consumer plans are on the subscription break-even page.
Questions
Which xAI model is cheapest?
Grok 4.3 at $1.25 per million input, $2.50 output ($1.62 per million at a 70/30 mix). The dearest is Grok 4.7 at $3.20 per million blended.
Does xAI charge for cached input?
Yes. xAI bills cached input from $0.200 to $0.500 per million tokens depending on the model, against $1.25 to $2.00 for fresh input. If you resend a fixed system prompt or knowledge base, that column is the difference between two budgets.
Where do these prices come from?
xAI models and pricing — read on 2026-11-25. The <a href="/about">About page</a> lists every source with its check date.
Work out your own number
- LLM API cost calculator — your own token counts against 20 models
- Subscription vs API break-even — when a $20 plan beats metered API calls
- AI subscription receipt — what a stack of consumer plans adds up to
- All 30 comparisons — two models side by side with a live calculator
- All cost guides — 113 pages by model, task and volume
Tools that keep the bill down
The rate table is half the answer. These two move the token count itself.
Make.com — run the flow without the cron script
Every retry is a second billed request. Make fires the flow on a schedule or webhook, retries inside the run and logs each one, so the monthly line stops being a guess.
Firecrawl — pages into clean markdown
Turn a web page into LLM-ready markdown so the tokens you pay for are the content, not the markup around it.
Affiliate disclosure: we may earn a commission if you subscribe through these links, at no extra cost to you. See the privacy and disclosure page.