Skip to content
Artificial intelligence

Grok 4.7: the technical guide to benchmarks, API, pricing and how it compares

Grok 4.7 is xAI's new flagship for coding, agentic tasks and knowledge work: a bigger model at the same price as Grok 4.6. It launched on September 21, 2026 and costs $2 per million input tokens and $6 per million output tokens, a fifth of Claude Fable 5.1's input price.

Grok 4.7 article cover: a 500,000 token context window, 71.0% on DeepSWE v1.1 and $2 and $6 per million tokens

This guide covers the specs, what changed from Grok 4.6, benchmarks, an API example, the safeguards, pricing and how it stacks up against the competition.

01What is Grok 4.7

Grok 4.7 does not build on Grok 4.6's base; it runs on a new, larger base model. The developer, now operating as SpaceXAI (formerly xAI), lists four main changes. (MarkTechPost)

  1. A new, larger base model instead of the base carried over from Grok 4.6.
  2. Longer reinforcement learning (RL) focused on tasks that take many hours.
  3. Better self-checking and long-context work: the model verifies its own work more carefully.
  4. Native support for the Grok Bot environment for conversational and knowledge work.

According to Elon Musk, Grok 4.7 has 2.1 trillion parameters, 40% more than Grok 4.6 at 1.5 trillion. That comes from a post on X, not from official technical documentation. (Basenor)

On September 23, Musk posted on X that Grok 4.7 has been climbing AI model leaderboards since launch; Basenor attributes this to post-launch optimizations. Musk did not share specific rankings or benchmarks. (Basenor)

02The Grok family and xAI products

Grok 4.7 replaces Grok 4.6 as the main model and is the default model in the Grok Build tool.

Model / productReleasedWhat it is
Grok 4.7September 21, 2026Flagship model for code, agents and knowledge work
Grok 4.7 FastSeptember 21, 2026The same model on faster infrastructure, only in Cursor and Grok Build
Grok 4.6August 12, 2026Previous generation, priced at $2 / $6
Grok Buildn/axAI's coding tool; Grok 4.7 is the default
Grok Bot for EnterpriseSeptember 2026Business agent with a persistent architecture
Sources: MarkTechPost, Local AI Zone, The Soo Group

Grok Bot for Enterprise is free for Grok and Cursor business customers. (The Soo Group)

03Grok 4.7 technical specifications

Grok 4.7 has a 500,000 token context window, text and image input and four reasoning levels.

SpecValue
DeveloperSpaceXAI (formerly xAI)
API model IDgrok-4.7 (no aliases)
ReleaseSeptember 21, 2026
PredecessorGrok 4.6
Context window500,000 tokens
Max outputNo fixed text limit (OpenRouter lists 450,000)
Knowledge cutoffMay 2026
Input / outputText and images / text
ReasoningRequired; low, medium, high (default), xhigh
ToolsFunction calling, web search, X search, code execution
Structured outputsYes
APIResponses API, Chat Completions
Batch APINot supported
WeightsClosed (hosted API only)
Sources: MarkTechPost, iWeaver, OmniaKey, Digital Applied

Grok 4.7 vs Grok 4.6

BenchmarkGrok 4.6Grok 4.7Change
Terminal-Bench 4.020.3%37.6%+17.3 pts
EEBench53.0%64.0%+11.0 pts
DeepSWE v1.165.2%71.0%+5.8 pts
CursorBench 4.040.4%46.3%+5.9 pts
HealthBench Professional48.5%56.7%+8.2 pts
Harvey Legal Agent15.8%19.6%+3.8 pts
AA Briefcase v1.115461657+111
GDPval (Elo)16051695+90
Source: xAI, vendor figures; Grok 4.7 at xhigh (DeepSWE at high), Grok 4.6 at high. Some sites list 38.0% for Terminal-Bench 4.0; the xAI announcement says 37.6%.

Grok 4.7 improved on every row, most of all on terminal tasks.

04How to use Grok 4.7

