xAI API Pricing & Model Comparison
We track 3 xAI models, with input pricing from $1.25 to $2.00 per million tokens. The line-up's blended rate runs 8% below the catalog average. Below: price, context, speed and value compared across the range.
For cost, xAI's cheapest option is grok-4.20 ($1.25 input / $2.50 output); the quality ceiling is grok-4.5 at a quality score of 91. On a 50,000-turn-per-month support workload that is $188 versus $350 — the spread inside a single provider is often wider than the spread between providers.
On value (quality score ÷ output price) the pick of the xAI range is grok-4.5. The largest context window is 2000K, offered only by grok-4.20, and the fastest output is grok-4.3 at 100 tok/s. Modalities across the line-up: Text, Vision.
Models and pricing
Sorted by blended rate, cheapest first (3:1 input-to-output mix). Follow a model name for full specs and monthly cost estimates.
Frequently asked questions
Which xAI model is cheapest?
grok-4.20, at $1.25 input and $2.50 output per million tokens, with a quality score of —.
What is xAI's flagship model?
By quality score it is grok-4.5 (91), priced at $2.00 input / $6.00 output with a 500K context window.
Does xAI pricing change?
Yes. llmprice.app runs a daily collection job and refreshes these figures, but there can be a lag after a provider re-prices — confirm against xAI's official pricing page before committing.
Prices and specs are collected daily by llmprice.app. Confirm against the official pricing page before production use.