Skip to content
ModelCap

Head-to-head comparison

Claude Sonnet 5 vs Grok 4.7

Claude Sonnet 5 (Anthropic) and Grok 4.7 (xAI) compared on the ModelCap Index, API price, context window, provider availability, weight access and every public benchmark board they share. Figures are the same ones shown on the live rankings; nothing here is a hidden score.

Snapshot as of 22 September 2026

As of 22 September 2026, Grok 4.7 holds the stronger ModelCap Index position (#4 vs #24); Grok 4.7 is 2.1× cheaper per output token ($4.80/1M vs $10.00/1M); and Claude Sonnet 5 offers the longer context window (1M vs 500K tokens).

Which should you choose?

Choose Claude Sonnet 5 if…

  • you need the longer context window — 1M tokens against 500K.
  • you want provider choice — 5 listed API providers against 1.

Choose Grok 4.7 if…

  • you want the stronger overall ModelCap Index position — #4 against #24 (84.9 vs 75.9 points).
  • API cost matters — $4.80/1M output tokens against $10.00/1M, about 2.1× cheaper.
  • your workload is prompt-heavy — input tokens cost $1.60/1M against $2.00/1M.
  • AA Intelligence Index is your yardstick — 46.4 against 38.2.
  • AA Humanity's Last Exam is your yardstick — 43.1% against 41.3%.
  • Terminal-Bench 4.0 is your yardstick — 37.6% against 12.4%.
  • you want the more recently listed model — Grok 4.7 was listed 21 September 2026, Claude Sonnet 5 30 June 2026.

Claude Sonnet 5 vs Grok 4.7: specs, pricing and context

Specification comparison of Claude Sonnet 5 and Grok 4.7
FieldClaude Sonnet 5AnthropicGrok 4.7xAI
ModelCap Index position#24#4
Index score75.984.9
EvidenceMeasuredMeasured
Input price / 1M tokens$2.00$1.60
Output price / 1M tokens$10.00$4.80
Context window1M tokens500K tokens
Max output tokens128K450K
API providers listed51
Weight accessAPI onlyAPI only
Input modalitiesText, Image, FileText, Image, File
First listed30 June 202621 September 2026
PublisherAnthropicxAI

Evidence: 4 public benchmark observations across 4 boards · 1 public benchmark observation across 1 board. Prices are the lowest listed API offer per million tokens observed on the OpenRouter catalogue.

Benchmark scores: Claude Sonnet 5 vs Grok 4.7

Public benchmark boards where Claude Sonnet 5 or Grok 4.7 has a published result
BoardClaude Sonnet 5Grok 4.7Leads
Arena codingArena (LMArena)15201513–1527HighOnly one result
LMArena AgentLMArena6.0%4.4%–7.6%HighOnly one result
AA Intelligence IndexArtificial Analysis38.2intelligence-index:v4.3:max46.4intelligence-index:v4.3:xhighGrok 4.7
AA Humanity's Last ExamArtificial Analysis41.3%hle:may-2025:text-only-2158:no-tools:pass-at-1:source-model="Claude Sonnet 5 (Adaptive Reasoning, Max Effort)":reasoning=true43.1%hle:may-2025:text-only-2158:no-tools:pass-at-1:source-model="Grok 4.7 (xhigh)":reasoning=trueGrok 4.7
Terminal-Bench 4.0Terminal-Bench (Laude Institute)12.4%9.4%–15.5%Claude Code · Max37.6%34.0%–41.1%Grok Build · X-HighGrok 4.7

Scores are the sources' own published figures for each model's best evaluated configuration; ModelCap never re-runs a benchmark.

Want a different pairing? Open the interactive comparison tool to swap either model for any current ranked language model.

Claude Sonnet 5 vs Grok 4.7: common questions

Is Claude Sonnet 5 better than Grok 4.7?

Grok 4.7 ranks higher on the ModelCap Index as of 22 September 2026: #4 against #24. That is a capability ranking built from public benchmark evidence with published uncertainty; whether it is "better" for you also depends on price, context and where you can run it. Their published uncertainty intervals overlap, so the rank difference alone does not establish a reliable capability advantage for your workload.

Is Claude Sonnet 5 cheaper than Grok 4.7?

Grok 4.7 is cheaper on output tokens: $4.80/1M against $10.00/1M. Input tokens are $2.00/1M for Claude Sonnet 5 and $1.60/1M for Grok 4.7. Prices are the lowest listed API offer ModelCap observed, in USD per million tokens. For 1,000 requests with 2,000 input and 500 output tokens each (2M input + 0.5M output), the listed-rate estimate is $9.00 for Claude Sonnet 5 versus $5.60 for Grok 4.7. Grok 4.7 costs 37.8% less in this scenario. This excludes caching, batch discounts, prompt-length tiers, tool charges and retries; verify the selected endpoint before budgeting.

Which has the bigger context window, Claude Sonnet 5 or Grok 4.7?

Claude Sonnet 5 has the larger context window: 1M tokens against 500K.

Which is better for coding, Claude Sonnet 5 or Grok 4.7?

Terminal-Bench 4.0: Claude Sonnet 5 12.4%, Grok 4.7 37.6% — Grok 4.7 leads.

Are Claude Sonnet 5 and Grok 4.7 open-weight models?

Claude Sonnet 5: API only. Grok 4.7: API only. Open weights mean the checkpoint can be downloaded and self-hosted under its licence; API-only models are available solely through hosted endpoints.

Where can I run Claude Sonnet 5 and Grok 4.7?

ModelCap currently lists 5 API providers for Claude Sonnet 5 and 1 for Grok 4.7, from the OpenRouter catalogue snapshot the site serves; each model page lists the providers and their prices.

How current is this Claude Sonnet 5 vs Grok 4.7 comparison?

Every figure comes from the sealed ModelCap dataset published 22 September 2026; the page re-renders within a minute of each data refresh, and the ModelCap Index positions are the same ones shown on the live rankings.

Explore further