Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
OpenAI
OpenAI

Claude Sonnet 4.5 vs GPT-4

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

114 out of our 303 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Claude Sonnet 4.5 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
  • Has reasoning mode

GPT-4 wins:

  • No clear advantages in compared metrics
Price Advantage
Claude Sonnet 4.5
Benchmark Advantage
Claude Sonnet 4.5
Context Window
Claude Sonnet 4.5
Speed
Claude Sonnet 4.5

Pricing Comparison

Price Comparison

MetricClaude Sonnet 4.5GPT-4Winner
Input (per 1M tokens)$3.00$30.00 Claude Sonnet 4.5
Output (per 1M tokens)$15.00$60.00 Claude Sonnet 4.5
Cache Read (per 1M)$0.30N/A Claude Sonnet 4.5
Cache Write (per 1M)$3.75N/A Claude Sonnet 4.5
Using a 3:1 input/output ratio, Claude Sonnet 4.5 is 84% cheaper overall.

Claude Sonnet 4.5 Providers

Amazon Bedrock $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)

GPT-4 Providers

OpenAI $30.00 (Cheapest)
Azure $30.00 (Cheapest)

Benchmark Comparison

7
Benchmarks Compared
2
Claude Sonnet 4.5 Wins
0
GPT-4 Wins

Benchmark Scores

BenchmarkClaude Sonnet 4.5GPT-4Winner
Intelligence Index
Overall intelligence score
37.112.8
Coding Index
Code generation & understanding
33.513.1
Math Index
Mathematical reasoning
37.0--
MMLU Pro
Academic knowledge
86.0--
GPQA
Graduate-level science
72.7--
LiveCodeBench
Competitive programming
59.0--
Aider
Real-world code editing
-67.7-
Claude Sonnet 4.5 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Claude Sonnet 4.5
Other models

Context & Performance

Context Window

Claude Sonnet 4.5
1,000,000
tokens
Max output: 64,000 tokens
GPT-4
8,191
tokens
Max output: 4,096 tokens
Claude Sonnet 4.5 has a 99% larger context window.

Speed Performance

MetricClaude Sonnet 4.5GPT-4Winner
Tokens/second70.4 tok/s25.4 tok/s
Time to First Token1.07s0.73s
Claude Sonnet 4.5 responds 177% faster on average.

Capabilities

Feature Comparison

FeatureClaude Sonnet 4.5GPT-4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyClaude Sonnet 4.5GPT-4
LicenseProprietaryProprietary
AuthorAnthropicOpenAI
ReleasedSep 2025May 2023

Claude Sonnet 4.5 Modalities

Input
textimagefile
Output
text

GPT-4 Modalities

Input
text
Output
text

Related Comparisons

Compare Claude Sonnet 4.5 with:

Compare GPT-4 with:

Frequently Asked Questions

Claude Sonnet 4.5 has cheaper input pricing at $3.00/M tokens. Claude Sonnet 4.5 has cheaper output pricing at $15.00/M tokens.
Claude Sonnet 4.5 scores higher on coding benchmarks with a score of 33.5, compared to GPT-4's score of 13.1.
Claude Sonnet 4.5 has a 1,000,000 token context window, while GPT-4 has a 8,191 token context window.
Claude Sonnet 4.5 supports vision. GPT-4 does not support vision.