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 4 Fast | xAI | 256K | $0.200/1M | $0.500/1M | $0.00045 | $4.5 | Cost |
| 3 | Grok 3 Mini | xAI | 131K | $0.300/1M | $0.500/1M | $0.00055 | $5.5 | Cost |
| 4 | Grok 4.6 | xAI | 500K | $2.00/1M | $6.00/1M | $0.005 | $50.00 | Cost |
| 5 | Grok 2 | xAI | 131K | $2.00/1M | $10.00/1M | $0.007 | $70.00 | Cost |
| 6 | Grok 2 Vision | xAI | 33K | $2.00/1M | $10.00/1M | $0.007 | $70.00 | Cost |
| 7 | Grok 3 | xAI | 131K | $3.00/1M | $15.00/1M | $0.0105 | $105.00 | Cost |
| 8 | Grok 4 | xAI | 256K | $3.00/1M | $15.00/1M | $0.0105 | $105.00 | Cost |
| 9 | Grok Beta | xAI | 131K | $5.00/1M | $15.00/1M | $0.0125 | $125.00 | Cost |
| 10 | 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
LLM cost calculator · Cheapest LLM API · Compare model prices · Cache savings · Batch pricing
Related guides
How LLM API pricing works · How prompt cost is calculated · Prompt caching explained · Exact vs Approx
Sources and references
Official documentation used for definitions, counting methods, or rate cards. Always confirm critical budgets on the provider page.