Released model
xAI / grok-4-7
Last verified: Nov 30, 2026
Grok 4.7
xAI
Released Sep 21, 2026
Proprietary
500K context
Grok 4.7 is xAI's flagship coding and knowledge-work model released September 21, 2026. Priced at $2/$6 per 1M tokens under 200K prompts ($0.50 cached; $4/$12 above 200K) with a 500K-token context window, it scores 71.0% on DeepSWE v1.1, 46.3% on CursorBench 4.0 and 1695 Elo on GDPval.
What changed
- Trained on a larger base model than Grok 4.6 with extended RL for multi-hour coding self-verification, keeping the same $2/$6 base token rate.
- Scores 71.0% on DeepSWE v1.1 (high effort), 46.3% on CursorBench 4.0, 37.6% on Terminal-Bench 4.0 and 19.6% on Harvey Legal Agent Benchmark.
- Offers a fast serving variant running at 2× output speed for 2× token price ($4/$12).
Where you can use Grok 4.7
| xAI API & Cloud | Model ID grok-4.7 on xAI API, AWS Bedrock, Oracle Cloud, Cursor and OpenRouter. |
|---|---|
| Fast Variant | 2× output throughput at 2× standard token pricing. |
How Grok 4.7 compares
| Metric | Grok 4.7 | GPT-6.2 Sol | Claude Sonnet 5.5 | Gemini 4 Carbon |
|---|---|---|---|---|
| Release date | Sep 21, 2026 | Nov 17, 2026 | Sep 28, 2026 | Nov 10, 2026 |
| Context window | 500K | 1.05M | 1M | 1M |
| Parameters | Undisclosed | Undisclosed | Undisclosed | Undisclosed |
| Key benchmark | DeepSWE v1.1 (high) 71% | Terminal-Bench 4.0 (AA, max) 60.1% | Terminal-Bench 4.0 70.6% | Terminal-Bench 4.0 (AA, high) 65.2% |
| API (in / out) | $2 / $6/M | $2 / $10/M | $2 / $10/M | $4 / $20/M |
API pricing & quick cost estimate
Input
$2 / 1M tokens
Output
$6 / 1M tokens
Cached input
$0.50 / 1M
Quick monthly cost estimator (Grok 4.7)
Compare all models →
Estimated monthly API spend:
$32/mo
(Input $20 + Output $12)
Where to run Grok 4.7
Official Direct
xAI API
Official direct rates ($2 / $6 per 1M). Best for enterprise SLAs and prompt caching.
Open official docs ↗
Unified API Router
OpenRouter
One API key for Grok 4.7 plus 400+ models with instant fallback routing (x-ai/grok-4.7).
View on OpenRouter ↗
Benchmarks
Where Grok 4.7 ranks
AA Intelligence Index · #13 of 21 tracked
···
#13
Grok 4.7 This model
35.4
$2 / $6
How to use Grok 4.7
- Create an API key in the xAI developer console.
- Verify current pricing & rate limits: https://docs.x.ai/developers/models ↗
curl https://api.x.ai/v1/chat/completions \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "grok-4.7", "messages": [{"role": "user", "content": "Write a migration script"}]}'
API & runtime notes
- Prompt-length pricing tier: prompts up to 200K tokens cost $2 input / $6 output / $0.50 cached; prompts over 200K tokens double to $4 / $12 / $1.00.
- Context window is 500K tokens — half the 1M window of GPT-6.2, Claude 5.5 and Gemini 4.
What Grok 4.7 can do
- Strong legal and clinical professional reasoning (19.6% Harvey Legal Agent Benchmark, 56.7% HealthBench Professional).
- 40% cheaper output tokens ($6/M vs $10/M) than GPT-6.2 Sol and Claude Sonnet 5.5 on prompts under 200K tokens.
- Adjustable reasoning effort (low, medium, high, xhigh) with 500K context and up to 450K decode output.
Technical specifications
Release date
Sep 21, 2026
Access
Proprietary
Parameters
Undisclosed
Context window
500K
Output speed
~75 tok/s
Modality
text+image+file
Grok 4.7 FAQ
How much does Grok 4.7 cost?
$2 input / $6 output ($0.50 cached) per 1M tokens for prompts under 200K tokens, doubling to $4/$12 ($1.00 cached) above 200K tokens.
Grok 4.7 vs Claude Sonnet 5.5?
Grok 4.7 has cheaper output tokens ($6 vs $10/M under 200K) and strong legal/domain scores, while Claude Sonnet 5.5 offers 2× larger context (1M vs 500K), cheaper caching ($0.10 vs $0.50/M) and higher Terminal-Bench 4.0 (70.6% vs 37.6%) and CursorBench 4.0 (55.5% vs 46.3%).