xAI API pricing
As of October 22, 2026, the xAI API prices run from $2.00 to $6.00 per million output tokens across 7 models, as listed on OpenRouter. Grok Build 0.1 is the cheapest paid model at $1.00 input and $2.00 output per million tokens, and Grok 4.7 the most expensive at $2.00 input and $6.00 output.
Grok 4.7 ranks first among xAI models in our Vibe Coding Index, at 66.7 on 5 benchmarks. 5 of 7 xAI models have any benchmark score. Cost per solved task is known for 4 of 7 models.
| Model | Input $/Mtok | Output $/Mtok | Context | Evidence | Index | Cost per solved task |
|---|---|---|---|---|---|---|
| Grok 4.7 | $2.00 | $6.00 | 500K | 66.7 | No run cost | |
| Grok 4.6 | $2.00 | $6.00 | 500K | 65.7 | $0.82 | |
| Grok 4.5 | $2.00 | $6.00 | 500K | 58.6 | $0.62 | |
| Grok Build 0.1 | $1.00 | $2.00 | 256K | Not enough data | No run cost | |
| Grok 4.3 | $1.25 | $2.50 | 1M | 37.4 | $0.31 | |
| Grok 4.20 | $1.25 | $2.50 | 2M | 33.3 | $0.72 | |
| Grok 4.20 Multi-Agent | $1.25 | $2.50 | 2M | Not benchmarked | No run cost |
Price changes
No change in a maker's own API price recorded yet. We read prices daily from OpenRouter (since October 15, 2026) and list a change only when the maker's own price moves between two of our snapshots.