Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and managing long context, and it improves on its predecessor at professional knowledge work such as drafting documents and presentations.
The model was trained with a longer reinforcement learning run weighted toward problems that take many hours to complete, and natively understands the Grok Bot harness for conversational tasks. It ships with a new safeguard stack that pairs strong jailbreak resistance with low refusal rates for legitimate cybersecurity and biology work. SpaceXAI's reported benchmark results use the xhigh reasoning effort.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $2.00 | $6.00 | $0.50 | 2.55s | 64 tok/s | ||
| $2.00 | $6.00 | $0.50 | 4.35s | 55 tok/s | ||
| $2.00 | $6.00 | $0.50 | 2.09s | 58 tok/s | ||
Not used in Standard routing:Why these endpoints are not used | ||||||
| $2.20 | $6.60 | $0.55 | 1.27s | 74 tok/s | ||
Priority | $4.00 | $12.00 | $1.00 | 1.24s | 61 tok/s | |
Priority | $4.00 | $12.00 | $1.00 | 1.29s | 63 tok/s | |
- Input $2.00 / Output $6.0064 tok/s100.00% uptime
- Input $2.00 / Output $6.0055 tok/s99.97% uptime
- Input $2.00 / Output $6.0058 tok/s97.52% uptime
- Not used in Standard routing:Why these endpoints are not used
- Input $2.20 / Output $6.6074 tok/s100.00% uptime
- Input $4.00 / Output $12.0061 tok/s100.00% uptimePriority
- Input $4.00 / Output $12.0063 tok/s100.00% uptimePriority
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
Grok 4.7 — Price history
| $0.738 | $6.18 | 88.0% | 31.8% | ||
| $0.805 | $6.55 | 94.9% | 67.7% | ||
| $0.986 | $6.02 | 74.7% | 0.5% | ||
Not used in Standard routing:Why these endpoints are not used | |||||
Priority | $1.146 | $15.75 | 95.1% | 0.0% | |
| $1.186 | $6.70 | 74.5% | 0.0% | ||
Priority | $1.220 | $12.00 | 92.7% | 0.0% | |
- Effective in $0.738 / Effective out $6.18Token share31.8%
- Effective in $0.805 / Effective out $6.55Token share67.7%
- Effective in $0.986 / Effective out $6.02Token share0.5%
- Not used in Standard routing:Why these endpoints are not used
- Effective in $1.146 / Effective out $15.75PriorityToken share0.0%
- Effective in $1.186 / Effective out $6.70Token share0.0%
- Effective in $1.220 / Effective out $12.00PriorityToken share0.0%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | Grok 4.7 (Low) Intelligence Index | 31.1 |
| Artificial Analysis | Grok 4.7 (Low) HLE | 39.2% |
| Artificial Analysis | Grok 4.7 (Low) AA-LCR | 80.0% |
| Artificial Analysis | Grok 4.7 (Low) GDPval-AA | 54.6% |
| Artificial Analysis | Grok 4.7 (Low) CritPt | 13.4% |
| Artificial Analysis | Grok 4.7 (Low) SciCode | 54.9% |
| Artificial Analysis | Grok 4.7 (Low) Terminal-Bench 4.0 | 16.2% |
| Artificial Analysis | Grok 4.7 (Low) AA-Omniscience Accuracy | 45.7% |
| Artificial Analysis | Grok 4.7 (Low) AA-Omniscience Non-Hallucination Rate | 66.2% |
| Artificial Analysis | Grok 4.7 (High) Intelligence Index | 35.2 |
| Artificial Analysis | Grok 4.7 (High) HLE | 42.3% |
| Artificial Analysis | Grok 4.7 (High) AA-LCR | 77.0% |
| Artificial Analysis | Grok 4.7 (High) GDPval-AA | 60.8% |
| Artificial Analysis | Grok 4.7 (High) CritPt | 18.0% |
| Artificial Analysis | Grok 4.7 (High) SciCode | 57.8% |
| Artificial Analysis | Grok 4.7 (High) Terminal-Bench 4.0 | 24.7% |
| Artificial Analysis | Grok 4.7 (High) AA-Omniscience Accuracy | 41.8% |
| Artificial Analysis | Grok 4.7 (High) AA-Omniscience Non-Hallucination Rate | 79.8% |
| Artificial Analysis | Grok 4.7 (Xhigh) Intelligence Index | 35.5 |
| Artificial Analysis | Grok 4.7 (Xhigh) HLE | 43.1% |
| Artificial Analysis | Grok 4.7 (Xhigh) AA-LCR | 76.7% |
| Artificial Analysis | Grok 4.7 (Xhigh) GDPval-AA | 60.8% |
| Artificial Analysis | Grok 4.7 (Xhigh) CritPt | 17.7% |
| Artificial Analysis | Grok 4.7 (Xhigh) SciCode | 57.4% |
| Artificial Analysis | Grok 4.7 (Xhigh) Terminal-Bench 4.0 | 25.8% |
| Artificial Analysis | Grok 4.7 (Xhigh) AA-Omniscience Accuracy | 42.7% |
| Artificial Analysis | Grok 4.7 (Xhigh) AA-Omniscience Non-Hallucination Rate | 80.0% |
| Design Arena | Grok 4.7 Agents Arena Blender3d Elo | 1163 |
| Design Arena | Grok 4.7 Agents Arena Codetovideo Elo | 1095 |
| Design Arena | Grok 4.7 Agents Arena Mobile Apps Elo | 1245 |
| Design Arena | Grok 4.7 Agents Arena Pdf Elo | 1185 |
| Design Arena | Grok 4.7 Agents Arena Spreadsheet Elo | 1425 |
| Design Arena | Grok 4.7 Models Arena 3D Elo | 1251 |
| Design Arena | Grok 4.7 Models Arena Code Categories Elo | 1265 |
| Design Arena | Grok 4.7 Models Arena Data Visualization Elo | 1222 |
| Design Arena | Grok 4.7 Models Arena Game Development Elo | 1306 |
| Design Arena | Grok 4.7 Models Arena SVG Elo | 1273 |
| Design Arena | Grok 4.7 Models Arena UI Component Elo | 1274 |
| Design Arena | Grok 4.7 Models Arena Website Elo | 1243 |
| Vals AI | Grok 4.7 Access to Justice Benchmark | 73.7% |
| Vals AI | Grok 4.7 BioMysteryBench | 69.3% |
| Vals AI | Grok 4.7 Code Migration v1.1 | 53.2% |
| Vals AI | Grok 4.7 CyberBench v1.1 | 69.5% |
| Vals AI | Grok 4.7 CyberOffense | 42.3% |
| Vals AI | Grok 4.7 EMB v1.1 | 71.5% |
| Vals AI | Grok 4.7 Finance Agent v2.1 | 60.6% |
| Vals AI | Grok 4.7 Vals Finance Index | 58.8% |
| Vals AI | Grok 4.7 Financial Coaching Bench | 74.1% |
| Vals AI | Grok 4.7 HLAB-Vals-1.1 | 18.3% |
| Vals AI | Grok 4.7 Immigration | 68.0% |
| Vals AI | Grok 4.7 IOI | 57.7% |
| Vals AI | Grok 4.7 LegalBench | 84.4% |
| Vals AI | Grok 4.7 Vals Legal Index | 72.7% |
| Vals AI | Grok 4.7 Legal Research Bench | 47.1% |
| Vals AI | Grok 4.7 MedCode | 49.6% |
| Vals AI | Grok 4.7 MedScribe | 89.4% |
| Vals AI | Grok 4.7 MysteryMechanism | 25.2% |
| Vals AI | Grok 4.7 ProgramBench | 0.5% |
| Vals AI | Grok 4.7 ProofBench v1.1 | 26.0% |
| Vals AI | Grok 4.7 Public Benefits Bench v1.1 | 65.6% |
| Vals AI | Grok 4.7 Robo-bench | 0.2% |
| Vals AI | Grok 4.7 Vals RSI Index | 20.2% |
| Vals AI | Grok 4.7 SAGE | 88.7% |
| Vals AI | Grok 4.7 Vals Science Index | 34.8% |
| Vals AI | Grok 4.7 SRE Bench | 3.8% |
| Vals AI | Grok 4.7 SWE-bench Multimodal | 42.9% |
| Vals AI | Grok 4.7 Tax Agent Bench | 35.8% |
| Vals AI | Grok 4.7 Terminal-Bench 4.0 | 28.8% |
| Vals AI | Grok 4.7 Terminal-Bench-Science | 10.0% |
| Vals AI | Grok 4.7 Vals Index | 58.6% |
| Vals AI | Grok 4.7 Vibe Code Bench v1.1 | 86.2% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Not currently available through EU in-region routing. In-region routing docs
Documentation
Guides, cookbooks, blog posts, and tools for building with SpaceXAI: Grok 4.7 on OpenRouter.
Frequently asked questions
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and managing long context, and it improves on its predecessor at professional knowledge work such as drafting documents and presentations.
The Grok 4.7 documentation on OpenRouter includes the How to Benchmark LLMs blog post and the How to Stop an AI Agent Stuck in an Infinite Loop blog post. The quickstart covers API keys and your first request, and the API reference lists every parameter.
Grok 4.7 costs $2.00/M input tokens and $6.00/M output tokens, with separate rates for Cache Read at $0.50/M tokens.
Grok 4.7 has a 500,000 token context window.
Yes. Grok 4.7 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
Grok 4.7 accepts text, images, and files such as PDFs as input and returns text.
Grok 4.7 is served by 2 providers on OpenRouter: Amazon Bedrock and SpaceXAI. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
Grok 4.7 was released on September 21, 2026.