← All Comparisons

Claude Haiku 4.5 vs GPT-5.2 Codex

A detailed comparison of Claude Haiku 4.5 (Anthropic) and GPT-5.2 Codex (OpenAI) across pricing, performance, and features.

Pricing Comparison

MetricClaude Haiku 4.5GPT-5.2 CodexDifference
Input / 1M tokens$0.80$1.75+119%
Output / 1M tokens$4.00$14.00+250%
Context window200K200K
Max output8.192K65.536K

Benchmark Comparison

BenchmarkClaude Haiku 4.5GPT-5.2 Codex
MMLU-Pro69.4%89%
HumanEval88.1%95.5%
GPQA76%

Capabilities

CapabilityClaude Haiku 4.5GPT-5.2 Codex
code
reasoning
text
tool-use
vision

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

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: 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