Claude 3.5 Sonnet vs GPT-5.2 Codex Comparison

Comparing Claude 3.5 Sonnet and GPT-5.2 Codex across benchmarks, pricing, and capabilities.

Performance Benchmarks

Comparative analysis across standard metrics

No common benchmarks found

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

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

GPT-5.2 Codex costs less

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

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

In conclusion, Claude 3.5 Sonnet 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 Mar 17 2026 • llm-stats.com
Anthropic
Claude 3.5 Sonnet
Input tokens$3.00
Output tokens$15.00
Best providerAWS Bedrock
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 3.5 Sonnet's 200,000 tokens. Claude 3.5 Sonnet can generate longer responses up to 200,000 tokens, while GPT-5.2 Codex is limited to 128,000 tokens.

Anthropic
Claude 3.5 Sonnet
Input200,000 tokens
Output200,000 tokens
OpenAI
GPT-5.2 Codex
Input400,000 tokens
Output128,000 tokens
Tue Mar 17 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

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

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

Claude 3.5 Sonnet

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 3.5 Sonnet

Proprietary

Closed source

GPT-5.2 Codex

Proprietary

Closed source

Release Timeline

When each model was launched

Claude 3.5 Sonnet was released on 2024-06-21, while GPT-5.2 Codex was released on 2026-01-14.

GPT-5.2 Codex is 19 months newer than Claude 3.5 Sonnet.

Claude 3.5 Sonnet

Jun 21, 2024

1.7 years ago

GPT-5.2 Codex

Jan 14, 2026

2 months ago

1.6yr newer

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 3.5 Sonnet is available from Bedrock, Google. GPT-5.2 Codex is available from OpenAI. The availability of providers can affect quality of the model and reliability.

Claude 3.5 Sonnet

bedrock logo
AWS Bedrock
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
google logo
Google
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
AnthropicClaude 3.5 Sonnet
OpenAIGPT-5.2 Codex

Detailed Comparison

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