# xAI API pricing 

xAI currently lists 9 models in our data. The lowest input price is [Grok Build 0.1](https://apicostcheck.com/models/grok-build-0.1/) at $1.00 per 1M tokens and the lowest output price is [Grok Build 0.1](https://apicostcheck.com/models/grok-build-0.1/) at $2.00; the newest model is [Grok 4.7](https://apicostcheck.com/models/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](https://apicostcheck.com/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](https://apicostcheck.com/models/grok-4.7/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-09-21 | $2.00 | $6.00 | $0.50 | 500K |
| | [Grok 4.6](https://apicostcheck.com/models/grok-4.6/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-08-12 | $2.00 | $6.00 | $0.50 | 500K |
| | [Grok 4.5](https://apicostcheck.com/models/grok-4.5/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-07-08 | $2.00 | $6.00 | $0.30 | 500K |
| | [Grok 4.3](https://apicostcheck.com/models/grok-4.3/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-04-17 | $1.25 | $2.50 | $0.20 | 1000K |
| | [Grok Build 0.1](https://apicostcheck.com/models/grok-build-0.1/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-04-16 | $1.00 | $2.00 | $0.20 | 256K |
| | [Grok 4.20 Multi Agent](https://apicostcheck.com/models/grok-4.20-multi-agent/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-03-09 | $1.25 | $2.50 | $0.20 | 1000K |
| | [Grok 4.20 Non Reasoning](https://apicostcheck.com/models/grok-4.20-non-reasoning/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-03-09 | $1.25 | $2.50 | $0.20 | 1000K |
| | [Grok 4.20 Reasoning](https://apicostcheck.com/models/grok-4.20-reasoning/) | [xAI](https://apicostcheck.com/providers/xai/) | 2026-03-09 | $1.25 | $2.50 | $0.20 | 1000K |
| | [Grok Code Fast 1](https://apicostcheck.com/models/grok-code-fast-1/) | [xAI](https://apicostcheck.com/providers/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.

---
Source: https://apicostcheck.com/providers/xai/ · prices in USD per 1M tokens, synced 2026-10-13 08:00 UTC · Free to reuse with a link to https://apicostcheck.com (CC BY 4.0). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
