Skip to content

Claude Sonnet 4.6 vs GPT-5.2-Codex

Claude Sonnet 4.6

Anthropic

85#64
vs
GPT-5.2-Codex

OpenAI

91#23
Signal-by-Signal Comparison
SignalClaude Sonnet 4.6DeltaGPT-5.2-Codex
Capabilities
100
--
100
Benchmarks
82
-7
89
Pricing
85
-1
86
Context window size
95
+6
89
Recency
93
+6
87
Output Capacity
82
--
82
Overall Result
2 wins
of 6
2 wins
It's a tie - both models win 2 signals each

Score History

Score History (32 data points)
Claude Sonnet 4.6GPT-5.2-Codex
Claude Sonnet 4.6

85.2

current score

Leader

GPT-5.2-Codex

right now

GPT-5.2-Codex

90.5

current score

LMMarketCap.com
Interactive Price Comparison
100Kcalls/month
1,000tokens (~1,333 chars)
500tokens (~667 chars)

Claude Sonnet 4.6

Anthropic

Per request$0.010500
Daily$35.00
Monthly$1050.00
Annual$12600.00

GPT-5.2-Codex

OpenAI

Best Value
Per request$0.008750
Daily$29.17
Monthly$875.00
Annual$10500.00

GPT-5.2-Codex saves you $175.00/month

That's $2100.00/year compared to Claude Sonnet 4.6 at your current usage level of 100K calls/month.

17% cheaper
Choose GPT-5.2-Codex for cost optimization

Claude Sonnet 4.6 pricing:
Input:$3.00/M tokens
Output:$15.00/M tokens
GPT-5.2-Codex pricing:
Input:$1.75/M tokens
Output:$14.00/M tokens
Claude Sonnet 4.6

Anthropic

85

Composite Score

Winner
GPT-5.2-Codex

OpenAI

91

Composite Score

Signal-by-Signal Comparison
MetricClaude Sonnet 4.6GPT-5.2-CodexWinner
Overall Score
85
91
GPT-5.2-Codex
Rank#64#23
GPT-5.2-Codex
Quality Rank#64#23
GPT-5.2-Codex
Adoption Rank#64#23
GPT-5.2-Codex
Parameters------
Context Window1000K400K
Claude Sonnet 4.6
Pricing$3.00/$15.00/M$1.75/$14.00/M--
Signal Scores
Capabilities
100
100
Claude Sonnet 4.6
Benchmarks
82
89
GPT-5.2-Codex
Pricing
85
86
GPT-5.2-Codex
Context window size
95
89
Claude Sonnet 4.6
Recency
93
87
Claude Sonnet 4.6
Output Capacity
82
82
Claude Sonnet 4.6
Benchmark Head-to-Head(13 benchmarks)
Claude Sonnet: 1GPT-5.2-Codex: 10
Claude Sonnet
GPT-5.2-Codex
Normalized 0-100%
MMLU
91.2%93.5%
MMLU-Pro
79%86%
GPQA Diamond
82%87%
MATH-500
85.3%94%
HumanEval
95.2%97%
SWE-bench Verified
79.6%78%
AIME 2024
65%-
IFEval
91%93%
BBH
89.8%91.5%
Arena Elo
14601481
LiveBench
73.2%77.5%
HLE
30.5%37%
BigCodeBench
68.4%-
Benchmark Interpretation

Our score (0-100) is driven by benchmark performance (90%) from Arena Elo ratings, MMLU, GPQA, HumanEval, SWE-bench, and 15+ standardized evaluations. Capabilities and context window serve as tiebreakers (10%). Learn more about our methodology.

Claude Sonnet 4.6Elite Tier

