xAI
Grok 2 Pricing
API pricing for Grok 2 by xAI. Input tokens cost $2/1M, output tokens cost $10/1M with 131K context window.
Last updated:
Tools
Input Cost
$2
per 1M tokens
Output Cost
$10
per 1M tokens
Context Window
131K
tokens
Cost Calculator
Estimated Cost:
$0.00
Model Details
Provider
xAI
Model ID
grok-2
Context Window
131K tokens
Max Output
8192 tokens
Cache Read Cost
$2/1M
Release Date
2024-08-20
Compare Alternatives
| Model | Input | Output | Context |
|---|---|---|---|
| Grok 2 (this model) | $2 | $10 | 131K |
| Grok 2 (1212) xAI | $2 | $10 | 131K |
| Grok 2 Latest xAI | $2 | $10 | 131K |
| Grok 2 Vision xAI | $2 | $10 | 8K |
| Grok 2 Vision (1212) xAI | $2 | $10 | 8K |
| Grok 2 Vision Latest xAI | $2 | $10 | 8K |
Available from Resellers
Grok 2 is also available through these resellers and gateways:
| Reseller | Model | Input | Output |
|---|---|---|---|
| Vercel AI Gateway | Grok 2 | $2 | $10 |
| Vercel AI Gateway | Grok 2 Vision | $2 | $10 |