Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
OpenAI
OpenAI

Claude Sonnet 4 vs GPT-5.2 Pro

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 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 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Has reasoning mode

GPT-5.2 Pro wins:

  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
Price Advantage
Claude Sonnet 4
Benchmark Advantage
GPT-5.2 Pro
Context Window
Claude Sonnet 4
Speed
GPT-5.2 Pro

Pricing Comparison

Price Comparison

MetricClaude Sonnet 4GPT-5.2 ProWinner
Input (per 1M tokens)$3.00$21.00 Claude Sonnet 4
Output (per 1M tokens)$15.00$168.00 Claude Sonnet 4
Cache Read (per 1M)$300000.00N/A Claude Sonnet 4
Cache Write (per 1M)$3750000.00N/A Claude Sonnet 4
Using a 3:1 input/output ratio, Claude Sonnet 4 is 90% cheaper overall.

Claude Sonnet 4 Providers

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

GPT-5.2 Pro Providers

OpenAI $21.00 (Cheapest)

Benchmark Comparison

8
Benchmarks Compared
0
Claude Sonnet 4 Wins
6
GPT-5.2 Pro Wins

Benchmark Scores

BenchmarkClaude Sonnet 4GPT-5.2 ProWinner
Intelligence Index
Overall intelligence score
33.051.2
Coding Index
Code generation & understanding
30.648.7
Math Index
Mathematical reasoning
38.099.0
MMLU Pro
Academic knowledge
83.787.4
GPQA
Graduate-level science
68.390.3
LiveCodeBench
Competitive programming
44.988.9
Aider
Real-world code editing
61.3--
AIME
Competition math
40.7--
GPT-5.2 Pro significantly outperforms in coding benchmarks.

Cost vs Quality

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

Context & Performance

Context Window

Claude Sonnet 4
1,000,000
tokens
Max output: 64,000 tokens
GPT-5.2 Pro
400,000
tokens
Max output: 128,000 tokens
Claude Sonnet 4 has a 60% larger context window.

Speed Performance

MetricClaude Sonnet 4GPT-5.2 ProWinner
Tokens/second70.3 tok/s98.3 tok/s
Time to First Token1.14s43.29s
GPT-5.2 Pro responds 40% faster on average.

Capabilities

Feature Comparison

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

License & Release

PropertyClaude Sonnet 4GPT-5.2 Pro
LicenseProprietaryProprietary
AuthorAnthropicOpenAI
ReleasedMay 2025Dec 2025

Claude Sonnet 4 Modalities

Input
imagetextfile
Output
text

GPT-5.2 Pro Modalities

Input
imagetextfile
Output
text

Related Comparisons

Compare Claude Sonnet 4 with:

Compare GPT-5.2 Pro with:

Frequently Asked Questions

Claude Sonnet 4 has cheaper input pricing at $3.00/M tokens. Claude Sonnet 4 has cheaper output pricing at $15.00/M tokens.
GPT-5.2 Pro scores higher on coding benchmarks with a score of 48.7, compared to Claude Sonnet 4's score of 30.6.
Claude Sonnet 4 has a 1,000,000 token context window, while GPT-5.2 Pro has a 400,000 token context window.
Claude Sonnet 4 supports vision. GPT-5.2 Pro supports vision.