xAI · AI model
Grok 4.7
xAI's flagship text model for coding, agentic tasks and knowledge work. Text and image input, text output, 500K-token context window and four reasoning effort levels; $2/$6 per 1M input/output tokens below 200K prompt tokens.
Last verified Available 14 sources
Key specs
- Provider
- xAI
- Family
- Grok 4
- API identifier
- grok-4.7
- Availability
- Available
- Release date
- 2026-09-21
- License
- Proprietary
- Context window
- 500,000 tokens
- Knowledge cutoff
- May 2026
- API access
- Yes
- Consumer app
- Yes
Capabilities
Inputs
- Text input Yes
- Image input Yes JPG/JPEG or PNG, max 20 MiB per image, no limit on image count (models page)
- Audio input No Model page lists modalities as text and image input, text output
- Video input No Model page lists modalities as text and image input, text output
- File input Partial Documents (PDF, text, CSV, JSON, code, etc., max 512 MB per file) can be attached; the API then runs the server-side attachment_search tool over them (billed per invocation). The Files docs list this model among the agentic tool-calling models that file attachments require.
Outputs
- Text output Yes
- Image output No Text-only output per model page
- Audio output No Text-only output per model page
Features
- Reasoning Native Reasoning cannot be disabled; effort low/medium/high (default)/xhigh
- Tool calling Yes
- Web search Yes Developer guide lists function calling, web search, X search and code execution
"Unknown" means we have not verified this capability yet; it does not mean the model lacks it.
Pricing
Estimate your monthly cost →| Dimension | Tier | Price | Since | Verified | Source |
|---|---|---|---|---|---|
| Input tokens | base | $2.00 per 1M tokens | 2026-10-12 | 2026-10-25 | API Pricing US regional endpoint (us.api.x.ai) billed at 1.1x; Priority Processing at 2x (pricing page). |
| ≥ 200K prompt tokens (≥ 200K input tokens) | $4.00 per 1M tokens | 2026-10-12 | 2026-10-25 | API Pricing Long-context rate: once a request's prompt reaches 200K tokens, all tokens in the request are billed at this rate (pricing page). | |
| Cached input tokens | base | $0.50 per 1M tokens | 2026-10-12 | 2026-10-25 | API Pricing |
| ≥ 200K prompt tokens (≥ 200K input tokens) | $1.00 per 1M tokens | 2026-10-12 | 2026-10-25 | API Pricing Long-context rate: once a request's prompt reaches 200K tokens, all tokens in the request are billed at this rate (pricing page). | |
| Output tokens | base | $6.00 per 1M tokens | 2026-10-12 | 2026-10-25 | API Pricing |
| ≥ 200K prompt tokens (≥ 200K input tokens) | $12.00 per 1M tokens | 2026-10-12 | 2026-10-25 | API Pricing Long-context rate: once a request's prompt reaches 200K tokens, all tokens in the request are billed at this rate (pricing page). | |
| Batch input tokens | base | $1.60 per 1M tokens | 2026-10-25 | 2026-10-25 | API Pricing Batch API: 20% off standard rates for this model (pricing page and model page); the discount also applies to cached and reasoning tokens. Model page: Batch API supported in us-east-1 and us-west-2. |
| ≥ 200K prompt tokens (≥ 200K input tokens) | $3.20 per 1M tokens | 2026-10-25 | 2026-10-25 | API Pricing Batch API: 20% off standard rates for this model (pricing page and model page); the discount also applies to cached and reasoning tokens. Model page: Batch API supported in us-east-1 and us-west-2. Long-context rate. | |
| Batch output tokens | base | $4.80 per 1M tokens | 2026-10-25 | 2026-10-25 | API Pricing Batch API: 20% off standard rates for this model (pricing page and model page); the discount also applies to cached and reasoning tokens. Model page: Batch API supported in us-east-1 and us-west-2. |
| ≥ 200K prompt tokens (≥ 200K input tokens) | $9.60 per 1M tokens | 2026-10-25 | 2026-10-25 | API Pricing Batch API: 20% off standard rates for this model (pricing page and model page); the discount also applies to cached and reasoning tokens. Model page: Batch API supported in us-east-1 and us-west-2. Long-context rate. |
Prices are shown in the currency the provider publishes; we never convert currencies.
Price history (10 entries)
| Dimension | Tier | Price | From | Until |
|---|---|---|---|---|
| Input tokens | base | $2.00 per 1M tokens | 2026-10-12 | current |
| Input tokens | ≥ 200K prompt tokens (≥ 200K input tokens) | $4.00 per 1M tokens | 2026-10-12 | current |
| Cached input tokens | base | $0.50 per 1M tokens | 2026-10-12 | current |
| Cached input tokens | ≥ 200K prompt tokens (≥ 200K input tokens) | $1.00 per 1M tokens | 2026-10-12 | current |
| Output tokens | base | $6.00 per 1M tokens | 2026-10-12 | current |
| Output tokens | ≥ 200K prompt tokens (≥ 200K input tokens) | $12.00 per 1M tokens | 2026-10-12 | current |
| Batch input tokens | base | $1.60 per 1M tokens | 2026-10-25 | current |
| Batch input tokens | ≥ 200K prompt tokens (≥ 200K input tokens) | $3.20 per 1M tokens | 2026-10-25 | current |
| Batch output tokens | base | $4.80 per 1M tokens | 2026-10-25 | current |
| Batch output tokens | ≥ 200K prompt tokens (≥ 200K input tokens) | $9.60 per 1M tokens | 2026-10-25 | current |
Benchmarks
| Benchmark | Setting | Score | Reported by | Measured | Verified | Source |
|---|---|---|---|---|---|---|
| DeepSWE v1.1 % resolved (pass@1), higher is better | v1.1; high effort; mini-SWE-agent harness | 71 % | Self-reported | — | 2026-10-25 | Model Card: Grok 4.7 (Revision 2026-09-21) |
| FrontierMath Tiers 1-3 (v2) accuracy %, higher is better | Tiers 1-3 v2; xhigh effort; Epoch-administered | 53 % | Third party | — | 2026-10-25 | FrontierMath Tiers 1-3 (v2) leaderboard (Epoch AI) |
| GDPval-AA v2.1 Elo, higher is better | GDPval, version not stated; xhigh effort | 1,695 Elo | Self-reported | — | 2026-10-25 | Introducing Grok 4.7 |
| v2.1; high effort | 1,707 Elo | Third party | 2026-10-25 | 2026-10-25 | GDPval-AA v2.1 Leaderboard (Artificial Analysis) | |
| v2.1; low effort | 1,583 Elo | Third party | 2026-10-25 | 2026-10-25 | GDPval-AA v2.1 Leaderboard (Artificial Analysis) | |
| v2.1; xhigh effort | 1,714 Elo | Third party | 2026-10-25 | 2026-10-25 | GDPval-AA v2.1 Leaderboard (Artificial Analysis) | |
| Terminal-Bench 4.0 % tasks resolved, higher is better | xhigh effort | 37.6 % | Self-reported | — | 2026-10-25 | Introducing Grok 4.7 |
| xhigh effort; Grok Build harness | 37.6 % | Third party | — | 2026-10-25 | Terminal-Bench 4.0 leaderboard (tbench.ai) | |
| Text Arena Arena score, higher is better | Overall; style control on; xhigh effort | 1,441 | Third party | 2026-10-23 | 2026-10-25 | Text Arena leaderboard (Arena) |
The official leaderboard uses mini-swe-agent for all models and shows whole-number percentages with margins of about ±1 to ±6 points. Providers often report scores from their own scaffolds or effort settings; DeepSeek reports 65.5% to 74.2% for the same model depending on the scaffold. DeepSWE v1 scores are not comparable with v1.1. With only 113 tasks, small differences are within noise.
FrontierMath was developed with funding from OpenAI, which has exclusive access to a subset of the problems. Scores from v1 and from Tier 4 (a separate 43-problem expansion set) are not comparable with Tiers 1-3 (v2). The best models score about 94%, so the benchmark separates mid-size models better than it separates frontier models. Epoch's numbers come from its own harness (Python tool, 1M-token limit), which can differ from providers' internal setups. Margins are about ±1.4 to ±2.6 points.
Elo is a relative rating: values change as models are added and the scale is re-anchored, so always store the date a rating was read. For example, Anthropic's launch page gives 1846 for Claude Opus 5.5, while the leaderboard on 2026-10-12 shows 1866 (Max, Default Fallback). Earlier versions (Google cites "GDPVal-AA v2") are not comparable. Judging is done by an LLM, not by human experts. Anthropic models are listed with "Default Fallback", meaning refused steps are routed to a fallback model. AA-Briefcase and GDP.pdf are separate evaluations.
Scores depend heavily on the agent harness (for example Claude Code, Codex, Grok Build or mini-SWE-agent) and on the reasoning effort, so the same model appears several times on the leaderboard. Leaderboard rows are often submitted by the organisation that builds the agent. Providers' own runs can differ from the leaderboard: Anthropic reports 66.4% for Claude Opus 5.5 at max effort, while the leaderboard lists 64.8% ± 3.1%. Versions 2.0, 2.1 and 3.0 and Artificial Analysis' "Terminal-Bench Hard" use different task sets and are not comparable with 4.0. Margins are about ±3 points.
Scores measure voter preference, which can be influenced by answer style and length. The leaderboard offers a style-control adjustment, so record which view was used. Scores shift with every update, so a value is only meaningful together with its leaderboard date. Entries marked "Preliminary" or with few votes have wide confidence intervals. The same model can appear several times with different reasoning-effort suffixes (for example -high or -max). Category views (Coding, Math, Creative Writing and others) are different rankings from Overall.
One row per result, without rank numbers: each result was measured under its own setting (effort level, harness, tools, test version), as stated by the source, and scores compare only within the same setting. Self-reported results come from the provider and have not been reproduced independently.
Rankings
- #5 of 39 in Best AI for business as of 2026-10-26
- #12 of 20 in Best AI for coding as of 2026-10-27
- #21 of 26 in Best AI for students as of 2026-10-26
- #29 of 42 in Best AI API as of 2026-10-26
Derived from our published ranking snapshots; each ranking explains its criteria and weights.
Compare Grok 4.7
Guides
- AI token pricing explained: input, output, cached and batch rates
- Reasoning models explained: thinking modes, effort and cost
- Multimodal AI explained: image, audio, video and file inputs, and what they cost
- Context windows explained: limits, long-context pricing and recall
- How to choose an AI model: a practical decision framework
About Grok 4.7
Grok 4.7 was released on September 21, 2026 and is the model xAI's docs recommend for code and chat. It always reasons, with effort configurable as low, medium, high (default) or xhigh, and on the Responses API it always returns encrypted reasoning content. xAI's announcement states it uses a new, larger base model than Grok 4.6. The Grok release notes of October 3, 2026 state that it powers Expert mode on grok.com and Fast mode for paid subscribers; grok.com also names it for Heavy mode.
Strengths and weaknesses
Strengths
- Four configurable reasoning effort levels (low, medium, high, xhigh)
- 500K-token context window with text and image input
- Batch API supported at 20% off standard rates
- Function calling, structured outputs and server-side web search, X search and code execution documented
- Also served on the US regional endpoint (us.api.x.ai), which keeps inference in the United States, at 1.1x token rates
Weaknesses
- 500K-token context window, half the 1M of grok-4.3 and the grok-4.20 models
- Higher token prices than grok-4.3 and grok-4.20 ($2.00/$6.00 vs $1.25/$2.50 per 1M input/output tokens)
Sources
- Grok 4.7
- Release Notes
- Grok Models & Pricing
- Model Card: Grok 4.7 (Revision 2026-09-21)
- Files Overview
- Reasoning
- Grok 4.7 Developer Guide
- API Pricing
- Terminal-Bench
- Introducing Grok 4.7
- FrontierMath Tiers 1-3 (v2) leaderboard (Epoch AI)
- GDPval-AA v2.1 Leaderboard (Artificial Analysis)
- Text Arena leaderboard (Arena)
- Terminal-Bench 4.0 leaderboard (tbench.ai)
Last verified Page updated 2026-10-27