General chat and coding assistants

Claude Sonnet 4 vs GPT-4o Cost

Compare approximate Claude Sonnet 4 and GPT-4o API list prices for input, output, cache, and batch workloads.

Anthropic

Claude Sonnet 4

Provider
Anthropic
Modality
text
Context
200,000
Input / 1M
$3.00
Output / 1M
$15.00
Cached / 1M
$0.30
Batch discount
50%
View model page →

OpenAI

GPT-4o

Provider
OpenAI
Modality
text
Context
128,000
Input / 1M
$2.50
Output / 1M
$10.00
Cached / 1M
$1.25
Batch discount
50%
View model page →

Sample workload

Estimated spend on a shared scenario

Catalog rates updated 2026-07-31. Same inputs on both models for an apples-to-apples read.

Claude Sonnet 4

10k × 2k/500 tokens

$135.00

GPT-4o

10k × 2k/500 tokens

$100.00

Lower cost

GPT-4o is lower by $35.00 on this sample workload.

Keep comparing

More matchups

Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.