Grok API pricing and cost calculator
Estimate what the xAI Grok API will cost for your workload, including cached input and the higher price for very long prompts.
Prices last verified against official provider pages on . How we verify prices. Written by the Chelure Enterprises Editorial Team.
How Grok pricing works
xAI prices Grok per million tokens, with a lower rate for cached input. Grok 4.7, 4.6 and 4.5 are listed at $2.00 input and $6.00 output per million tokens with a 500,000-token context window. Grok 4.3 and Grok 4.20 cost $1.25 input and $2.50 output with a 1,000,000-token context window, and Grok Build 0.1 costs $1.00 and $2.00 with 256,000 tokens of context.
The long-prompt tier
Each model has a second, higher price. When a single request's prompt reaches 200,000 tokens, xAI bills every token in that request at the higher rate: $4 input and $12 output for Grok 4.7, 4.6 and 4.5, and $2.50 and $5.00 for Grok 4.3 and 4.20. The calculator uses the standard rate, so for very long prompts double the input and output figures or use the numbers in the table notes.
A worked example
A chatbot with 1,500 input and 400 output tokens per request and 1,000 requests a day costs about $162.00 a month on Grok 4.7 and about $86.25 a month on Grok 4.3, with no caching.
Grok prices per million tokens
| Model | Input | Output | Cached input |
|---|---|---|---|
| Grok 4.7 | $2.00 | $6.00 | $0.50 |
| Grok 4.6 | $2.00 | $6.00 | $0.50 |
| Grok 4.5 | $2.00 | $6.00 | $0.30 |
| Grok 4.3 | $1.25 | $2.50 | $0.20 |
| Grok 4.20 (reasoning and non-reasoning) | $1.25 | $2.50 | $0.20 |
| Grok Build 0.1 | $1.00 | $2.00 | $0.20 |
Source: xAI model documentation, verified November 13, 2026. xAI also sells image, video, voice and transcription: see the image, video and voiceover calculators.
Frequently asked questions
How much does the Grok API cost?
As of November 13, 2026, Grok 4.7 costs $2 per million input tokens and $6 per million output tokens. Grok 4.3 costs $1.25 and $2.50.
What happens at 200,000 tokens?
When a request's prompt reaches 200,000 tokens, xAI bills all tokens in that request at a higher rate, roughly double the standard price.
Does Grok have cached input pricing?
Yes. Cached input costs $0.50 per million tokens on Grok 4.7 and 4.6, $0.30 on Grok 4.5, and $0.20 on Grok 4.3, 4.20 and Grok Build 0.1.
Cite this page: Grok API pricing. Createchz AI Tools, verified November 13, 2026. https://createchz.com/ai-costs/grok-api-pricing/