xAI · Model
Grok 4.7 API pricing, cost and context window
Grok 4.7 costs $2 per million input tokens and $6 per million output tokens, rising to $4 and $12 once a prompt passes 200,000 tokens. Cached input costs $0.50. It reads up to 500,000 tokens. Prices checked 2026-11-22. By blended price it is the only current xAI model in this directory.
- Input / 1M
- $2
- Output / 1M
- $6
- Cached / 1M
- $0.50
- Context
- 500,000
- Max output
- Not published
- Released
- 2026-09-21
Estimate your cost with Grok 4.7Compare all xAI modelsCount tokens for Grok 4.7
Pricing
How much does Grok 4.7 cost per million tokens?
| Price per 1M tokens | Input | Output |
|---|---|---|
| Standard | $2 | $6 |
| Cached input (read) | $0.50 | – |
| Batch API | $1.60 | $4.80 |
| Prompts of 200,000+ tokens | $4 | $12 |
Output costs 3.0× the input price, so long replies drive the bill more than long prompts. If your requests share a long fixed prefix, such as a system prompt or tool definitions, caching cuts that part to 25% of the normal input price. Once a single prompt reaches 200,000 tokens, the whole request is billed at the higher long-context rate shown above.
Work out your monthly Grok 4.7 bill in the cost calculatorSee what prompt caching savesSee what the Batch API saves
Examples
How much does a typical Grok 4.7 request cost?
| Workload | Tokens in / out | Requests/day | Per request | Per month |
|---|---|---|---|---|
| Support chatbot50% cached | 1,500 / 400 | 1,000 | $0.00427 | $130.03 |
| RAG app20% cached | 6,000 / 500 | 500 | $0.0132 | $200.75 |
| Coding agent80% cached | 40,000 / 2,000 | 200 | $0.044 | $267.67 |
| Document summariserbatch | 8,000 / 600 | 300 | $0.0157 | $143.08 |
Change any number in the cost calculator.
Context
What is Grok 4.7’s context window and max output?
Grok 4.7 accepts up to 500,000 tokens per request, roughly 375,000 English words or 750 pages. That budget is shared between your prompt and the reply, and no separate cap on the reply is published.
Filling the whole window with one prompt costs about $2.00 at list price, so for repeated long-document work, retrieval (sending only the relevant parts) or prompt caching is usually much cheaper.
Features
What can Grok 4.7 do?
- Image input
- Yes
- Tool / function calling
- Yes
- Reasoning mode
- Yes
- Prompt caching
- Yes
- Structured output
- Yes
- Open weights
- No
- Accepts
- text, image, file
- Knowledge cutoff
- Not published
As declared by the provider’s API. It shows a feature exists, not how well it works.
API
What is the Grok 4.7 API model ID?
- OpenRouter
x-ai/grok-4.7- xAI API
grok-4.7(alias)
xAI lists Grok 4.7 as current. Every Grok model ID, with aliases and snapshots.
xAI
Where does Grok 4.7 sit in xAI’s line-up?
Ranked by blended price (three parts input to one part output, $3 per 1M for Grok 4.7), it is the only current xAI model in this directory. See every xAI model and price
| Model | Input / 1M | Output / 1M | Context | Released |
|---|---|---|---|---|
| Grok 4.7 (this page) | $2 | $6 | 500,000 | 2026-09-21 |
xAI’s current models with a page here, cheapest first. Older and superseded models are listed on the provider page and in the comparison table.
History
Is Grok 4.7 cheaper than Grok 4.6?
The previous model in this line is Grok 4.6, first listed on 2026-08-12. Compared with it, Grok 4.7’s input price is unchanged and its output price is unchanged.
| Model | Input / 1M | Output / 1M | Context | Released |
|---|---|---|---|---|
| Grok 4.6 | $2 | $6 | 500,000 | 2026-08-12 |
| Grok 4.5 | $2 | $6 | 500,000 | 2026-07-08 |
| Grok 4.3 | $1.25 | $2.50 | 1,000,000 | 2026-04-30 |
| Grok 4.20 | $1.25 | $2.50 | 2,000,000 | 2026-03-31 |
Earlier releases with the same name and size in our data, newest first. Dates are when our source first listed each model.
Save
What are cheaper alternatives to Grok 4.7?
- Qwen3.6 35B A3BQwen90% cheaper
- GLM 4.6VZ.ai85% cheaper
- DeepSeek V4.1 FlashDeepSeek83% cheaper
- MiniMax M3MiniMax83% cheaper
- Command A+Cohere80% cheaper
Current models from major providers, one per provider, that keep image input, tool calling, a reasoning mode, a usable context window and output limit. Compared by blended price.
Compare
Which models cost about the same?
- Gemini 4 HydrogenGoogle$1.50 / $7.50
- Pixtral Large 2502Mistral$2 / $6
- Qwen3.8 2.4T A95BQwen$2 / $6
- GLM 5.3 PrimeZ.ai$1.68 / $5.28
- GPT-6.2 SolOpenAI$2 / $10
Current models from other major providers, closest blended price.
Head to head
How does Grok 4.7 compare with GPT-6.1 Sol?
FAQ
Grok 4.7 questions
How much does Grok 4.7 cost?
Grok 4.7 costs $2 per million input tokens and $6 per million output tokens, with cached input at $0.50. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.0054. Use the LLM cost calculator for your own workload.
What is Grok 4.7’s context window?
500,000 tokens, about 375,000 English words or 750 printed pages, shared between your prompt and the reply. No separate limit on the reply is published, so the window is the limit.
Does Grok 4.7 support prompt caching and batch requests?
Yes, cached input is billed at $0.50 per million tokens (25% of the normal input price). A batch API is available at $1.60 input and $4.80 output per million tokens.
What are cheaper alternatives to Grok 4.7?
With the same essentials (image input and tool calling), the cheapest options are Qwen3.6 35B A3B (90% cheaper), GLM 4.6V (85% cheaper), DeepSeek V4.1 Flash (83% cheaper). Cheaper doesn’t mean equivalent, so test them on your own prompts.
What is the API model ID for Grok 4.7?
On OpenRouter it is x-ai/grok-4.7. In xAI’s own API, use grok-4.7; xAI lists the model as current. The Grok model ID list has every alias and snapshot. Pass the ID as the model value in each request.
When was Grok 4.7 released?
Grok 4.7 was first listed on 2026-09-21. It follows Grok 4.6, first listed on 2026-08-12. Release dates here are when our price source first listed each model.
Is Grok 4.7 cheaper than Grok 4.6?
The previous xAI model in the same line is Grok 4.6, first listed on 2026-08-12. Compared with it, Grok 4.7’s input price is unchanged and its output price is unchanged. Prices are only part of the picture, so test the newer model on your own prompts before switching.
Is Grok 4.7 open source?
No, Grok 4.7 is only available through xAI’s API and partners; its weights aren’t published.
Keep exploring