Grok 4.7 is available in the Grok API, in Cursor on all plans, in Grok Build (as the default model) and through OpenRouter, Vercel and Cloudflare. (MarkTechPost)

Through the xAI API

A Python example with the official xai_sdk, following MarkTechPost:

python
import os
from xai_sdk import Client
from xai_sdk.chat import user

client = Client(api_key=os.getenv("XAI_API_KEY"))
chat = client.chat.create(model="grok-4.7")
chat.append(user("Explain the structure of this repository."))
print(chat.sample().content)

The model also supports the Responses API and Chat Completions, so it works with OpenAI-compatible libraries. Check the exact parameters (reasoning level, tools) in the xAI documentation.

Practical API tips

  • Caching: xAI recommends setting prompt_cache_key in the Responses API for reliable cache hits (in Chat Completions, use the x-grok-conv-id header); cached input costs $0.50 instead of $2.
  • Data in the U.S.: the regional endpoint https://us.api.x.ai/v1 keeps inference in the U.S. for a 10% surcharge.
  • Speed: Grok 4.7 Fast (2x faster output, 2x the price for prompts under 200K tokens) is only in Cursor and Grok Build, not in the public API.

Sources: MarkTechPost, xAI: pricing

05Grok 4.7 benchmarks and how it compares

In xAI's table, Grok 4.7 leads on domain agent tests (EEBench, legal) and edges out Claude Fable 5.1 on DeepSWE v1.1. On CursorBench and terminal tasks, though, it stays behind Fable 5.1. The table from xAI's announcement:

BenchmarkGrok 4.7 (xhigh)GPT-5.6 Sol (max)Claude Fable 5.1 (max)
CursorBench 4.046.3%41.7%51.8%
DeepSWE v1.171.0% (high)72.7%70.0%
EEBench64.0%39.4%56.4%
AA Briefcase v1.1165714871678
Terminal-Bench 4.037.6%37.3%57.9% (see note)
Harvey Legal Agent19.6%2.5%6.7%
HealthBench Professional56.7%60.5%62.1%
GDPval (Elo)1695n/a1735 (GPT-6 Astra: 1542)
Price input / output ($ per 1M)2 / 64 / 2010 / 50
Source: xAI, vendor figures. Anthropic itself reports 55.8% for Fable 5.1 on Terminal-Bench 4.0 (Anthropic); both are vendor measurements under different conditions. OpenAI's table lists the same 57.9% for GPT-6 Astra. On DeepSWE v1.1, OpenAI also has a different number for Fable 5.1 (67.4%), see our GPT-6 Astra guide.
Terminal-Bench 4.0 in xAI's table
  • Claude Fable 5.157.9%
  • Grok 4.737.6%
  • GPT-5.6 Sol37.3%
  • Grok 4.620.3%

xAI figures, Grok 4.7 at xhigh; Anthropic itself reports 55.8% for Fable 5.1. Source: xAI

Fable 5.1 leads on 4 of 7 benchmarks, but it costs 5x more on input and about 8.3x more on output. On the cost per task chart for CursorBench 4.0, xAI places Grok 4.7 on the best price-to-performance frontier. (MarkTechPost) For more on the competitors, see our Claude Fable 5.1 guide, GPT-6 Astra guide, Gemini 3.8 Flash guide and Muse Spark 1.3 deep dive.

xAI left GPT-6 Astra out of its main table. In a side chart of the same announcement, though, Astra leads EEBench with 69.3% ahead of Grok 4.7 (64%), while trailing on GDPval (1542 vs 1695). (xAI)

EEBench: domain agent tasks
  • GPT-6 Astra69.3%
  • Grok 4.764.0%
  • Claude Fable 5.156.4%
  • Grok 4.653.0%
  • GPT-5.6 Sol39.4%

GPT-6 Astra from a side chart in the same announcement, Grok 4.6 at high. Source: xAI

Independent evaluation

