xAI API pricing
Prices per million tokens for the 4 xAI models we track, with context windows and what a typical task costs. The cheapest is Grok Build 0.1 at $1.00 input and $2.00 output per million tokens; the largest context window is Grok 4.7's 500K tokens. Updated 25 Oct 2026.
| Model | Input / 1M | Output / 1M | Context | Tools | Reasoning |
|---|---|---|---|---|---|
| Grok Build 0.1 | $1.00 | $2.00 | 256K | Yes | Yes |
| Grok 4.7 | $2.00 | $6.00 | 500K | Yes | Yes |
| Grok 4.6 | $2.00 | $6.00 | 500K | Yes | Yes |
| Grok 4.5 | $2.00 | $6.00 | 500K | Yes | Yes |
What xAI models cost per task
Using the listed prices, for three common jobs: a chat turn (2,000 tokens in, 500 out), summarising a 100,000-token document into 2,000 tokens, and a long agent run (1 million in, 50,000 out).
- Grok Build 0.1: chat turn $0.0030, document $0.104, agent run $1.10
- Grok 4.7: chat turn $0.0070, document $0.212, agent run $2.30
- Grok 4.6: chat turn $0.0070, document $0.212, agent run $2.30
- Grok 4.5: chat turn $0.0070, document $0.212, agent run $2.30
How xAI compares with other providers
Across all 40 models we track, the cheapest xAI model ranks #18 by output price. For a model-by-model comparison, see the full price table or the guide to choosing an LLM.
Other providers: Anthropic pricing · OpenAI pricing · Google pricing · Meta pricing · DeepSeek pricing · Mistral AI pricing · Qwen (Alibaba) pricing · Moonshot AI pricing · Z.ai pricing
xAI in the news
- Inside Grok 4.7: xAI Freezes Prices While Chasing Long-Horizon Agent Benchmarks September 24, 2026
- Inside Grok 4.7: The $2/$6 Price Trap and the Hidden Cost of Reasoning September 23, 2026
- Grok 4.7 Arrives: Multi-Hour Agent RL and a $2 Flagship Squeeze September 22, 2026
- Grok 4.6 doesn't beat DeepSeek V4 Pro — and it costs 7x more 13 Aug 2026
- Grok 4.6 is cheap — until your agent crosses 200K tokens 13 Aug 2026
- Cursor goes local in India with a ₹649 plan — a third of Pro 28 Jul 2026
Prices and limits come from OpenRouter's public model catalogue, last synced 25 Oct 2026. xAI's own API pricing can differ and changes often; confirm on its pricing page before you commit.
Feed, daily deep-dive and bytes — readable offline, with push alerts for the topics you follow.