Scores 85/100 (rank #64), placing it in the top 78% of all 290 models tracked.

Raw Quality0/100
Cost Efficiency0/100
Speed0/100
GPT-5.2-CodexElite Tier

Scores 91/100 (rank #23), placing it in the top 92% of all 290 models tracked.

Raw Quality0/100
Cost Efficiency0/100
Speed0/100

GPT-5.2-Codex has a 5-point advantage, which typically translates to noticeably better performance on complex reasoning, code generation, and multi-step tasks.

When to Use Each Model

Choose Claude Sonnet 4.6 when you need:

  • Processing long documents or large codebases (1000K token context)
  • Step-by-step reasoning and chain-of-thought problem solving

Choose GPT-5.2-Codex when you need:

  • Step-by-step reasoning and chain-of-thought problem solving
Cost-Performance Analysis
Claude Sonnet 4.6
Input cost$3.00/M tokens
Output cost$15.00/M tokens
Cost per quality point$0.211
Est. monthly (1M tokens/day)$270.00
GPT-5.2-CodexBest Value
Input cost$1.75/M tokens
Output cost$14.00/M tokens
Cost per quality point$0.174
Est. monthly (1M tokens/day)$236.25

GPT-5.2-Codex offers 13% better value per quality point. At 1M tokens/day, you'd spend $236.25/month with GPT-5.2-Codex vs $270.00/month with Claude Sonnet 4.6 - a $33.75 monthly difference.

Latency & Speed
Claude Sonnet 4.6Faster
Speed score0/100
GPT-5.2-Codex
Speed score0/100

Both models have comparable response speeds. For most applications, the latency difference is negligible.

When latency matters most: Interactive chatbots, IDE code completion, real-time translation, and user-facing applications where response time directly impacts experience. For batch processing, background summarization, or offline analysis, latency is less critical.

Example Use Cases

Code generation & review

Based on overall model capabilities and architecture for coding tasks like generating functions, debugging, and refactoring

Claude Sonnet 4.6

Customer support chatbot

Suitable for user-facing chat with competitive response times. GPT-5.2-Codex also offers lower per-token costs for high-volume support

Claude Sonnet 4.6

Long document analysis

Larger context window (1000K tokens) can process longer documents, contracts, and research papers in a single pass

Claude Sonnet 4.6

Batch data extraction

Lower output pricing ($14.00/M) reduces costs when processing thousands of records daily

GPT-5.2-Codex

Creative writing & content

Higher overall composite score (91/100) correlates with better nuance, coherence, and style in long-form content

GPT-5.2-Codex

Image understanding & OCR

Supports vision input - can analyze screenshots, diagrams, photos, and scanned documents directly

Claude Sonnet 4.6
Which Should You Choose?
Our recommendation:
GPT-5.2-Codex

GPT-5.2-Codex has a moderate advantage with a 5.299999999999997-point lead in composite score. It wins on more signal dimensions, but Claude Sonnet 4.6 has specific strengths that could make it the better choice for certain workflows.

by Anthropic

  • Choose for Quality - Marginally better benchmark scores; both are excellent
  • Choose for Reliability - Higher uptime and faster response speeds
  • Choose for Prototyping - Stronger community support and better developer experience
  • Choose for Production - Wider enterprise adoption and proven at scale
GPT-5.2-Codex
Recommended

by OpenAI

  • Choose for Cost - 13% lower pricing; better value at scale
Capability Comparison
CapabilityClaude Sonnet 4.6GPT-5.2-Codex
Vision (Image Input)
Function Calling
Streaming
JSON Mode
Reasoning
Web Search
Image Output
Monthly Cost Calculator
1,000tokens (600 in / 400 out)
100requests/day (3,000/month)

Claude Sonnet 4.6

Anthropic

$23.40
estimated monthly cost

GPT-5.2-Codex

OpenAI

Best Value
$19.95
estimated monthly cost

GPT-5.2-Codex saves you $3.45/month

That's 15% cheaper than Claude Sonnet 4.6 at 1,000 tokens/request and 100 requests/day.

Assumes 60% input / 40% output token ratio per request. Actual costs may vary based on your usage pattern.

Parameters & Context
ParameterClaude Sonnet 4.6GPT-5.2-Codex
Context Window1M400K
Max Output Tokens128,000128,000
Open SourceNoNo
CreatedFeb 17, 2026Jan 14, 2026
Last updated: 29m ago

Related comparisons

Claude Sonnet 4.6 vs GPT-5.2-Codex (2026) | LM Market Cap