xAI API pricing
Compare 3 xAI models in the TokenCOGS registry, then run the same workload through the cost calculators.
Popular xAI API price points
Start with the headline price range, then use the full table for the complete lineup.
xAI model pricing table
USD per 1M text tokens. Live pricing is checked against the central TokenCOGS registry when this page loads.
| Model | Input | Output | Cached input | Context | |
|---|---|---|---|---|---|
| Grok 4.6 | $2 | $6 | $0.5 | 500K tokens | Details → |
| Grok 4.5 | $2 | $6 | $0.3 | 500K tokens | Calculate → |
| Grok 4.3 | $1.25 | $2.5 | $0.2 | 1M tokens | Calculate → |
Current xAI savings programs
No verified provider-specific credits or promotions are currently stored in the TokenCOGS registry.
Price is only the first filter
Use this table to eliminate models that do not fit your unit economics, then benchmark the remaining candidates on your own task for output quality, latency, rate limits and operational reliability.
Grok 4.3 currently has the lowest tracked input-token price in this xAI set. That does not automatically make it the lowest-cost model for every workload because output ratios, caching, long-context rules and tool usage can change the result.
Model xAI spend with your own traffic
Use this provider’s price table as a starting point, then estimate the cost of your actual workload, users or multi-step tasks.