Model Comparison

Claude Sonnet 4.6 vs GPT-5.2 Codex

GPT-5.2 Codex significantly outperforms across most benchmarks. GPT-5.2 Codex is 1.2x cheaper per token.

Performance Benchmarks

Comparative analysis across standard metrics

1 benchmarks

Claude Sonnet 4.6 outperforms in 0 benchmarks, while GPT-5.2 Codex is better at 1 benchmark (Terminal-Bench 2.0).

GPT-5.2 Codex significantly outperforms across most benchmarks.

Tue Apr 07 2026 • llm-stats.com

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

GPT-5.2 Codex costs less

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

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

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

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

Lowest available price from all providers
Tue Apr 07 2026 • llm-stats.com
Anthropic
Claude Sonnet 4.6
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.6's 200,000 tokens. GPT-5.2 Codex can generate longer responses up to 128,000 tokens, while Claude Sonnet 4.6 is limited to 64,000 tokens.

Anthropic
Claude Sonnet 4.6
Input200,000 tokens
Output64,000 tokens
OpenAI
GPT-5.2 Codex
Input400,000 tokens
Output128,000 tokens
Tue Apr 07 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both Claude Sonnet 4.6 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.6

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.6

Proprietary

Closed source

GPT-5.2 Codex

Proprietary

Closed source

Release Timeline

When each model was launched

Claude Sonnet 4.6 was released on 2026-02-17, while GPT-5.2 Codex was released on 2026-01-14.

Claude Sonnet 4.6 is 1 month newer than GPT-5.2 Codex.

Claude Sonnet 4.6

Feb 17, 2026

1 months ago

1mo newer
GPT-5.2 Codex

Jan 14, 2026

2 months ago

Knowledge Cutoff

When training data ends

Neither model specifies a knowledge cutoff date.

Unable to compare the recency of their training data.

No cutoff dates available

Provider Availability

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

Claude Sonnet 4.6

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

Key Takeaways

Larger context window (400,000 tokens)
Less expensive input tokens
Less expensive output tokens
Higher Terminal-Bench 2.0 score (64.0% vs 59.1%)

Detailed Comparison

AI Model Comparison Table
Feature
Anthropic
Claude Sonnet 4.6
OpenAI
GPT-5.2 Codex

FAQ

Common questions about Claude Sonnet 4.6 vs GPT-5.2 Codex

GPT-5.2 Codex significantly outperforms across most benchmarks. Claude Sonnet 4.6 is made by Anthropic and GPT-5.2 Codex is made by OpenAI. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.
Claude Sonnet 4.6 scores Tau2 Telecom: 97.9%, Tau2 Retail: 91.7%, GPQA: 89.9%, MMMLU: 89.3%, SWE-Bench Verified: 79.6%. GPT-5.2 Codex scores Terminal-Bench 2.0: 64.0%, SWE-Bench Pro: 56.4%.
GPT-5.2 Codex is 1.7x cheaper for input tokens. Claude Sonnet 4.6 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.
Claude Sonnet 4.6 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.
Key differences include context window (200K vs 400K), input pricing ($3.00 vs $1.75/M). See the full comparison above for benchmark-by-benchmark results.
Claude Sonnet 4.6 is developed by Anthropic and GPT-5.2 Codex is developed by OpenAI.