Grok 4.7
xAI's mid-tier model: $2 per million input tokens and $6 per million output tokens, with a 524K-token context window.
| Maker | xAI · official pricing |
|---|---|
| Context window | 524K tokens · up to 524K output |
| Capabilities | tool calling · reasoning · images |
| Note | Price as listed on Amazon Bedrock. |
Prices from LiteLLM's open price list, updated Nov 23, 2026. "Example task": 1M input + 100K output tokens. Check the provider's page before you budget.
Grok 4.7 benchmarks
Gid Bench 47.8, #15 of 20 models. Gid Bench averages 13 public benchmarks in 4 groups. How it is built →
Grok 4.7: Gid Bench 47.8, #15 of 20
xAI · released 2026-09-21 · 12 tests
Grok 4.7 is #15 of 20 on Gid Bench
The models just above and below it, 0 to 100
Grok 4.7 on price against quality
Gid Bench against the API price of an example task (1M input + 100K output tokens)
Source: LMArena leaderboard dataset (CC BY 4.0), Nov 22, 2026.
Grok 4.7 inside coding agents
| Agent | Benchmark | Effort | Tasks solved | Cost of run |
|---|---|---|---|---|
| Grok Build | Terminal-Bench 4.1 | xhigh | 38.8% | $3,683 |
| Grok Build | Terminal-Bench 4.0 | xhigh | 37.6% | $3,683 |
Best run of each agent with this model. Source: Terminal-Bench (tbench.ai). Same model, different agents →
Every test result
| Test | Group | Result | Effort | Source |
|---|---|---|---|---|
| MirrorCode | Coding | 54.4% | xhigh | Epoch AI |
| FrontierSWE v2 | Coding | 29.5% | xhigh | Proximal via Epoch AI |
| WeirdML v3 | Coding | 18.7% | xhigh | Håvard Tveit Ihle via Epoch AI |
| Furniture Assembly | Agents and long tasks | 20.8% | xhigh | Epoch AI |
| APEX-Agents | Agents and long tasks | 70.0% | — | Mercor via Epoch AI |
| FrontierMath, tiers 1-3 | Math and reasoning | 53.0% | xhigh | Epoch AI |
| FrontierMath, tier 4 | Math and reasoning | 17.1% | xhigh | Epoch AI |
| OTIS Mock AIME | Math and reasoning | 98.1% | xhigh | Epoch AI |
| Chess Puzzles | Math and reasoning | 41.0% | xhigh | Epoch AI |
| Mystery Game Puzzles | Math and reasoning | 29.0% | xhigh | Epoch AI |
| GPQA Diamond | Knowledge | 92.7% | xhigh | Epoch AI |
| SimpleQA Verified | Knowledge | 56.0% | xhigh | Epoch AI |
AI agents that can use Grok 4.7
These agents list xAI as a model provider in their documentation.
| # | Agent | Gid Score | Downloads 7d | 7d | 30d | Stars | Latest release | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 |
OpenCodeAnomaly (SST team) |
79 | 3.5M | down 10.1% | up 19.3% | 229K+252/day | 2.3.25d ago | ||||
| 1 |
LangChainLangChain |
79 | 41.6M | up 4.9% | down 3.0% | 150K+63/day | 1.5.25d ago | ||||
| 5 |
|
74 | — | — | — | — | — | ||||
| 6 |
CursorAnysphere (owned by SpaceX) |
74 | — | — | — | 33.4K+4/day | — | ||||
| 7 |
PiEarendil Inc. (created by Mario Zechner) |
72 | 7.4M | up 16.9% | up 29.6% | 123K+177/day | 1.6.03d ago | ||||
| 8 |
OpenClawOpenClaw Foundation (nonprofit); created by Peter Steinberger |
70 | 2.9M | down 5.4% | down 28.8% | 395K+122/day | 2026.11.7today | ||||
| 10 |
ZedZed Industries |
67 | — | — | — | 95.5K+70/day | 1.29.33d ago | ||||
| 3 |
AI SDKVercel |
67 | 48.5M | up 6.0% | up 28.0% | 28.1K+21/day | 6.0.336yesterday | ||||
| 6 |
MastraMastra |
63 | 4M | up 17.1% | up 36.3% | 29.8K+33/day | 1.84.05d ago | ||||
| 22 |
WarpWarp |
57 | — | — | — | 66.1K+16/day | 0.2026.06.03.…5mo ago | ||||
| 12 |
AgentScopeAlibaba (Tongyi Lab) |
55 | 111K | down 23.6% | up 194.1% | 36.5K+65/day | 2.0.127d ago | ||||
| 31 |
Oh My PiStencil Labs (Can Bölük) |
53 | 291K | down 1.6% | up 8.0% | 39.7K+87/day | 19.1.1today | ||||
| 34 |
OrcaStably |
52 | — | — | — | 133K+1,074/day | 1.4.271yesterday | ||||
| 15 |
Pydantic AIPydantic |
52 | 1.7M | up 10.0% | up 11.1% | 21.3K+17/day | 2.71.04d ago | ||||
| 37 |
Kilo CodeKilo Code (Anaconda) |
51 | 48.4K | down 24.7% | up 45.5% | 28.1K+17/day | 7.8.323d ago | ||||
| 47 |
GooseBlock (now Agentic AI Foundation) |
49 | — | — | — | 56.9K+36/day | 1.60.23d ago | ||||
| 10 |
HeadroomHeadroom Labs |
49 | 117K | down 7.4% | down 6.3% | 80.6K+122/day | 0.45.0yesterday | ||||
| 50 |
AiderAider-AI (Paul Gauthier) |
48 | 87.8K | down 24.6% | up 37.8% | 50.2K+16/day | 0.86.015mo ago | ||||
| 53 |
JunieJetBrains |
48 | 679 | down 23.7% | down 19.1% | 572+2/day | 4198.1yesterday | ||||
| 67 |
Grok BuildxAI (SpaceXAI) |
44 | 105K | up 2.0% | up 23.4% | 27.8K+13/day | — | ||||
Agents that take any provider
These work with OpenRouter or any OpenAI-compatible endpoint, so they can usually run Grok 4.7 too.
OpenAI Codex LangGraph LiteLLM Dify Hermes Agent OpenAI Agents SDK Browser Use Cloudflare Agents SDK Deep Agents Cline Agent Development Kit (ADK) DSPy GitHub Copilot CLI Open Code Review CopilotKit Paperclip Qwen Code Crawl4AI smolagents e2e eve Agno CrewAI AnythingLLM
Cheaper mid-tier alternatives
Gemini 3.8 Flash · $1.12 Kimi K2.7 Code · $1.35 DeepSeek V4 Pro · $1.72 GLM-5.3 · $1.84