xAI LLM API pricing
Every model xAI serves, with its pricing per 1M tokens and the exact model ID to copy. Sorted cheapest input first, with models xAI lists no paid price for at the end. Listed prices from LiteLLM, OpenRouter and Vercel.
Models served
47
on this provider
Cheapest input
$1.00
per 1M tokens
Cheapest output
$2.00
per 1M tokens
Max context
2M
tokens
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.
| Model ID | |||||
|---|---|---|---|---|---|
| Grok Build 0.1 | xAI | 256K | $1.00 | $2.00 | xai/grok-build-0.1 |
| Grok Code Fast | xAI | 256K | $1.00 | $2.00 | xai/grok-code-fast |
| Grok Code Fast 1 | xAI | 256K | $1.00 | $2.00 | xai/grok-code-fast-1 |
| Grok Code Fast 1 0825 | xAI | 256K | $1.00 | $2.00 | xai/grok-code-fast-1-0825 |
| Grok 3 | xAI | 131K | $1.25 | $2.50 | xai/grok-3 |
| Grok 3 Beta | xAI | 131K | $1.25 | $2.50 | xai/grok-3-beta |
| Grok 3 Fast Beta | xAI | 131K | $1.25 | $2.50 | xai/grok-3-fast-beta |
| Grok 3 Fast LatestPointer | xAI | 131K | $1.25 | $2.50 | xai/grok-3-fast-latest |
| Grok 3 LatestPointer | xAI | 131K | $1.25 | $2.50 | xai/grok-3-latest |
| Grok 3 Mini | xAI | 131K | $1.25 | $2.50 | xai/grok-3-mini |
| Grok 3 Mini Beta | xAI | 131K | $1.25 | $2.50 | xai/grok-3-mini-beta |
| Grok 3 Mini Fast | xAI | 131K | $1.25 | $2.50 | xai/grok-3-mini-fast |
| Grok 3 Mini Fast Beta | xAI | 131K | $1.25 | $2.50 | xai/grok-3-mini-fast-beta |
| Grok 3 Mini Fast LatestPointer | xAI | 131K | $1.25 | $2.50 | xai/grok-3-mini-fast-latest |
| Grok 3 Mini LatestPointer | xAI | 131K | $1.25 | $2.50 | xai/grok-3-mini-latest |
| Grok 4 | xAI | 262K | $1.25 | $2.50 | xai/grok-4 |
| Grok 4 0709 | xAI | 256K | $1.25 | $2.50 | xai/grok-4-0709 |
| Grok 4 20 0309 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-0309 |
| Grok 4 20 0309 Non Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-0309-non-reasoning |
| Grok 4 20 0309 Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-0309-reasoning |
| Grok 4 20 Beta | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta |
| Grok 4 20 Beta 0309 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-0309 |
| Grok 4 20 Beta 0309 Non Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-0309-non-reasoning |
| Grok 4 20 Beta 0309 Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-0309-reasoning |
| Grok 4 20 Beta LatestPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-latest |
| Grok 4 20 Beta Latest Non ReasoningPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-latest-non-reasoning |
| Grok 4 20 Beta Latest ReasoningPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-latest-reasoning |
| Grok 4 20 Beta Non Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-non-reasoning |
| Grok 4 20 Beta Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-beta-reasoning |
| Grok 4 20 Experimental Beta 0304 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-experimental-beta-0304 |
| Grok 4 20 Experimental Beta 0304 Non Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-experimental-beta-0304-non-reasoning |
| Grok 4 20 Experimental Beta 0304 Reasoning | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-experimental-beta-0304-reasoning |
| Grok 4 20 Experimental Beta LatestPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-experimental-beta-latest |
| Grok 4 20 Experimental Beta Non Reasoning LatestPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-experimental-beta-non-reasoning-latest |
| Grok 4 20 Experimental Beta Reasoning LatestPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-experimental-beta-reasoning-latest |
| Grok 4 20 Multi Agent 0309 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-multi-agent-0309 |
| Grok 4 20 Multi Agent Beta 0309 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-multi-agent-beta-0309 |
| Grok 4 20 Non Reasoning | xAI | 2M | $1.25 | $2.50 | xai/grok-4.20-non-reasoning |
| Grok 4 20 Non Reasoning Gv2 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-non-reasoning-gv2 |
| Grok 4 20 Non Reasoning LatestPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-non-reasoning-latest |
| Grok 4 20 Reasoning | xAI | 2M | $1.25 | $2.50 | xai/grok-4.20-reasoning |
| Grok 4 20 Reasoning Gv2 | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-reasoning-gv2 |
| Grok 4 20 Reasoning LatestPointer | xAI | 1M | $1.25 | $2.50 | xai/grok-4.20-reasoning-latest |
| Grok 4 Fast Non Reasoning | xAI | 2M | $1.25 | $2.50 | xai/grok-4-fast-non-reasoning |
| Grok 4 Fast Reasoning | xAI | 2M | $1.25 | $2.50 | xai/grok-4-fast-reasoning |
| Grok 4 LatestPointer | xAI | 256K | $1.25 | $2.50 | xai/grok-4-latest |
| Grok 4.1 Fast | xAI | 131K | $1.25 | $2.50 | xai/grok-4-1-fast |
| Grok 4.1 Fast Non Reasoning | xAI | 128K | $1.25 | $2.50 | xai/grok-4-1-fast-non-reasoning |
| Grok 4.1 Fast Non Reasoning LatestPointer | xAI | 2M | $1.25 | $2.50 | xai/grok-4-1-fast-non-reasoning-latest |
| Grok 4.1 Fast Reasoning | xAI | 128K | $1.25 | $2.50 | xai/grok-4-1-fast-reasoning |
1–50 of 67
Page 1 of 2
Listed prices from LiteLLM, OpenRouter and Vercel · catalogue refreshed Oct 14, 2026 · 31 prices older, back to Aug 27, 2026
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI