Skip to content
llmmodels

Claude Sonnet 5 vs Grok 4.7

Grok 4.7 wins 4 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (156.4 vs 156.9). Grok 4.7 is about 1.3× cheaper on a blended (3:1 input:output) token price. Claude Sonnet 5 has the larger context window (1M vs 500K).

SpecClaude Sonnet 5Grok 4.7
ProviderAnthropicxAI
ReleasedJun 29, 2026Sep 21, 2026 (better)
TypeReasoning LLMReasoning LLM
Parameters—2.1T
Context window1M (better)500K
Max output125K500K (better)
Input price / 1M$2$2
Output price / 1M$10$6 (better)
Input modalitiestext, image, pdf, filetext, image, pdf, file
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeYesYes
Tool callingYesYes
API providers56 (better)37
Epoch Capabilities Index156.9 (better)156.4
GPQA Diamond90.5%92.7% (better)
WebDev Arena15371638 (better)
OTIS Mock AIME94.7%98.1% (better)
FrontierMath65.6% (better)53.0%
ARC-AGI-2—61.4%
SimpleQA Verified33.7%56.0% (better)

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and Grok 4.7 costs $32.00 at list price (Anthropic / xai pricing).

About Claude Sonnet 5

Claude Sonnet 5 is a proprietary reasoning llm from Anthropic, released Jun 29, 2026. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $10 per million output tokens. It is available from 56 API providers. It scores 156.9 on the Epoch Capabilities Index. Full Claude Sonnet 5 specs →

About Grok 4.7

Grok 4.7 is a proprietary reasoning llm from xAI, released Sep 21, 2026. It has 2.1T parameters, a 500K-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $6 per million output tokens. It is available from 37 API providers. It scores 156.4 on the Epoch Capabilities Index. Full Grok 4.7 specs →

Compare other models

FAQ

Which is better, Claude Sonnet 5 or Grok 4.7?

Grok 4.7 wins 4 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (156.4 vs 156.9). Grok 4.7 is about 1.3× cheaper on a blended (3:1 input:output) token price. Claude Sonnet 5 has the larger context window (1M vs 500K).

Is Claude Sonnet 5 cheaper than Grok 4.7?

Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; Grok 4.7 costs $2 / $6. Grok 4.7 is cheaper overall.

Which has a bigger context window?

Claude Sonnet 5: 1,000,000 tokens. Grok 4.7: 500,000 tokens.

Are Claude Sonnet 5 and Grok 4.7 open source?

Claude Sonnet 5 is proprietary; Grok 4.7 is proprietary.