Pricing overview
xAI prices Grok 4.5 by input, cached input, and output tokens. Requests whose prompt reaches 200K tokens use the higher long-context rate for every token in the request.
Source-tracked model data
xAI API model prices in one table
Example cost uses 1,000,000 input tokens and 300,000 output tokens at each model's default tracked rate, with no cache discount.
| Model | Input / 1M | Cached input / 1M | Output / 1M | Context | Example cost |
|---|
Grok 4.5 Stable | $2.00 | $0.50 | $6.00 | 500K tokens | $3.80 |
Cost boundary: this example compares token charges only. It does not assume equal output quality, latency, retry rates, or output length across models.