On the Artificial Analysis Intelligence Index v4.3, Grok 4.7 scores 46, tied with Xiaomi's MiMo-V2.6-Pro and just 2 points above Grok 4.6 (44). For comparison: Claude Opus 5.5 scores 58, and Claude Fable 5.1 and GPT-6 Astra score 53. (Artificial Analysis, as of September 26, 2026) TeamDay recommends Grok 4.7 as the best value for coding. (TeamDay)

Artificial Analysis Intelligence Index v4.3
  • Claude Opus 5.558
  • Claude Fable 5.153
  • GPT-6 Astra53
  • Grok 4.746
  • Xiaomi MiMo-V2.6-Pro46
  • Grok 4.644
  • Gemini 3.8 Flash41

As of September 26, 2026. Source: Artificial Analysis

For all seven September models side by side, with pricing and benchmark charts, see our big comparison of September 2026 AI models.

06Grok 4.7 safety

Grok 4.7 ships with an entirely new set of safeguards. xAI calls it the most robust model it has tested at refusing harmful requests and resisting jailbreaks. (MarkTechPost)

AreaResult
Biosecurity (LatchBio)62.4%, the best result on the benchmark
Risky cyber tasks (HackerBench v0.3, xAI's own test)Let through 3.3% of risky dual-use tasks
Legitimate security workRarely blocked, according to xAI
Red-team capabilitiesOnly for select cyber partners, by invitation
Source: MarkTechPost

The safeguards aim to combine strong jailbreak resistance with a low refusal rate for legitimate cybersecurity and biology work. (OpenRouter)

Note: HackerBench is an internal xAI benchmark, and independent safety verification is still missing. We did not find a system card comparable to those from OpenAI or Anthropic in the available sources.

07Grok 4.7 pricing and availability

Grok 4.7 costs the same as Grok 4.6: $2 per million input tokens and $6 per million output tokens. From 200,000 tokens in the prompt, the price doubles.

EndpointPrompt lengthInputCached inputOutput
xAI globalUnder 200K$2.00$0.50$6.00
xAI global200K and more$4.00$1.00$12.00
xAI U.S. (regional)Under 200K$2.20$0.55$6.60
xAI U.S. (regional)200K and more$4.40$1.10$13.20
Prices per 1M tokens. Sources: xAI: pricing, OmniaKey, Digital Applied
Output price per 1M tokens
  • Claude Fable 5.1$50
  • GPT-5.6 Sol$20
  • Grok 4.7, prompts from 200K tokens$12
  • Grok 4.7$6

xAI global endpoint; from 200K tokens in the prompt, Grok 4.7 costs twice as much. Sources: xAI: pricing, Anthropic

OpenRouter currently lists a lower price of $1.60 / $4.80 (cache $0.40) and a priority variant at $3.20 / $9.60. (OpenRouter) Check the price with your specific provider before you deploy.

Grok 4.7 Fast costs twice the standard price for prompts under 200,000 tokens ($4 / $12, cache $1) and $6 / $18 from 200,000 tokens (cache $1.50). It is only in Cursor and Grok Build. In Grok Build, Grok 4.7 is also available for free, but the Fast variant is not. (xAI: pricing, Basenor)

Grok 4.7 does not support the Batch API with cheaper bulk processing. (OmniaKey)

08Who should use Grok 4.7

Grok 4.7 pays off for teams that want a strong model for code and agents at a fraction of the price of Anthropic's and OpenAI's flagships.

SituationRecommendationWhy
Coding on a budgetGrok 4.7DeepSWE 71% at $2 / $6
Legal and engineering agent tasksGrok 4.7Leads Harvey Legal; only GPT-6 Astra beats it on EEBench
Long documents and large reposGrok 4.7500K token context, but double price from 200K
Work with current events on XGrok 4.7Built-in X search
Hardest code and terminal workClaude Fable 5.1 or GPT-6 AstraMuch higher Terminal-Bench 4.0
Cheapest agentic codingGemini 3.8 Flash$0.75 / $3.75 through the end of 2026
Bulk processingAnother model with a Batch APIGrok 4.7 does not support Batch

The recommendations are based on the benchmarks and pricing above. Independent tests so far show improvement, not a clear win over the competition. (GlobalGPT)

09How to prompt Grok 4.7

Grok 4.7 is trained on tasks that last hours and on careful self-checking, so give it a goal and a way to verify the result.

  1. Set the reasoning level on purpose. The default is high; save xhigh (which xAI used for its benchmarks) for the hardest tasks.
  2. Describe what done looks like. The model checks its own results; the more precise the criteria, the better the self-check.
  3. Watch the 200,000 token line. Above it the price doubles, so consider whether you need the whole context or just the relevant parts.
  4. Use a stable prefix and `prompt_cache_key`. Put the system prompt and documentation at the start, unchanged, so they come from the cache at a quarter of the price.
  5. Turn on tools when you need current data. Web search and X search are built in.
  6. Use a JSON schema for structured outputs in response_format; the model supports it. (OpenRouter)

10Grok 4.7 FAQ

What is Grok 4.7?

xAI's (SpaceXAI's) flagship model for coding, agentic tasks and knowledge work, released on September 21, 2026. It runs on a new, larger base model than Grok 4.6.

