Updated March 25, 2026· Based on independent benchmark data
OpenAI: GPT-5.2-Codex leads in intelligence with a score of 54.0 vs 51.7. OpenAI: GPT-5.2-Codex is 1.7x cheaper at $1.75/1M tokens vs $3.00/1M.
| Metric | Anthropic: Claude Sonnet 4 | OpenAI: GPT-5.2-Codex |
|---|---|---|
| Intelligence Score | 51.7 | 54.0 |
| Coding Score | 50.9 | 53.1 |
| Math Score | N/A | N/A |
| Speed (tok/s) | 65 tok/s | 68 tok/s |
| Latency (TTFT) | 38.68s | 75.14s |
| Input Price / 1M tokens | $3.00 | $1.75 |
| Output Price / 1M tokens | $15 | $14 |
| Context Window | 200K |
OpenAI: GPT-5.2-Codex outperforms Anthropic: Claude Sonnet 4 on the intelligence index with a score of 54.0 compared to 51.7. For coding tasks, OpenAI: GPT-5.2-Codex has the edge with a coding score of 53.1 vs 50.9.
Both models deliver similar output speeds: Anthropic: Claude Sonnet 4 at 65 tok/s and OpenAI: GPT-5.2-Codex at 68 tok/s. Time to first token is 38.68s for Anthropic: Claude Sonnet 4 vs 75.14s for OpenAI: GPT-5.2-Codex, which affects perceived responsiveness in interactive applications.
OpenAI: GPT-5.2-Codex is more affordable at $1.75/1M input tokens ($14/1M output), while Anthropic: Claude Sonnet 4 costs $3.00/1M input ($15/1M output). For a typical workload of 100 requests per day at 2,000 tokens each, Anthropic: Claude Sonnet 4 would cost approximately $18.00/month vs $10.50/month for OpenAI: GPT-5.2-Codex in input costs alone.
OpenAI: GPT-5.2-Codex offers a larger context window at 400K tokens compared to Anthropic: Claude Sonnet 4's 200K. For output length, OpenAI: GPT-5.2-Codex can generate up to 128K tokens per response vs 64K for Anthropic: Claude Sonnet 4.
Choose OpenAI: GPT-5.2-Codex when you need higher intelligence (54.0), stronger coding performance (53.1), lower cost.
OpenAI: GPT-5.2-Codex scores higher on coding benchmarks (53.1 vs 50.9), making it the better choice for programming tasks.
OpenAI: GPT-5.2-Codex is cheaper at $1.75/1M input tokens vs $3.00/1M for Anthropic: Claude Sonnet 4.
OpenAI: GPT-5.2-Codex is faster, producing output at 68 tok/s compared to Anthropic: Claude Sonnet 4's 65 tok/s.
Yes, Anthropic: Claude Sonnet 4 supports image input. OpenAI: GPT-5.2-Codex also supports images.
Data last synced: March 25, 2026
| 400K |
| Max Output Tokens | 64K | 128K |
| Input Modalities | Image + Text + File | Text + Image |
| Output Modalities | Text | Text |
| Free Tier | No | No |
OpenAI: GPT-5.2-Codex has a larger context window at 400K compared to Anthropic: Claude Sonnet 4's 200K.
It depends on your priorities. OpenAI: GPT-5.2-Codex scores higher on intelligence (54.0), but Anthropic: Claude Sonnet 4 may be better for specific use cases like budget-conscious projects or speed-critical applications.