xAI API pricing
xAI currently lists 9 models in our data. The lowest input price is Grok Build 0.1 at $1.00 per 1M tokens and the lowest output price is Grok Build 0.1 at $2.00; the newest model is Grok 4.7 (2026-09-21). 9 of the 9 have a cached-input price and 4 a batch price. Tick models to compare them, or put your traffic into the calculator.
Default order: premium models (output $6.00+/1M) first, newest release first. Tick models to compare them side by side.
| Compare | Model | Provider | Released | Input /1M | Output /1M | Cached input /1M | Max input |
|---|---|---|---|---|---|---|---|
| Grok 4.7 | xAI | 2026-09-21 | $2.00 | $6.00 | $0.50 | 500K | |
| Grok 4.6 | xAI | 2026-08-12 | $2.00 | $6.00 | $0.50 | 500K | |
| Grok 4.5 | xAI | 2026-07-08 | $2.00 | $6.00 | $0.30 | 500K | |
| Grok 4.3 | xAI | 2026-04-17 | $1.25 | $2.50 | $0.20 | 1000K | |
| Grok Build 0.1 | xAI | 2026-04-16 | $1.00 | $2.00 | $0.20 | 256K | |
| Grok 4.20 Multi Agent | xAI | 2026-03-09 | $1.25 | $2.50 | $0.20 | 1000K | |
| Grok 4.20 Non Reasoning | xAI | 2026-03-09 | $1.25 | $2.50 | $0.20 | 1000K | |
| Grok 4.20 Reasoning | xAI | 2026-03-09 | $1.25 | $2.50 | $0.20 | 1000K | |
| Grok Code Fast 1 | xAI | — | $1.00 | $2.00 | $0.20 | 256K |
Recent price changes
No price changes recorded since tracking began on 2026-10-08.
Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-10-13 08:00 UTC.
FAQ
Where do these prices come from?
From the open-source LiteLLM price list, refreshed every 4 hours and, for providers with an automatic check, compared field by field with the provider's official pricing page. Each model page shows what was verified.
Why is a model missing?
We list first-party chat and reasoning models with published per-token prices. Audio, image, realtime, fine-tuned and third-party-hosted models are out of scope; deprecated models move to the retired list. Missing or wrong entries can be reported on the feedback board.