AI model comparison

Claude Opus 4.7 vs Grok 4.5

Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.

Change models
Loading the catalog…
Markdown
Context tokens
1M
Input / 1M
$5.00
Output / 1M
$25.00
Context tokens
500K
Input / 1M
$2.00
Output / 1M
$6.00
Benchmark snapshot
Code Completion
Claude Opus 4.7Grok 4.5
78.261%
69.565%

Percent score · Result source · Test method

Catalog checked Nov 27, 202623 shared benchmark resultsRead the methodology

The trade-offs

Start with the differences that affect how this model fits your workload.

Benchmark results
Claude Opus 4.7 and Grok 4.5 scored 78.261% and 69.565%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
Token cost
For 1 million input tokens and 250,000 output tokens, the listed rates estimate $11.25 for Claude Opus 4.7 and $3.50 for Grok 4.5.
Context window
Claude Opus 4.7 lists 1,000,000 tokens of context. Grok 4.5 lists 500,000 tokens. Reserve space for the output before routing long inputs.

Benchmarks

Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.

Shared benchmark profilePercentage scores from the first eight shared groups, sorted by the page evidence order.

Source Result source · Test method

Claude Opus 4.7Grok 4.5

Code Completion

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

78.261%
69.565%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Code Generation

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

85.915%
67.606%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Javascript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

63.636%
72.727%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Python

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

45%
60%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Typescript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

43.333%
36.667%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Amps Hard

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
99%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Connections

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

92.333%
98%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Consecutive Events

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

89.521%
75.536%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5
Show 15 more shared results

Integrals With Game

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

84%
78%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Logic With Navigation

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

70%
72%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Math Comp

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98.039%
97.059%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Olympiad

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

91.376%
89.239%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Paraphrase

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

65.767%
69.217%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Plot Unscrambling

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

61.409%
66.386%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Simplify

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

65.5%
70.167%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Spatial

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

100%
100%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Story Generation

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

69.4%
73.583%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Summarize

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

66.283%
73.15%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Tablejoin

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

47.231%
43.577%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Tablereformat

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98.039%
100%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Theory Of Mind

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.769%
82.692%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Typos

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80%
84%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5

Zebra Puzzle

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
94%
Test configurations
Claude Opus 4.7
claude-opus-4-7-xhigh-effort
Grok 4.5
grok-4.5
View individual benchmark records

These model-level records can include other benchmark releases, test configurations, and vendor-reported results.

Claude Opus 4.7

No additional benchmark results are available for this model ID.

Grok 4.5

BenchmarkScoreConfigurationSource model labelEvidence
Long Agentic27.9%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method
Reasoning87.2%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method
Coding94.3%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method
Browser44%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method
Data Analysis73%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method
Research85.9%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method
Design78.1%grok-4.5 · Suite release Oct 14, 2026 · run date unavailablegrok-4.5Result source · Test method

Pricing and token cost

Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.

USD per million tokensClaude Opus 4.7Grok 4.5
Uncached input$5.00$2.00
Output$25.00$6.00
Cache read$0.50$0.30
Cache write$6.25Unavailable

Rates are a catalog snapshot. OpenRouter Models API

Estimate your workload

Enter total token counts. The estimate uses uncached input and output rates.

Claude Opus 4.7$11.25
Grok 4.5$3.50

Grok 4.5 costs $7.75 less at this token mix.

Model specifications

Context, output limits, modalities, and supported API parameters from the catalog.

SpecificationClaude Opus 4.7Grok 4.5
Catalog statusListedListed
Catalog model IDanthropic/claude-opus-4.7x-ai/grok-4.5
ProviderAnthropicxAI
Context window1,000,000 tokens500,000 tokens
Max output128,000 tokens450,000 tokens
Input modalitiesText, Image, FileText, Image, File
Output modalitiesTextText
Reasoning controlsListedListed
Tool callingListedListed
Structured outputsListedListed
Serving endpoints/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses
Catalog listing dateApr 16, 2026Jul 8, 2026

Use with Weave Router

Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.

Claude Opus 4.7

Listed in the public Router catalog.

claude-opus-4-7

Grok 4.5

Weave Router availability is unverified for this model ID.

Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026

Explore Weave Router Read Weave Router benchmark results

Sources

Each benchmark links to its own result and test method when available.

MarkdownFull methodology