API PRICING
xAI API Pricing 2026
xAI offers 4 models via API. Input pricing ranges from $0.200 to $2.50 per million tokens. Output pricing ranges from $0.800 to $12.50 per million tokens.
Creator of the Grok model family.
| Model | Input / 1M | Output / 1M | Context | Arena ELO | |
|---|---|---|---|---|---|
| Grok 3-mini | $0.200 | $0.800 | 128K | 1175 | Details → |
| Grok 2 | $2.00 | $10.00 | 131.072K | 1240 | Details → |
| Grok 2 Vision | $2.00 | $10.00 | 8.192K | 1230 | Details → |
| Grok 3 | $2.50 | $12.50 | 200K | 1285 | Details → |
Compare other providers
Need side-by-side?
Compare any two xAI models directly, or benchmark against other providers.
Open model comparison →