All models

Claude Opus 4.7 (Fast) vs GPT-4 vs Grok 4.20

Claude Opus 4.7 (Fast) at $34.50 in and $172.50 out, GPT-4 at $34.50 in and $69.00 out, and Grok 4.20 at $1.44 in and $2.88 out — per million tokens, from the same wallet.

Claude Opus 4.7 (Fast)

Anthropic

$0.31

for a client proposal

$34.50 in · $172.50 out / 1M

1M context · released 3 months ago

Full page →

GPT-4

OpenAI

$0.23

for a client proposal

$34.50 in · $69.00 out / 1M

8K context · released May 2023

Full page →
x

Grok 4.20

xAI

0.95¢

for a client proposal

$1.44 in · $2.88 out / 1M

2M context · released 4 months ago

Full page →

Asking all three at once — identical prompt, identical context — costs about $0.55 for a typical client proposal.

At a glance

  • Cheapest input: Grok 4.20 at $1.44 per million tokens.
  • Cheapest output: Grok 4.20 at $2.88 per million tokens.
  • Largest context: Grok 4.20 at 2M tokens — about 2,900 pages.

Cost per task

Estimated totals at the rates above. Solid bar is input, lighter bar is output.

Quick code fix

2K in · 500 out
Claude Opus 4.7 (Fast)
$0.16
GPT-4
$0.10
Grok 4.20
0.43¢

Draft a client proposal from notes

5K in · 800 out
Claude Opus 4.7 (Fast)
$0.31
GPT-4
$0.23
Grok 4.20
0.95¢

Context-heavy session (Alyph workspace)

155K in · 4K out
Claude Opus 4.7 (Fast)
$6.04
GPT-4
needs 155K ctx
Grok 4.20
$0.23

Analyze a 50-page legal contract

35K in · 1K out
Claude Opus 4.7 (Fast)
$1.38
GPT-4
needs 35K ctx
Grok 4.20
$0.05

Large architecture refactor

250K in · 3K out
Claude Opus 4.7 (Fast)
$9.14
GPT-4
needs 250K ctx
Grok 4.20
$0.74

Long-context rate applied at this input size.

Solid part of each bar is input tokens, the lighter part is output. Models that don’t fit a task are marked instead of priced.

Cost vs Token Amount

Drag the slider to adjust the split between input and output workload.

80% Input20% Output
free$31.05$62.100 tokens250k500k750k1000k
Claude Opus 4.7 (Fast)
GPT-4
Grok 4.20

Adjust the ratio slider to change how output tokens influence the final price for equivalent workloads.

Pricing

Claude Opus 4.7 (Fast)
GPT-4
Grok 4.20
Input / 1M tokens
$34.50
$34.50
$1.44
Output / 1M tokens
$172.50
$69.00
$2.88
Cached input / 1M
$3.45
$0.230
Web search
1.1¢ / search
0.57¢ / search

Specs

Claude Opus 4.7 (Fast)
GPT-4
Grok 4.20
Released
3 months ago
May 2023
4 months ago
Context window
1M
8K
2M
Max output
128K
4K
Input
Text, Images, and Files
Text
Text, Images, and Files
Output
Text
Text
Text
Reasoning
Shows its thinking
Answers directly
Shows its thinking
Knowledge cutoff
2021-09-30
2025-09-01

Try it with real numbers

2K tokens in · 500 tokens out.

Claude Opus 4.7 (Fast)

Anthropic

$0.16

for this task

44% input · 56% output

Full pricing →

GPT-4

OpenAI

$0.10

for this task

67% input · 33% output

Full pricing →

Grok 4.20

xAI

0.43¢

for this task

67% input · 33% output

Full pricing →

All 3, same prompt and context: $0.26. That is the entire cost of the comparison.

Your $5 welcome credit covers about 19 of these.

Which should you pick?

For long documents, Grok 4.20 has the largest context window here — 2M tokens.

On price, Grok 4.20 is the cheapest of the three on a typical task, at about 0.95¢.

For images or files, Claude Opus 4.7 (Fast) and Grok 4.20 can read them directly; GPT-4 is text-only.

If you want to watch the model think, Claude Opus 4.7 (Fast) and Grok 4.20 show reasoning; the other answers directly.

Or don’t pick. Send the identical prompt to all three, read the answers side by side, and keep the winner. How to run a fair bake-off →

Questions, answered

Which is cheapest — Claude Opus 4.7 (Fast), GPT-4, or Grok 4.20?

On a typical client proposal (5K tokens in, 800 out): Grok 4.20 at 0.95¢; GPT-4 at $0.23; Claude Opus 4.7 (Fast) at $0.31. Long prompts can change the order when long-context rates apply.

Which has the largest context window?

Grok 4.20 — 2M tokens, about 2,900 pages.

Can I run Claude Opus 4.7 (Fast), GPT-4, and Grok 4.20 side by side on Alyph?

Yes — that is what Alyph is built for: the identical prompt with identical context to all 3, answers rendered side by side, billed from one wallet. This exact combination costs about $0.55 for a typical task.

Ask all three at once

Identical prompt, identical context, answers side by side — about $0.55 for a typical client proposal. Free to start, with $5 of credit.