The AI arena is free today

Open Superagent

Claude Sonnet 4.5 vs GPT-5.2 Codex

Claude Sonnet 4.5 and GPT-5.2 Codex are closely matched at 32.4 and 34.4 on the LLM Stats Score. GPT-5.2 Codex is 1.2x cheaper per token.

Anthropic · OpenAI · Updated for 2026

Which is better?

Claude Sonnet 4.5 and GPT-5.2 Codex are closely matched on the overall LLM Stats Score at 32.4 and 34.4.

On price, GPT-5.2 Codex is roughly 1.2x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

GPT-5.2 Codex also accepts a larger context window (400,000 input tokens), making it the stronger choice for long documents and large codebases.

Based on current LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.

Choose Claude Sonnet 4.5

  • you want predictable pricing at $3.00/M input and $15.00/M output

Choose GPT-5.2 Codex

  • cost matters — it's about 1.2x cheaper per token
  • you process long inputs — it offers a 400,000 token context window
  • you want the most recent training data — it shipped Jan 2026

At a glance

The differences that matter most.

Core performance indexes
32.4
#98
34.4
#86
31.5
#100
34.8
#80
21.7
#81
25.1
#66
18.3
#62
18.7
#61
Cost, coverage & limits
Benchmark wins
Input price
$3.00 / M
$1.75 / M
Output price
$15.00 / M
$14.00 / M
Context window
200,000
400,000

Individual benchmarks

9 reported for Claude Sonnet 4.5 · 3 for GPT-5.2 Codex

No common benchmarks found

Claude Sonnet 4.5 and GPT-5.2 Codexdon't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Human preference

Blind head-to-head votes and playground preference scores

Pricing Analysis

Price comparison per million tokens

GPT-5.2 Codex costs less

For input processing, Claude Sonnet 4.5 ($3.00/1M tokens) is 1.7x more expensive than GPT-5.2 Codex ($1.75/1M tokens).

For output processing, Claude Sonnet 4.5 ($15.00/1M tokens) is 1.1x more expensive than GPT-5.2 Codex ($14.00/1M tokens).

In conclusion, Claude Sonnet 4.5 is more expensive than GPT-5.2 Codex.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Sun Sep 06 2026 • llm-stats.com
Anthropic
Claude Sonnet 4.5
Input tokens$3.00
Output tokens$15.00
Best providerAnthropic
OpenAI
GPT-5.2 Codex
Input tokens$1.75
Output tokens$14.00
Best providerOpenAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

GPT-5.2 Codex accepts 400,000 input tokens compared to Claude Sonnet 4.5's 200,000 tokens. GPT-5.2 Codex can generate longer responses up to 128,000 tokens, while Claude Sonnet 4.5 is limited to 64,000 tokens.

Anthropic
Claude Sonnet 4.5
Input200,000 tokens
Output64,000 tokens
OpenAI
GPT-5.2 Codex
Input400,000 tokens
Output128,000 tokens
Sun Sep 06 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

Both Claude Sonnet 4.5 and GPT-5.2 Codex support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

Claude Sonnet 4.5

Text
Images
Audio
Video

GPT-5.2 Codex

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

Claude Sonnet 4.5

Proprietary

Closed source

GPT-5.2 Codex

Proprietary

Closed source

Release Timeline

When each model was launched

Claude Sonnet 4.5 was released on 2025-09-29, while GPT-5.2 Codex was released on 2026-01-14.

GPT-5.2 Codex is 4 months newer than Claude Sonnet 4.5.

Claude Sonnet 4.5

Sep 29, 2025

11 months ago

GPT-5.2 Codex

Jan 14, 2026

7 months ago

3mo newer

Knowledge Cutoff

When training data ends

Claude Sonnet 4.5 has a documented knowledge cutoff of 2025-01-31, while GPT-5.2 Codex's cutoff date is not specified.

We can confirm Claude Sonnet 4.5's training data extends to 2025-01-31, but cannot make a direct comparison without GPT-5.2 Codex's cutoff date.

Claude Sonnet 4.5

Jan 2025

GPT-5.2 Codex

Provider Availability

Claude Sonnet 4.5 is available from Anthropic. GPT-5.2 Codex is available from OpenAI.

Claude Sonnet 4.5

anthropic logo
Anthropic
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M

GPT-5.2 Codex

openai logo
OpenAI
Input Price:Input: $1.75/1MOutput Price:Output: $14.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against Claude Sonnet 4.5 and GPT-5.2 Codex side-by-side, then vote on the output you prefer.

Claude Sonnet 4.5
✓ Preferred
GPT-5.2 Codex
Open in Playground

FAQ

Common questions about Claude Sonnet 4.5 vs GPT-5.2 Codex.

Which is better, Claude Sonnet 4.5 or GPT-5.2 Codex?

Claude Sonnet 4.5 and GPT-5.2 Codex are closely matched on the LLM Stats Score at 32.4 and 34.4. Claude Sonnet 4.5 is made by Anthropic and GPT-5.2 Codex is made by OpenAI. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

How does Claude Sonnet 4.5 compare to GPT-5.2 Codex in benchmarks?

Claude Sonnet 4.5 scores MMMLU: 89.1%, AIME 2025: 87.0%, TAU-bench Retail: 86.2%, GPQA: 83.4%, MMMUval: 77.8%. GPT-5.2 Codex scores LiveBench: 74.3%, Terminal-Bench 2.0: 64.0%, SWE-Bench Pro: 56.4%.

Is Claude Sonnet 4.5 cheaper than GPT-5.2 Codex?

GPT-5.2 Codex is 1.7x cheaper for input tokens. Claude Sonnet 4.5 costs $3.00/M input and $15.00/M output via anthropic. GPT-5.2 Codex costs $1.75/M input and $14.00/M output via openai.

What are the context window sizes for Claude Sonnet 4.5 and GPT-5.2 Codex?

Claude Sonnet 4.5 supports 200K tokens and GPT-5.2 Codex supports 400K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Claude Sonnet 4.5 and GPT-5.2 Codex?

Key differences include LLM Stats Score (32.4 vs 34.4), context window (200K vs 400K), input pricing ($3.00 vs $1.75/M). See the full comparison above for benchmark-by-benchmark results.

Who makes Claude Sonnet 4.5 and GPT-5.2 Codex?

Claude Sonnet 4.5 is developed by Anthropic and GPT-5.2 Codex is developed by OpenAI.