Grok API pricing
What xAI charges for each Grok text model on its API, in US dollars per million tokens, with cached input, long-context, Batch, Priority and US-region prices and the server-side tool fees.
Source: xAI API pricing, checked 28 November 2026.
Model prices
| Model | Context | Input | Cached input | Output | 200K+ input | 200K+ output | Batch input | Batch output |
|---|---|---|---|---|---|---|---|---|
Grok 4.7grok-4.7. 200K+ cached input $1 | 500K | $2 | $0.50 | $6 | $4 | $12 | $1.60 | $4.80 |
Grok 4.6grok-4.6. 200K+ cached input $1 | 500K | $2 | $0.50 | $6 | $4 | $12 | $1.60 | $4.80 |
Grok 4.5grok-4.5. 200K+ cached input $0.60 | 500K | $2 | $0.30 | $6 | $4 | $12 | $1.60 | $4.80 |
Grok 4.3grok-4.3. 200K+ cached input $0.40 | 1M | $1.25 | $0.20 | $2.50 | $2.50 | $5 | $1 | $2 |
Grok 4.20 Reasoninggrok-4.20-0309-reasoning. 200K+ cached input $0.40 | 1M | $1.25 | $0.20 | $2.50 | $2.50 | $5 | $1 | $2 |
Grok 4.20 Non-Reasoninggrok-4.20-0309-non-reasoning. 200K+ cached input $0.40 | 1M | $1.25 | $0.20 | $2.50 | $2.50 | $5 | $1 | $2 |
Grok 4.20 Multi-Agentgrok-4.20-multi-agent-0309. 200K+ cached input $0.40 | 1M | $1.25 | $0.20 | $2.50 | $2.50 | $5 | $1 | $2 |
Per million tokens. When a prompt reaches 200K tokens, all tokens in that request are billed at the 200K+ rate. Batch columns are the standard (under 200K) rates less 20%. Left out: grok-4-0709, grok-4-fast and grok-4-1-fast models, retired on 15 May 2026, whose requests now go to Grok 4.3 at its rates (AI model deprecation tracker).
Batch, Priority and the US endpoint
- Batch API: 20% off standard rates on every model above, on input, output, cached and reasoning tokens; most batches finish within 24 hours and do not count toward rate limits.
- Priority Processing: 2x standard rates on all token types, billed only when the response confirms the priority tier; Chat Completions and Responses only. For Grok 4.7 that is $4 input and $12 output.
- US regional endpoint (us.api.x.ai): 1.1x the global rates, currently for grok-4.7 and grok-4.6 only. For Grok 4.7: $2.20 input, $0.55 cached, $6.60 output.
- Grok 4.7 Fast is not on the public API: it is available only in Cursor and Grok Build, billed through those plans, at 2x standard rates (1.5x for long context).
Server-side tool fees
Requests that use xAI’s server-side tools pay the model’s token rates plus a fee per tool call:
- Web Search (web_search), including image search: $5 per 1,000 calls.
- X Search (x_search): $5 per 1,000 posts returned, $10 per 1,000 profiles returned.
- Code Execution (code_execution, code_interpreter): $5 per 1,000 calls.
- File Attachments (attachment_search): $5 per 1,000 calls.
- Collections Search (collections_search, file_search): $2.50 per 1,000 calls.
- Image Understanding, X Video Understanding, Remote MCP: no call fee; tokens billed.
A request caught before generation for breaking the usage guidelines in the Responses API is charged a $0.05 fee.
Image, video, voice and storage
- Image generation: grok-imagine-image $0.02, grok-imagine-image-2.0 $0.04 per image.
- Video generation: grok-imagine-video $0.05, grok-imagine-video-1.5 $0.08, grok-imagine-video-1.5-lite $0.02 per second.
- Speech to speech (grok-voice-3.0): $0.08 per minute ($4.80 per hour), $0.004 per text input.
- Speech to text: $0.10 per hour (REST), $0.20 per hour (streaming).
- Text to speech: $15 per 1M characters.
- File storage: $0.025 per GiB per day; collections $0.10 per GiB per day.
- File and collection downloads: $0.20 per GiB.
Compared with other vendors on image generation API pricing, video generation API pricing, text-to-speech API pricing and speech-to-text API pricing.
API compared with the X subscription
The API is paid per token; Grok in the apps comes with the X subscription. The plan prices, from xAI:
- Free: $0. Limited usage.
- Plus: $8/month or $80/year. Base usage.
- Premium: $30/month or $300/year. 4x usage; includes Grok Bot.
- Super: $100/month or $1,000/year. 15x usage.
- Ultra: $200/month or $2,000/year. 50x usage.
Every vendor’s plans side by side: AI subscription pricing. The same layout for other vendors: Claude, OpenAI, Gemini, DeepSeek and Mistral API pricing. A monthly figure for your own traffic: AI token cost calculator.
Frequently asked questions
How much does the Grok API cost per million tokens?+
For prompts under 200K tokens: Grok 4.7 $2 input, $0.50 cached input, $6 output; Grok 4.6 $2 input, $0.50 cached input, $6 output; Grok 4.5 $2 input, $0.30 cached input, $6 output; Grok 4.3 $1.25 input, $0.20 cached input, $2.50 output; Grok 4.20 Reasoning $1.25 input, $0.20 cached input, $2.50 output; Grok 4.20 Non-Reasoning $1.25 input, $0.20 cached input, $2.50 output; Grok 4.20 Multi-Agent $1.25 input, $0.20 cached input, $2.50 output.
What is Grok long-context pricing?+
When a request's prompt reaches 200K tokens, every token in that request is billed at the higher rate, which is double the standard rate on every model; for Grok 4.7 that is $4 input, $1 cached input and $12 output.
Does the Grok Batch API give a discount?+
Yes. Batch requests are 20% off standard rates on Grok 4.7, 4.6, 4.5, 4.3 and the three 4.20 models, on input, output, cached and reasoning tokens. Image and video generation in a batch are billed at standard rates.
How much does Grok Priority Processing cost?+
Priority requests cost 2x standard rates on all token types, and only when the response confirms "service_tier": "priority". It is available on Chat Completions and Responses only.
Is the Grok API included in an X or SuperGrok subscription?+
No. The X subscription (Plus, Premium, Super, Ultra) covers Grok in the apps, Cursor and X Premium; the xAI API is billed separately per token through the xAI console.
Related: how to get a Grok API key, AI API rate limits, AI model rankings.