← All Comparisons
Claude Opus 4.6 vs GPT-5.2 Codex
A detailed comparison of Claude Opus 4.6 (Anthropic) and GPT-5.2 Codex (OpenAI) across pricing, performance, and features.
Pricing Comparison
| Metric | Claude Opus 4.6 | GPT-5.2 Codex | Difference |
|---|---|---|---|
| Input / 1M tokens | $5.00 | $1.75 | -65% |
| Output / 1M tokens | $25.00 | $14.00 | -44% |
| Context window | 200K | 200K | — |
| Max output | 32K | 65.536K | — |
Benchmark Comparison
| Benchmark | Claude Opus 4.6 | GPT-5.2 Codex |
|---|---|---|
| MMLU-Pro | 89.5% | 89% |
| HumanEval | 95% | 95.5% |
| GPQA | 75.5% | 76% |
Capabilities
| Capability | Claude Opus 4.6 | GPT-5.2 Codex |
|---|---|---|
| code | ✓ | ✓ |
| reasoning | ✓ | ✓ |
| text | ✓ | ✓ |
| tool-use | ✓ | ✓ |
| vision | ✓ | ✓ |
Claude Opus 4.6 Strengths
- ✓Best-in-class agentic tool use and coding
- ✓1M context available in beta (Tier 4)
- ✓Strong at following complex multi-step instructions
Claude Opus 4.6 Weaknesses
- ✗Premium pricing ($10/$37.50 at 1M context)
- ✗1M context beta is Tier 4 only
GPT-5.2 Codex Strengths
- ✓Strong coding performance
- ✓Available via API now
- ✓200K context window
GPT-5.2 Codex Weaknesses
- ✗Being superseded by 5.3
- ✗Higher output cost than some competitors
Quick Verdict
Best value: GPT-5.2 Codex is the more affordable option at $1.75/$14 per 1M tokens.
Higher benchmarks: GPT-5.2 Codex scores higher on average across available benchmarks (86.8% avg).
Choose GPT-5.2 Codex if cost matters most. Choose Claude Opus 4.6 if you need the best possible quality for complex tasks.