Grok 4.7
x-ai/grok-4.7
Back to model catalog

xAI · Model guide

Grok 4.7

Compare
x-ai/grok-4.7Released Sep 21, 2026

xAI's flagship model for coding and knowledge work, succeeding Grok 4.6 on a new, larger base model trained with a longer reinforcement-learning run on multi-hour tasks. It works longer on hard problems, checks its own work more carefully and handles long context better, with a 500K context window and four reasoning efforts up to xhigh.

Modalities
TextImageText
Context
500K
Max output
500K
Price / 1M tokens
$ 2.00in$ 6.00out
StreamingTool callingJSON outputImage inputThinking mode

What this model is good at

What the vendor positions it for, and which of our models to reach for instead.

VendorSpaceXAI's most capable model for coding and knowledge work.source

Best for
  • Long-running coding agents · Launch results centre on long-running software engineering — CursorBench 4.0, DeepSWE v1.1 and Terminal-Bench 4.0, all up on Grok 4.6.source

  • Professional knowledge work · Official results span multi-hour office work (AA Briefcase v1.1), legal (Harvey), clinical (HealthBench Professional) and electrical-engineering tasks, each ahead of Grok 4.6.source

  • Long-context tasks · xAI says the model is better at managing longer context than Grok 4.6.(vendor claim)source

Neighbouring models
  • x-ai/grok-4.6predecessor —Use Grok 4.6 to stay on the previous generation of the same family.
  • x-ai/grok-4.3longer context —Use Grok 4.3 for a 1M-token context window and an optional non-reasoning mode.
  • x-ai/grok-build-0.1sibling —Use Grok Build 0.1 for fast, coding-specialized agent loops.
Compare them side by side →

Pricing and billing

Tiered pricing: the rate changes once the input passes the threshold.

Price / 1M tokens by input sizeInput < 200.0KInput ≥ 200.0K
Input$ 2.00$ 4.00
Output$ 6.00$ 12.00
Cache read$ 0.50$ 1.00
Cache write$ 2.00$ 4.00
Estimate a request

At this input size you are on the Input < 200.0K tier.

$ 0.0320
Estimated cost per request
10.0K × $ 2.00
+ 2.0K × $ 6.00
≈ $ 32.00 per 1,000 requests

Capabilities and limits

What CrossModel guarantees across every route this model can take right now.

Context window
500.0K tokens
Max output
500.0K tokens
Input / output modalities
Text + Image → Text
Streaming
Supported
Tool calling
Supported
Structured output (JSON)
Supported
Image input
Supported
Thinking mode
Supported· always on
Reasoning effort
low · medium · high · xhigh
Available endpoints
/v1/chat/completions · /v1/responses · /v1/messages
First-party sources:Specsdocs.x.ai 1x.ai 2Capabilitiesdocs.x.ai 1docs.x.ai 2

Published benchmarks

Scores the vendor reported, with the evaluation setup each one came from.

Agentic coding
  • CursorBench 4.0
    score·SpaceXAI · 2026-09-21effort xhighsetup not fully disclosed

    4.0 侧重更长链的编程任务,与 CursorBench v3.2 / 3.2.0 分数不可比。

    46.3%
  • Terminal-Bench 4.0
    pass_rate·SpaceXAI · 2026-09-21effort xhighsetup not fully disclosed

    xAI 未披露 harness。同表把 Fable 5.1 记作 57.9%,与 Anthropic 自报的 55.8% 不同,跨厂比较时注意口径。

    38%
Coding
  • DeepSWE 1.1
    resolved_rate·SpaceXAI · 2026-09-21effort highsetup not fully disclosed

    发布表中只有这一项是 high 档(带星号),其余为 xhigh。同表把 Grok 4.6 记作 65.2%,与 4.6 发布页的 65.9% 有出入,两处分别按各自来源保留。

    71%
Knowledge work
  • AA-Briefcase v1.1
    score·SpaceXAI · 2026-09-21effort xhighsetup not fully disclosed

    Artificial Analysis 的多小时办公任务评分,不是百分比。同表 Grok 4.6 为 1546,与 4.6 发布页未标版本的 AA-Briefcase 1577 不同,故按 v1.1 单独建身份。

    1657
  • EEBench
    score·SpaceXAI · 2026-09-21effort xhighsetup not fully disclosed

    电气工程领域评测;发布页未说明出题方与评分口径。

    64%
  • Harvey LAB (Vals)
    score·SpaceXAI · 2026-09-21effort xhighsetup not fully disclosed

    发布页称 Harvey Legal Agent Benchmark;同表 Grok 4.6 为 15.8%,与已入库的 Harvey LAB 结果一致,故视为同一评测。绝对分整体偏低,仅在同表模型间比较有意义。

    19.6%
  • HealthBench Professional
    score·SpaceXAI · 2026-09-21effort xhighsetup not fully disclosed

    临床推理评测。

    56.7%

Vendor-reported numbers, not CrossModel measurements. Scores are only comparable when the benchmark version, metric and evaluation setup match, so nothing here is averaged or ranked.

Use it in your tools

Point the base URL at CrossModel and paste this model ID — every tool below has a setup guide.

See all integration guides →

Frequently asked questions

What is Grok 4.7?
Grok 4.7 is available on CrossModel as x-ai/grok-4.7. It has a 500K-token context window and can return up to 500K tokens per request.
How much does Grok 4.7 cost?
Currently $ 2.00 per 1M input tokens and $ 6.00 per 1M output tokens. Cached input is billed at $ 0.50 per 1M.
Does Grok 4.7 support tool calling and structured output?
Tool calling: Supported · Structured output (JSON): Supported · Image input: Supported · Streaming: Supported · Thinking mode: Supported
Which endpoint do I call?
For text models, OpenAI Chat Completions (/v1/chat/completions), OpenAI Responses (/v1/responses) and Anthropic Messages (/v1/messages) all work — pick whichever your SDK already speaks.
Can I try it without writing code?
Yes. Sign in and open the Playground on this page to chat with the model directly — no API key needed. Usage is billed from your wallet at the normal rate.

Chat first, integrate later

Chat first, then wire it in once you like the answers.