35
Models Available
$0.20
Cheapest Input / 1M
2M
Largest Context
What is Xai?
Xai is an AI model provider offering 35 large language models for developers. Their cheapest model starts at $0.20 per 1M input tokens, and their largest context window reaches 2M. Xai provides 35 AI models accessible via API.
Xai Strengths
All Xai Models
| Model | Input $/1M | Output $/1M | Context | Max Output | Released |
|---|---|---|---|---|---|
| Grok 4 Fast Reasoning | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok 4 Fast Non Reasoning | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok 4 1 Fast | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok 4 1 Fast Reasoning | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok 4 1 Fast Reasoning Latest | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok 4 1 Fast Non Reasoning | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok 4 1 Fast Non Reasoning Latest | $0.20 | $0.50 | 2M | 2,000,000 | — |
| Grok Code Fast | $0.20 | $1.50 | 256K | 256,000 | — |
| Grok Code Fast 1 | $0.20 | $1.50 | 256K | 256,000 | — |
| Grok Code Fast 1 0825 | $0.20 | $1.50 | 256K | 256,000 | — |
| Grok 3 Mini | $0.30 | $0.50 | 131K | 131,072 | — |
| Grok 3 Mini Beta | $0.30 | $0.50 | 131K | 131,072 | — |
| Grok 3 Mini Latest | $0.30 | $0.50 | 131K | 131,072 | — |
| Grok 3 Mini Fast | $0.60 | $4.00 | 131K | 131,072 | — |
| Grok 3 Mini Fast Beta | $0.60 | $4.00 | 131K | 131,072 | — |
| Grok 3 Mini Fast Latest | $0.60 | $4.00 | 131K | 131,072 | — |
| Grok 2 | $2.00 | $10.00 | 131K | 131,072 | — |
| Grok 2 1212 | $2.00 | $10.00 | 131K | 131,072 | — |
| Grok 2 Latest | $2.00 | $10.00 | 131K | 131,072 | — |
| Grok 2 Vision | $2.00 | $10.00 | 33K | 32,768 | — |
| Grok 2 Vision 1212 | $2.00 | $10.00 | 33K | 32,768 | — |
| Grok 2 Vision Latest | $2.00 | $10.00 | 33K | 32,768 | — |
| Grok 4.20 Multi Agent Beta 0309 | $2.00 | $6.00 | 2M | 2,000,000 | — |
| Grok 4.20 Beta 0309 Reasoning | $2.00 | $6.00 | 2M | 2,000,000 | — |
| Grok 4.20 Beta 0309 Non Reasoning | $2.00 | $6.00 | 2M | 2,000,000 | — |
| Grok 3 | $3.00 | $15.00 | 131K | 131,072 | — |
| Grok 3 Beta | $3.00 | $15.00 | 131K | 131,072 | — |
| Grok 3 Latest | $3.00 | $15.00 | 131K | 131,072 | — |
| Grok 4 | $3.00 | $15.00 | 256K | 256,000 | — |
| Grok 4 0709 | $3.00 | $15.00 | 256K | 256,000 | — |
| Grok 4 Latest | $3.00 | $15.00 | 256K | 256,000 | — |
| Grok 3 Fast Beta | $5.00 | $25.00 | 131K | 131,072 | — |
| Grok 3 Fast Latest | $5.00 | $25.00 | 131K | 131,072 | — |
| Grok Beta | $5.00 | $15.00 | 131K | 131,072 | — |
| Grok Vision Beta | $5.00 | $15.00 | 8K | 8,192 | — |
Model Details
Grok 4 Fast Reasoning
Grok 4 Fast Reasoning is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok 4 Fast Non Reasoning
Grok 4 Fast Non Reasoning is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok 4 1 Fast
Grok 4 1 Fast is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok 4 1 Fast Reasoning
Grok 4 1 Fast Reasoning is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok 4 1 Fast Reasoning Latest
Grok 4 1 Fast Reasoning Latest is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok 4 1 Fast Non Reasoning
Grok 4 1 Fast Non Reasoning is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok 4 1 Fast Non Reasoning Latest
Grok 4 1 Fast Non Reasoning Latest is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $0.2000/1M input tokens, $0.5000/1M output tokens.
Grok Code Fast
Grok Code Fast is available via Xai with a 256K context window and up to 256,000 output tokens. Pricing: $0.2000/1M input tokens, $1.50/1M output tokens.
Grok Code Fast 1
Grok Code Fast 1 is available via Xai with a 256K context window and up to 256,000 output tokens. Pricing: $0.2000/1M input tokens, $1.50/1M output tokens.
Grok Code Fast 1 0825
Grok Code Fast 1 0825 is available via Xai with a 256K context window and up to 256,000 output tokens. Pricing: $0.2000/1M input tokens, $1.50/1M output tokens.
Grok 3 Mini
Grok 3 Mini is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $0.3000/1M input tokens, $0.5000/1M output tokens.
Grok 3 Mini Beta
Grok 3 Mini Beta is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $0.3000/1M input tokens, $0.5000/1M output tokens.
Grok 3 Mini Latest
Grok 3 Mini Latest is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $0.3000/1M input tokens, $0.5000/1M output tokens.
Grok 3 Mini Fast
Grok 3 Mini Fast is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $0.6000/1M input tokens, $4.00/1M output tokens.
Grok 3 Mini Fast Beta
Grok 3 Mini Fast Beta is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $0.6000/1M input tokens, $4.00/1M output tokens.
Grok 3 Mini Fast Latest
Grok 3 Mini Fast Latest is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $0.6000/1M input tokens, $4.00/1M output tokens.
Grok 2
Grok 2 is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $2.00/1M input tokens, $10.00/1M output tokens.
Grok 2 1212
Grok 2 1212 is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $2.00/1M input tokens, $10.00/1M output tokens.
Grok 2 Latest
Grok 2 Latest is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $2.00/1M input tokens, $10.00/1M output tokens.
Grok 2 Vision
Grok 2 Vision is available via Xai with a 33K context window and up to 32,768 output tokens. Pricing: $2.00/1M input tokens, $10.00/1M output tokens.
Grok 2 Vision 1212
Grok 2 Vision 1212 is available via Xai with a 33K context window and up to 32,768 output tokens. Pricing: $2.00/1M input tokens, $10.00/1M output tokens.
Grok 2 Vision Latest
Grok 2 Vision Latest is available via Xai with a 33K context window and up to 32,768 output tokens. Pricing: $2.00/1M input tokens, $10.00/1M output tokens.
Grok 4.20 Multi Agent Beta 0309
Grok 4.20 Multi Agent Beta 0309 is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $2.00/1M input tokens, $6.00/1M output tokens.
Grok 4.20 Beta 0309 Reasoning
Grok 4.20 Beta 0309 Reasoning is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $2.00/1M input tokens, $6.00/1M output tokens.
Grok 4.20 Beta 0309 Non Reasoning
Grok 4.20 Beta 0309 Non Reasoning is available via Xai with a 2M context window and up to 2,000,000 output tokens. Pricing: $2.00/1M input tokens, $6.00/1M output tokens.
Grok 3
Grok 3 is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $3.00/1M input tokens, $15.00/1M output tokens.
Grok 3 Beta
Grok 3 Beta is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $3.00/1M input tokens, $15.00/1M output tokens.
Grok 3 Latest
Grok 3 Latest is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $3.00/1M input tokens, $15.00/1M output tokens.
Grok 4
Grok 4 is available via Xai with a 256K context window and up to 256,000 output tokens. Pricing: $3.00/1M input tokens, $15.00/1M output tokens.
Grok 4 0709
Grok 4 0709 is available via Xai with a 256K context window and up to 256,000 output tokens. Pricing: $3.00/1M input tokens, $15.00/1M output tokens.
Grok 4 Latest
Grok 4 Latest is available via Xai with a 256K context window and up to 256,000 output tokens. Pricing: $3.00/1M input tokens, $15.00/1M output tokens.
Grok 3 Fast Beta
Grok 3 Fast Beta is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $5.00/1M input tokens, $25.00/1M output tokens.
Grok 3 Fast Latest
Grok 3 Fast Latest is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $5.00/1M input tokens, $25.00/1M output tokens.
Grok Beta
Grok Beta is available via Xai with a 131K context window and up to 131,072 output tokens. Pricing: $5.00/1M input tokens, $15.00/1M output tokens.
Grok Vision Beta
Grok Vision Beta is available via Xai with a 8K context window and up to 8,192 output tokens. Pricing: $5.00/1M input tokens, $15.00/1M output tokens.
Compare Xai model pricing
Use our pricing calculator to find the cheapest Xai model for your workload.