Compare AI models

Specifications
Context window
1M500k
API pricing
Input price
$5.00$2.00
Output price
$25.00$6.00
Cached input price
$0.50$0.50
Cheapest input
$5.00Amazon Bedrock$2.00xAI
Cheapest output
$25.00Amazon Bedrock$6.00xAI
Benchmarks
Next.js Evals
68%94%
Terminal-Bench 4.0
23.64%38%
Harvey's Legal Agent Benchmark
9.58%19.6%
Overview
CompanyAnthropicSpaceXAI
Release dateMay 28 2026Sep 21 2026
AccessClosedClosed
Model detailsView modelView model

Frequently asked questions

Grok 4.7 leads Claude Opus 4.8 on 3 of the 3 benchmarks they both report (Next.js Evals, Terminal-Bench 4.0, Harvey's Legal Agent Benchmark). Grok 4.7 is cheaper on both input and output: $2.00 vs $5.00 per million input tokens, and $6.00 vs $25.00 per million output tokens. Figures are base-tier rates. Claude Opus 4.8 shipped 116 days before Grok 4.7, so benchmark comparisons should account for the intervening progress.

Context windows are 1M (Claude Opus 4.8) vs 500k (Grok 4.7).

On Next.js Evals, Grok 4.7 leads at 94% vs Claude Opus 4.8 at 68%. On Terminal-Bench 4.0, Grok 4.7 leads at 38% vs Claude Opus 4.8 at 23.64%. On Harvey's Legal Agent Benchmark, Grok 4.7 leads at 19.6% vs Claude Opus 4.8 at 9.58%.