← 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

MetricGPT-5.2 CodexClaude Haiku 4.5Difference
Input / 1M tokens$1.75$0.80-54%
Output / 1M tokens$14.00$4.00-71%
Context window200K200K
Max output65.536K8.192K

Benchmark Comparison

BenchmarkGPT-5.2 CodexClaude Haiku 4.5
MMLU-Pro89%69.4%
HumanEval95.5%88.1%
GPQA76%

Capabilities

CapabilityGPT-5.2 CodexClaude 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.

More Comparisons