Comparison

Claude Opus 4.8 vs GPT-4o

Per input token, GPT-4o runs 50% cheaper than Claude Opus 4.8. Output pricing favors GPT-4o, 60% less per token than Claude Opus 4.8. Claude Opus 4.8 has the larger context window than GPT-4o.

FieldClaude Opus 4.8
GPT-4o
Legacy
ProviderAnthropicOpenAI
Context window1M128K
Max output128K
Input / 1M$5.00$2.5050% cheaper
Output / 1M$25.00$10.0060% cheaper
Cached input / 1M$0.5060% cheaper$1.25
Batch discount50%
Release date

Worked cost examples

Estimated monthly cost on three common usage shapes

WorkloadClaude Opus 4.8GPT-4o

Chatbot

800 input / 200 output tokens per request, 100,000 requests/month

$900.00$400.00cheaper

RAG pipeline

6,000 input / 700 output tokens per request, 30,000 requests/month

$1,425$660.00cheaper

Batch summarization

20,000 input / 1,500 output tokens per request, 5,000 requests/month

$687.50$325.00cheaper

Claude Opus 4.8 vs GPT-4o FAQ

Is Claude Opus 4.8 cheaper than GPT-4o?
Claude Opus 4.8 costs $5.00 per 1M input tokens versus $2.50 for GPT-4o — GPT-4o is 100% cheaper per input token.
Which is cheaper for output tokens, Claude Opus 4.8 or GPT-4o?
Claude Opus 4.8 charges $25.00 per 1M output tokens; GPT-4o charges $10.00 per 1M output tokens.
Which has the larger context window, Claude Opus 4.8 or GPT-4o?
Claude Opus 4.8 does, with a 1,000,000-token context window.
Do Claude Opus 4.8 and GPT-4o offer cache pricing?
Claude Opus 4.8 discounts cached input to $0.50 per 1M tokens. GPT-4o discounts cached input to $1.25 per 1M tokens.

Looking for another matchup? See all comparisons.