How much does Grok 4.7 cost?

In the xAI API, $2 per million input tokens and $6 per million output tokens for prompts under 200,000 tokens; above that, $4 and $12. Cached input costs $0.50.

How big is the Grok 4.7 context window?

500,000 tokens. Input can be text and images, and output is text.

What is the difference between Grok 4.7 and Grok 4.6?

Grok 4.7 has a new, larger base model and longer reinforcement learning on long tasks. It improved on every xAI benchmark, most of all on Terminal-Bench 4.0 (from 20.3% to 37.6%), at the same price.

What is Grok 4.7 Fast?

The same model on faster infrastructure: 2x faster output at 2x the price for prompts under 200,000 tokens. It is only available in Cursor and Grok Build, not in the public API.

Is Grok 4.7 better than Claude Fable 5.1?

On legal and engineering agent tasks, and narrowly on DeepSWE, yes; on CursorBench and terminal tasks, no. Fable 5.1 leads on 4 of xAI's 7 benchmarks, but it costs 5x more on input.

11Verdict: is Grok 4.7 worth it?

Grok 4.7 is a solid free upgrade: a bigger, smarter model at the same price as Grok 4.6. For coding and domain agents, it offers one of the best price-to-performance ratios of September 2026.

It is not enough for the top spot, though. Claude Fable 5.1 leads on CursorBench and terminal work, GPT-6 Astra leads on EEBench, and most of the numbers so far come from xAI itself. If you pay per token and want a strong model for everyday development, Grok 4.7 is worth testing; keep a pricier model in reserve for critical tasks.

Want to put AI agents to work in your own processes? We help you choose the model and connect it to your systems as part of our AI implementation service.

12Sources

LISTIFY teamWebsites, apps and marketing from Prague since 2008

More articles

All articles →
Artificial intelligenceSeptember 27, 2026 · 13 min read

The AI Act Hasn’t Been Postponed. What Your Business Needs to Do Now

Artificial intelligenceSeptember 27, 2026 · 19 min read

Best AI models of September 2026: GPT-6 Astra, Claude Fable 5.1, Gemini, Grok, Muse, DeepSeek and MiMo compared

Artificial intelligenceSeptember 26, 2026 · 14 min read

GPT-6 Astra (ChatGPT 6): the technical guide to benchmarks, API, pricing and access

Share this page

By email

Got an idea? In 15 minutes, you'll know how to make it happen.

A short call, no sales pitch. We'll tell you what makes sense, what it will cost and how fast we can deliver it.

+420 771 166 199Mon to Fri, 8:30 a.m. to 4:00 p.m. (Prague time) · info@listify.cool

When should we call you?

Pick a day and a time window. We'll call you, and it takes about 15 minutes.

Day