Grok API Pricing (Nov 2026): Cost per Million Tokens
Grok API pricing: Grok 4.7 costs $2 per million input tokens and $6 per million output tokens. Here is every current SpaceXSI (formerly xAI) model's price, what typical jobs cost, and how to pay less.
Prices in US dollars per 1 million tokens, from OpenRouter's live list. Last checked Mon, 23 Nov 2026 10:01 UTC.
Newest Grok models and prices
| Model | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|
| Grok 4.7 | $2 | $6 | $0.5 | 500K |
| Grok 4.6 | $2 | $6 | $0.5 | 500K |
| Grok 4.5 | $2 | $6 | $0.3 | 500K |
| Grok 4.3 | $1.25 | $2.5 | $0.2 | 1M |
Highest price: Grok 4.7 at $2 in and $6 out. Biggest context window: Grok 4.20 Multi-Agent with 2M tokens. Output tokens cost more than input on almost every model, so long answers matter more than long prompts.
What typical jobs cost on Grok
Per-million prices are hard to picture, so here is the same work priced on the newest models. Change the numbers in the LLM API cost calculator.
| Job | Grok 4.7 | Grok 4.6 | Grok 4.5 | Grok 4.3 |
|---|---|---|---|---|
| One chatbot reply 1,500 tokens in, 400 out | $0.0054 | $0.0054 | $0.0054 | $0.0029 |
| Summarise a 30-page report 20,000 tokens in, 1,000 out | $0.05 | $0.05 | $0.05 | $0.03 |
| 1,000 customer-support replies 2,000 tokens in and 400 out, 1,000 times | $6.40 | $6.40 | $6.40 | $3.50 |
| A chat app with 1,000 replies a day for a month 30,000 replies of 1,500 in and 400 out | $162 | $162 | $162 | $86.25 |
SpaceXSI (formerly xAI) pricing rules worth knowing
- Credits first: you sign up at console.x.ai and load credits before the API will answer.
- Prompt caching is automatic; setting the x-grok-conv-id header raises the cache hit rate, and cached tokens are billed at a lower rate.
- The API works with the OpenAI SDK: base URL https://api.x.ai/v1.
Checked against SpaceXSI (formerly xAI)'s pricing docs on 22 November 2026.
Grok batch prices
If an answer can wait, the batch version of a model costs less. These are the batch prices OpenRouter lists today.
| Model | Normal in / out | Batch in / out | Saving on output |
|---|---|---|---|
| Grok 4.7 | $2 / $6 | $1.6 / $4.8 | 20% |
| Grok 4.6 | $2 / $6 | $1.6 / $4.8 | 20% |
| Grok 4.3 | $1.25 / $2.5 | $1 / $2 | 20% |
Cached input on Grok
When you send the same long prompt again (a system prompt, a document, a codebase), the repeated part can be read from a cache at a much lower price. Grok 4.7: $0.5 cached against $2 normal, 75% off; Grok 4.6: $0.5 cached against $2 normal, 75% off; Grok 4.5: $0.3 cached against $2 normal, 85% off; Grok 4.3: $0.2 cached against $1.25 normal, 84% off. How it works: prompt caching explained.
Every current Grok model
6 Grok models are on OpenRouter's list today, newest first.
How Grok compares
See the cheapest LLM APIs across every lab.
Compare every model's price
This page covers one slice. The LLM API pricing table lists all 360 models side by side, refreshed every 30 minutes, with a filter to find any model fast.
Where these prices come from
Prices are read every 30 minutes from OpenRouter's public models API, which passes through each provider's price with no markup (it adds a 5.5% fee when you buy credits). Buying direct, check SpaceXSI (formerly xAI)'s own pricing page.
New to LLM APIs?
Start with what an LLM API is, then how tokens work and how to get an API key. When you're ready to write code, see how to use an LLM API in Python, and to keep bills down read prompt caching explained and how to cut LLM API costs. Want it free? See the free LLM API guide.
Questions
How much does the Grok API cost?
It depends on the model. Right now Grok 4.7 costs $2 per million input tokens and $6 per million output tokens. The cheapest Grok model, Grok 4.3, costs $1.25 in and $2.5 out.
How much does the Grok API cost per token?
Divide the per-million price by a million. Grok 4.7 costs $0.0000020 per input token and $0.0000060 per output token. A token is about three quarters of an English word.
What is the cheapest Grok model?
Grok 4.3, at $1.25 per million input tokens and $2.5 per million output tokens, with a 1M-token context window.
How much does a typical Grok API request cost?
A chatbot reply of about 1,500 tokens in and 400 out costs $0.0054 on Grok 4.7 and $0.0029 on Grok 4.3.
Get this in your inbox at 7am
One free email each morning with the AI repos, models and stories that are picking up speed, including new free models. Your own time zone, no spam.