Home / Pricing / Providers / xAI
xAI API pricing
Published xAI rates in this catalog. Example cost uses 1000 input tokens and 500 output tokens. Open any model in the calculator for your own prompt.
xAI rates
| # | Model | Provider | Context | Input / 1M | Output / 1M | Example | 10k requests | |
|---|---|---|---|---|---|---|---|---|
| 1 | Grok 2 Mini | xAI | 131K | $0.200/1M | $0.500/1M | $0.00045 | $4.5 | Cost |
| 2 | Grok 3 Mini | xAI | 131K | $0.300/1M | $0.500/1M | $0.00055 | $5.5 | Cost |
| 3 | Grok 3 | xAI | 131K | $1.25/1M | $2.50/1M | $0.0025 | $25.00 | Cost |
| 4 | Grok 4 | xAI | 256K | $1.25/1M | $2.50/1M | $0.0025 | $25.00 | Cost |
| 5 | Grok 4 Fast | xAI | 256K | $1.25/1M | $2.50/1M | $0.0025 | $25.00 | Cost |
| 6 | Grok 4.7 | xAI | 500K | $2.00/1M | $6.00/1M | $0.005 | $50.00 | Cost |
| 7 | Grok 4.6 | xAI | 500K | $2.00/1M | $6.00/1M | $0.005 | $50.00 | Cost |
| 8 | Grok 2 | xAI | 131K | $2.00/1M | $10.00/1M | $0.007 | $70.00 | Cost |
| 9 | Grok 2 Vision | xAI | 33K | $2.00/1M | $10.00/1M | $0.007 | $70.00 | Cost |
| 10 | Grok Beta | xAI | 131K | $5.00/1M | $15.00/1M | $0.0125 | $125.00 | Cost |
| 11 | Grok Vision Beta | xAI | 8K | $5.00/1M | $15.00/1M | $0.0125 | $125.00 | Cost |
Use the calculator
Open a model in the cost calculator or tokenizer. Rates checked on each model page.
Related tools
Grok cost calculator · Compare models · xAI models · Cheapest models
Related guides
Sources and references
Official documentation used for definitions, counting methods, or rate cards. Always confirm critical budgets on the provider page.