xAI API pricing
6 models · US
The Grok family, with large context windows and native search grounding.
- Cheapest input / 1M
- $1.00
- Priciest input / 1M
- $2.00
- Largest context
- 2M
- Models tracked
- 6
Grok Build 0.1
Grok 4.5
Grok 4.20 Multi-Agent
All xAI models
Cheapest first, by blended cost.
| # | Model | Blended / 1M | Input / 1M | Output / 1M | Context | Capabilities |
|---|---|---|---|---|---|---|
| 1 | $1.25 | $1.00 | $2.00 | 256K | ReasoningToolsVision | |
| 2 | Grok 4.3 xAI | $1.56 | $1.25 | $2.50 | 1M | ReasoningToolsVision |
| 3 | $1.56 | $1.25 | $2.50 | 2M | ReasoningVision | |
| 4 | Grok 4.20 xAI | $1.56 | $1.25 | $2.50 | 2M | ReasoningToolsVision |
| 5 | Grok 4.6 xAI | $3.00 | $2.00 | $6.00 | 500K | ReasoningToolsVision |
| 6 | Grok 4.5 xAI | $3.00 | $2.00 | $6.00 | 500K | ReasoningToolsVision |
Frequently asked
How much does the xAI API cost?
xAI models in this directory range from $1.00 to $2.00 per million input tokens. The cheapest is Grok Build 0.1; the most expensive is Grok 4.5.
How many models does xAI offer?
6 models are tracked here, with the largest context window being 2M tokens on Grok 4.20 Multi-Agent.