xAI API models and pricing
We track 12 models on xAI API from 1 lab. The cheapest paid model is Grok Build 0.1, at $1 per million input tokens and $2 per million output tokens. Input prices range from $1 to $2 and output prices from $2 to $6 per million tokens. The largest context window is 1M tokens (Grok 4.3, Grok 4.20 Multi-Agent and 2 other models). Prices last verified 18 Nov 2026.
Prices in USD per million tokens. Official site
Cheapest models on xAI API
- Grok Build 0.1$1 / $2
- Grok 4.20 (Non-Reasoning)$1.25 / $2.50
- Grok 4.20 (Reasoning)$1.25 / $2.50
- Grok 4.20 Multi-Agent$1.25 / $2.50
- Grok 4.3$1.25 / $2.50
Input / output per million tokens, paid models, by combined price.
Newest models on xAI API
- Grok Imagine Video 1.5 Lite1 Oct 2026
- Grok 4.721 Sept 2026
- Grok 4.612 Aug 2026
- Grok 4.58 Jul 2026
- Grok Imagine Video 1.530 May 2026
By the lab's release date.
All xAI API models and prices
| Model | Lab | Input | Output | Context | Source |
|---|---|---|---|---|---|
| Grok Imagine Video 1.5 Lite grok-imagine-video-1.5-lite | xAI | – | – | 1K | models.dev |
| Grok 4.7 grok-4.7 | xAI | $2 | $6 | 500K | models.dev |
| Grok 4.6 grok-4.6 | xAI | $2 | $6 | 500K | models.dev |
| Grok 4.5 grok-4.5 | xAI | $2 | $6 | 500K | models.dev |
| Grok Imagine Video 1.5 grok-imagine-video-1.5 | xAI | – | – | 1K | models.dev |
| Grok 4.3 grok-4.3 | xAI | $1.25 | $2.50 | 1M | models.dev |
| Grok Build 0.1 grok-build-0.1 | xAI | $1 | $2 | 256K | models.dev |
| Grok 4.20 Multi-Agent grok-4.20-multi-agent-0309 | xAI | $1.25 | $2.50 | 1M | models.dev |
| Grok 4.20 (Reasoning) grok-4.20-0309-reasoning | xAI | $1.25 | $2.50 | 1M | models.dev |
| Grok 4.20 (Non-Reasoning) grok-4.20-0309-non-reasoning | xAI | $1.25 | $2.50 | 1M | models.dev |
| Grok Imagine Video grok-imagine-video | xAI | – | – | 1K | models.dev |
| Grok Imagine Image grok-imagine-image | xAI | – | – | 16K | models.dev |
Frequently asked questions
How much does xAI API cost per million tokens?
Prices on xAI API depend on the model. Across the 12 models we track, input costs $1 to $2 per million tokens and output costs $2 to $6 per million tokens. Prices last verified 18 Nov 2026.
What is the cheapest model on xAI API?
Grok Build 0.1 from xAI is the cheapest paid model we track on xAI API, at $1 per million input tokens and $2 per million output tokens. Next are Grok 4.20 (Non-Reasoning) ($1.25 / $2.50) and Grok 4.20 (Reasoning) ($1.25 / $2.50). Prices last verified 18 Nov 2026.
How many models does xAI API offer?
We currently track 12 active models on xAI API from 1 lab, led by xAI (12).
Which model on xAI API has the largest context window?
Grok 4.3, Grok 4.20 Multi-Agent and 2 other models share the largest context window we track on xAI API: 1,000,000 tokens (1M).