← All Comparisons
GPT-5.2 Codex vs Claude Haiku 4.5
A detailed comparison of GPT-5.2 Codex (OpenAI) and Claude Haiku 4.5 (Anthropic) across pricing, performance, and features.
Pricing Comparison
| Metric | GPT-5.2 Codex | Claude Haiku 4.5 | Difference |
|---|---|---|---|
| Input / 1M tokens | $1.75 | $0.80 | -54% |
| Output / 1M tokens | $14.00 | $4.00 | -71% |
| Context window | 200K | 200K | — |
| Max output | 65.536K | 8.192K | — |
Benchmark Comparison
| Benchmark | GPT-5.2 Codex | Claude Haiku 4.5 |
|---|---|---|
| MMLU-Pro | 89% | 69.4% |
| HumanEval | 95.5% | 88.1% |
| GPQA | 76% | — |
Capabilities
| Capability | GPT-5.2 Codex | Claude Haiku 4.5 |
|---|---|---|
| code | ✓ | ✓ |
| reasoning | ✓ | ✗ |
| text | ✓ | ✓ |
| tool-use | ✓ | ✓ |
| vision | ✓ | ✓ |
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
Claude Haiku 4.5 Strengths
- ✓Very fast responses
- ✓Cheapest Anthropic option
- ✓Good for classification and extraction
Claude Haiku 4.5 Weaknesses
- ✗Weakest reasoning in the Claude family
- ✗Can struggle with nuanced instructions
Quick Verdict
Best value: Claude Haiku 4.5 is the more affordable option at $0.8/$4 per 1M tokens.
Higher benchmarks: GPT-5.2 Codex scores higher on average across available benchmarks (86.8% avg).
Choose Claude Haiku 4.5 if cost matters most. Choose GPT-5.2 Codex if you need the best possible quality for complex tasks.