Home / Grok API pricing
Grok API pricing
What xAI charges for Grok models through its API, per million tokens, and what a month of your own use would cost. For Grok’s app plans, from free to $200 a month, see Grok pricing.
Checked October 13, 2026 against xAI’s models and pricing page
Your monthly Grok cost
Choose models
- Turn on JavaScript to see the costs. The price tables below work without it.
Text models
| Model | Input | Cached input | Output | Batch in / out | Good to know |
|---|---|---|---|---|---|
| Grok 4.7grok-4.7 | $2.00 | $0.50 | $6.00 | None | 200,000 tokens or more in a prompt: $4.00 in, $1.00 cached, $12.00 out500,000-token context |
| Grok 4.3grok-4.3 | $1.25 | $0.20 | $2.50 | None | 200,000 tokens or more in a prompt: $2.50 in, $0.40 cached, $5.00 out1,000,000-token context |
| Grok Build 0.1grok-build-0.1 | $1.00 | $0.20 | $2.00 | None | 200,000 tokens or more in a prompt: $2.00 in, $0.40 cached, $4.00 out256,000-token context |
US dollars per 1 million tokens, standard tier, from xAI’s pricing page, checked Oct 13, 2026.
xAI also lists Grok 4.6 (same prices as 4.7), Grok 4.5 ($0.30 cached) and the Grok 4.20 models (same prices as 4.3).
Grok 4.7: capability for the price
Epoch Capabilities Index (up) against the blended price per 1M tokens, 3 input to 1 output (right, log scale). Dots on the line have no model that is both cheaper and higher scoring. Hover or tap a dot for its numbers.
Show the numbers (16 models)
| # | Model | Company | Score | Blended per 1M | Value line |
|---|---|---|---|---|---|
| 1 | Claude Opus 5.5 | Anthropic | 166.8 | $8.00 | Yes |
| 2 | GPT-6 Astra | OpenAI | 166.4 | $20.00 | |
| 3 | GPT-6.1 Sol | OpenAI | 166.3 | $4.00 | Yes |
| 4 | Claude Fable 5.1 | Anthropic | 164.7 | $20.00 | |
| 5 | Gemini 4 Argon | 164.6 | $4.00 | ||
| 6 | Claude Sonnet 5.5 | Anthropic | 164.4 | $4.00 | |
| 7 | GPT-6 Sol | OpenAI | 162.6 | $4.00 | |
| 8 | Claude Opus 5 | Anthropic | 162.6 | $10.00 | |
| 9 | GPT-5.6 Sol | OpenAI | 161.7 | $8.00 | |
| 10 | GPT-5.6 Terra | OpenAI | 159.4 | $4.50 | |
| 11 | Claude Haiku 5.5 | Anthropic | 159.0 | $0.20 | Yes |
| 12 | Gemini 3.8 Flash | 157.2 | $1.50 | ||
| 13 | GPT-6 Luna | OpenAI | 156.3 | $0.20 | |
| 14 | DeepSeek Flash | DeepSeek | 155.6 | $0.525 | |
| 15 | DeepSeek V4 Pro | DeepSeek | 155.3 | $1.98 | |
| 16 | Grok 4.7 | xAI | 154.4 | $3.00 |
Scores: Epoch AI, Capabilities & benchmarking (Epoch Capabilities Index), CC BY 4.0, checked October 18, 2026. Each score carries a margin of error of about ±3 points, so models a few points apart may be level. Prices: each company’s pricing page, standard tier.
What changes the bill
Prompts of 200,000 tokens or more
When a prompt reaches 200,000 tokens, xAI bills every token in that request at the higher rate. On Grok 4.7 that doubles everything: $4.00 in, $1.00 cached and $12.00 out per million.
No batch discount on Grok 4.7
xAI’s Grok 4.7 page lists the Batch API as not supported, so there is no batch price for it. In the calculator, batch mode charges Grok 4.7 the full price.
Regions
xAI says Grok 4.7 runs on several clusters, with regional prices on the model’s page. The prices here are the main list prices.
Image, video and voice
| Model or mode | Price |
|---|---|
| Grok Imagine Imagegrok-imagine-image | $0.02 per image |
| Grok Imagine Image 2.0grok-imagine-image-2.0 | $0.04 per image |
| Grok Imagine Image, qualitygrok-imagine-image-quality | $0.05 per image |
| Grok Imagine Video 1.5 Litegrok-imagine-video-1.5-lite | $0.02 per second |
| Grok Imagine Videogrok-imagine-video | $0.05 per second |
| Grok Imagine Video 1.5grok-imagine-video-1.5 | $0.08 per second |
| Speech to speech | $0.08 per minute |
| Speech to text | $0.10 per hour ($0.20 streaming) |
| Text to speech | $15 per 1M characters |