GPT-4.5 vs GPT-5.2-Codex
Both have similar output pricing, while GPT-5.2-Codex offers a larger context window. Choose GPT-4.5 or GPT-5.2-Codex based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | GPT-4.5 | GPT-5.2-Codex |
|---|---|---|
| Provider | OpenAI | OpenAI |
| Input / 1M tokens | — | $1.75 |
| Output / 1M tokens | — | $14.00 |
| Context window | — | 400K |
| Parameters | — | — |
| Open weights | No | No |
| Released | Feb 2025 | Dec 2025 |
| Aider Polyglot score | 44.9 | — |
| Epoch Capabilities Index score | 137 | — |
| LiveBench score | — | 74.3 |
| SWE-bench Multilingual score | — | 66.3 |
| LMArena WebDev Elo score | — | 1339 |
| SWE-bench Verified score | — | 72.8 |
FAQ
Is GPT-4.5 or GPT-5.2-Codex cheaper?
GPT-4.5 and GPT-5.2-Codex have comparable output pricing.
Which has the larger context window, GPT-4.5 or GPT-5.2-Codex?
GPT-5.2-Codex has the larger context window (400K tokens).
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.