← API pricing · xAI
xAI Grok API pricing
What each of xAI's 3 live models costs on xAI's own API, in US dollars per million tokens: input, output and input read from the prompt cache, plus the higher rate past each long-prompt threshold. These are the published list prices in the models.dev catalog as of October 25, 2026, refreshed daily. The AW Index column is each model's standing on the bench index.
| Model | Input | Output | Cached input | Context | AW Index |
|---|---|---|---|---|---|
Grok 4.7xAI · grok-4.7 | $2† | $6† | $0.50 | 500K | 59.4 |
Grok 4.6xAI · grok-4.6 | $2† | $6† | $0.50 | 500K | 58.1 |
Grok 4.5xAI · grok-4.5 | $2† | $6† | $0.30 | 500K | 34.9 |
† Long prompts cost more: Grok 4.7 $4 / $12 over 200K tokens; Grok 4.6 $4 / $12 over 200K tokens; Grok 4.5 $4 / $12 over 200K tokens.
What a workload costs on these models, side by side: the cost calculator, filtered to xAI.
Quick answers
What is the cheapest xAI model on the API?
The lowest input price is $2 per million tokens (Grok 4.7, Grok 4.6 and Grok 4.5) and the lowest output price $6 (Grok 4.7, Grok 4.6 and Grok 4.5), of xAI's 3 priced models.
What is xAI's most expensive model?
Grok 4.7, Grok 4.6 and Grok 4.5 share the top output price, $6 per million tokens.
Does xAI discount cached input?
Yes. Input read from the prompt cache costs 75% to 85% less than normal input across the 3 models that publish a cached price, from Grok 4.5 (85% off) to Grok 4.7 and Grok 4.6 (75% off).
Does xAI charge more for long prompts?
On 3 of its 3 priced models: Grok 4.7 goes to $4 / $12 past 200K tokens; Grok 4.6 goes to $4 / $12 past 200K tokens; Grok 4.5 goes to $4 / $12 past 200K tokens.
How do xAI's prices compare with other labs?
Its cheapest model by output price, Grok 4.7, ranks 21 of the 39 priced models from every lab on output price. Prices are xAI's own list prices from the models.dev catalog as of October 25, 2026; clouds and resellers may charge differently.
Other labs: Anthropic · Google · OpenAI · Meta · Zhipu AI · Alibaba · MiniMax · Moonshot · Xiaomi · every model in one table · prompt caching prices
Cite this page
Writing about xAI's API prices? Copy a link or a citation.
<a href="https://artificialwatch.com/llm-pricing/xai">xAI Grok API pricing</a>ArtificialWatch, "xAI Grok API pricing", https://artificialwatch.com/llm-pricing/xaixAI ships often. Get an alert when its next model lands.
Free: a Chrome push and an email about 15 minutes after a new model answers on a public API. Members get a text or a phone call the moment a launch is confirmed.
- Free forever
- No card
- Unsubscribe in one click