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 price | Cached input | Output price | Context | Example cost |
|---|
Grok 4.5 Stable | $2.00 / 1M | $0.50 / 1M | $6.00 / 1M | 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.