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

xAI models, USD per million tokens and monthly at 10M / 100M tokens (70/30 mix), checked December 1, 2026.
ModelTierInputCachedOutput70/30 blend10M/month100M/month
Grok 4.3mid-tier$1.25$0.200$2.50$1.62$16.25$162.50
Grok 4.7flagship$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 &mdash; read on 2026-11-25. The <a href="/about">About page</a> lists every source with its check date.

Work out your own number