Learn

Grok 4.7 vs Grok 4.6: API Model Selection & Migration Guide

Compare Grok 4.7 vs Grok 4.6 by CursorBench 46.3% and DeepSWE 71.0% benchmarks, identical $2/$6 token pricing, no Batch API for either, availability in Cursor and Grok Build, and the steps to migrate from 4.6.

UpdatedOctober 14, 2026

In short

Use Grok 4.7. On the xAI API it costs exactly what Grok 4.6 costs: $2 per million input tokens, $0.50 cached and $6 output below 200,000 prompt tokens, so switching changes the results, not the per-token rates. Every benchmark xAI reports for both models puts 4.7 ahead, by the widest margin on Terminal-Bench 4.0 (38.0% against 20.3% in the model card). Grok 4.6 is still a current API model with no retirement notice, so keep it only while a pipeline validated on it waits to be re-tested. Grok 4.7 is also in Cursor and is the default model in Grok Build. xAI has not said which Grok models its consumer plans include.

On this page4

Same price at every context length, and no Batch discount for either

The two models share one price list. At 200,000 prompt tokens or more, a request moves to $4 input, $1 cached and $12 output, and xAI bills every token in that request at the higher rate, not just the tokens above the line. In an illustrative request with 5,000 output tokens, a 190,000-token prompt costs $0.38 plus $0.03, or $0.41. A 210,000-token prompt costs $0.84 plus $0.06, or $0.90. Twenty thousand more prompt tokens more than double the price, so trimming context just under the threshold pays.

Neither model supports the Batch API. xAI's 20% Batch discount applies only to grok-4.3 and the grok-4.20 models, so an offline job on 4.7 or 4.6 pays the standard rates. Both models are served on the US regional endpoint (us.api.x.ai) at 1.1 times the global rates, which puts Grok 4.7 at $2.20, $0.55 and $6.60. Priority Processing costs twice the standard rate on either.

xAI's benchmarks favor 4.7, but its two sources differ

All figures below come from xAI, not from independent testing. They are from the Grok 4.7 model card, except Grok 4.6's CursorBench score, which appears only on xAI's announcement page. Rows where both models ran at the same reasoning effort are the fairest comparisons; on the others, 4.7 ran at a higher effort than 4.6.

Benchmark

Grok 4.7

Grok 4.6

Effort (4.7 / 4.6)

Terminal-Bench 4.0

38.0%

20.3%

xhigh / high

SWE-Marathon v1.1

46.0%

31.9%

high / high

DeepSWE v1.1

71.0%

65.2%

high / high

HealthBench Professional

56.7%

48.5%

xhigh / xhigh (announcement: xhigh / high)

EEBench

66.0%

60.0%

xhigh / xhigh

CursorBench 4.0

46.3% (43.9% at high)

40.4%

xhigh / high

FrontierSWE V2

29.0%

25.3%

xhigh / xhigh

CADGenBench

44.4%

40.9%

high / high

Legal Agent Benchmark

19.6%

15.8%

xhigh / high

The largest gains are on Terminal-Bench and SWE-Marathon, long terminal and software tasks; the smallest, under four points, are on FrontierSWE, CADGenBench and the Legal Agent Benchmark. If your workload looks like those, test before you expect a large improvement.

The announcement page disagrees with the model card in three places. It gives Terminal-Bench 4.0 as 37.6%, EEBench as 64.0% for 4.7 against 53.0% for 4.6 at high effort, and labels Grok 4.6's HealthBench score as high effort, where the card says xhigh. The table uses the model card's figures; its HealthBench row also shows the announcement's effort label.

xAI describes the change as a new, larger base model trained with a longer reinforcement learning run on a harder mix of tasks, plus supplemental training on anonymized Cursor workflow data. It publishes no parameter count for either model.

Grok 4.7 is in Cursor and Grok Build, not yet confirmed in the Grok app

  • xAI API: both, as grok-4.7 and grok-4.6.
  • Cursor: Grok 4.7 on every plan tier.
  • Grok Build: Grok 4.7 is the default model.
  • Grok 4.7 Fast: the same model at twice the output speed, for 2 times the standard rates below 200,000 prompt tokens and 1.5 times above. It is only in Cursor and Grok Build, not on the public API, and not in Grok Build's free tier.
  • Grok app and X: the model card said Grok 4.7 would reach xAI's consumer apps and X at a later date. The X Subscription lists "Latest Grok models" from Premium at $30 a month without naming them, and no official page we read confirms Grok 4.7 there yet. The X Subscription plans explained covers the tiers, and Grok subscription vs xAI API pricing how the two bills differ.

Moving an integration from 4.6 to 4.7

Change the model ID to grok-4.7 and call it by name: the Grok 4.7 model page lists no alias for it. The context window (500,000 tokens), function calling, structured outputs and the reasoning effort levels (low, medium, high by default, and xhigh) are the same on both models, and neither lets you turn reasoning off.

One response change matters on the Responses API: Grok 4.7 returns reasoning.encrypted_content on every response, whether or not your request asks for it. Check any code that stores, logs or forwards whole responses. Chat Completions is unchanged.

Because the price is identical, the main cost of switching is re-running your own evaluations and checking token use per task. For Grok 4.7 against an OpenAI model, see Grok 4.7 vs GPT-6 Sol.

Official sources

Editorial guidance grounded in official product sources.

FAQ

Common questions

Is Grok 4.7 a drop-in replacement for Grok 4.6?

Almost. Grok 4.7 has the same pricing ($2.00 input, $0.50 cached input, $6.00 output per 1M tokens), context window (500k tokens), and works on both the Chat Completions and Responses APIs. Swap the model string to grok-4.7, but note that on the Responses API it returns reasoning.encrypted_content on every response, so check code that stores or forwards whole responses.

When is Grok 4.6 still the better API choice?

Only for existing production services whose regression baselines were validated on Grok 4.6, until they are re-tested on Grok 4.7. Grok 4.6 is still a current API model with no retirement notice. For new development, agentic coding and terminal work, start with Grok 4.7, which leads Grok 4.6 on every benchmark xAI reports at the same price.

Does the grok-latest or grok-build-latest alias select Grok 4.7?

xAI's docs do not say so. The Grok 4.7 model page lists no alias, grok-latest is not listed, and grok-build-latest appears on the Grok 4.5 model page with no statement that it points to Grok 4.7. Pin the explicit grok-4.7 identifier.

What happens to price when a prompt reaches the long-context tier?

When a prompt reaches or exceeds 200,000 tokens, xAI applies long-context tier rates: $4.00 input, $1.00 cached input, and $12.00 output per 1 million tokens. These rates apply to all tokens in the request, not just the excess tokens. Keep prompt lengths below 200k when possible to preserve standard $2/$6 rates.

Does Grok 4.7 receive a Batch API discount?

No. The Grok 4.7 and Grok 4.6 model pages both list the Batch API as not supported. xAI's 20% Batch discount applies only to grok-4.3 and the grok-4.20 models, so overnight evaluations and bulk code generation on Grok 4.7 pay the standard $2.00 input and $6.00 output below 200,000 prompt tokens per 1 million tokens.

Can Grok 4.7 use the same reasoning settings as Grok 4.6?

Yes. Both support low, medium, high and xhigh reasoning effort, default to high, and cannot turn reasoning off. xAI describes Grok 4.7 as a new, larger base model trained with a longer reinforcement learning run on a harder mix of tasks.

Next steps

Take the next evaluation step