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.
Checked October 13, 2026 against xAI’s models and pricing page
Your monthly Grok cost
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).
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 |