← All comparisons

Claude Opus 4.7 vs Grok 4: token pricing & cost compared (July 2026)

How Claude Opus 4.7 (Anthropic) and Grok 4 (xAI) actually compare on price — input, output, and total monthly cost at the MAU you care about. Updated against live OpenRouter pricing.

Anthropic

Claude Opus 4.7

Input
$5.00 / 1M tokens
Output
$25.00 / 1M tokens
Output / Input ratio
5.0×
Context window
1,000K

xAI

Grok 4

Input
$0.00 / 1M tokens
Output
$0.00 / 1M tokens
Output / Input ratio
Context window

The short answer

Grok 4 is cheaper across the board for typical workloads.

Token pricing side-by-side

Input ($/1M)Output ($/1M)$0$7$14$21$28
  • Claude Opus 4.7
  • Grok 4

Cost at your usage

Claude Opus 4.7

Per call

$0.01500

Per user / mo

$1.5000

Total / mo

$1,500

Grok 4

Per call

$0.00000

Per user / mo

$0.0000

Total / mo

$0

Grok 4 is cheaper by $1.5000/user/month — a saving of $1,500/month at 1,000 MAU.

Total monthly bill across MAU

1005001K5K10K50K100K$0$40K$80K$120K$160K
  • Claude Opus 4.7
  • Grok 4

Same usage profile applied to both models; only the per-token price differs.

Run this against your real numbers

The mini-calculator above is a preview. Use the full tools to model power-user blast radius, gross margin, and 12-month spend forecasts.

Comparing Claude Opus 4.7 vs Grok 4 on price alone never tells the whole story — output-token weighting, context length, and your usage profile change the answer dramatically. Use the calculators below for the full picture.

Related tools: All comparisons · Cost Per User Calculator · How to calculate LLM cost per user