xAI API Pricing & Model Comparison
We track 4 xAI models, with input pricing from $1.25 to $2.00 per million tokens. The line-up's blended rate runs 29% 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.6 at a quality score of 93. 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.20. The largest context window is 1000K, shared by 2 models in the range, and the fastest output is grok-4.20 at 179 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.
| Model | Input /1M | Output /1M | Blended /1M | Quality | Context | Speed | Value | Use cases |
|---|---|---|---|---|---|---|---|---|
| grok-4.20 | $1.25 | $2.50 | $1.56 | 90 | 1000K | 179 tok/s | 36.0 | ReasoningChatbotLong Context |
| grok-4.3 | $1.25 | $2.50 | $1.56 | 89 | 1000K | 100 tok/s | 35.6 | ChatbotMultimodalLong Context |
| grok-4.6 | $2.00 | $6.00 | $3.00 | 93 | 500K | 59 tok/s | 15.5 | ReasoningCodingChatbot |
| grok-4.5 | $2.00 | $6.00 | $3.00 | 91 | 500K | 91 tok/s | 15.2 | ReasoningCodingChatbot |
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 90.
What is xAI's flagship model?
By quality score it is grok-4.6 (93), 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.