Alternatives to GPT-5.2-Codex
These models are alternatives by measurable coding evidence: they share the current closed-model classificationand are closest to GPT-5.2-Codex's SWE-bench score. Similarity here does not mean identical capabilities, licence terms, or output quality.
The target model
SWE-bench
72.4%
Cheapest input
$1.75
Cheapest output
$14.00
Hosts
3
| Alternative | SWE-bench | Input $/MTok | Output $/MTok | Hosts | Context | Tradeoff |
|---|---|---|---|---|---|---|
| GLM 5 | 72.1% | $0.60 | $1.92 | 31 | 203k | lower input price |
| GPT-4o (2024-08-06) | 71.9% | $2.50 | $10.00 | 4 | 128k | higher input price |
| GPT-5.4 Mini | 73.0% | $0.75 | $4.50 | 4 | 400k | lower input price |
| Grok 4.3 | 71.4% | $1.25 | $2.50 | 2 | 1.0M | lower input price |
| MiniMax M2.7 | 73.8% | $0.24 | $0.96 | 21 | 197k | lower input price |
| GLM 5.1 | 74.2% | $0.91 | $2.86 | 44 | 203k | lower input price |
| MiniMax M2.5 | 74.2% | $0.15 | $0.59 | 31 | 197k | lower input price |
| MiniMax M2.1 | 74.8% | $0.29 | $0.95 | 8 | 197k | lower input price |
| Claude Sonnet 4.5 | 70.0% | $3.00 | $15.00 | 10 | 1.0M | higher input price |
| Gemini 3.5 Flash-Lite | 75.0% | $0.15 | $1.25 | 4 | — | lower input price |
| MiniMax M3 | 75.0% | $0.23 | $0.96 | 28 | 262k | lower input price |
| gpt-5.4-nano | 69.8% | $0.20 | $1.25 | 4 | — | lower input price |
How alternatives are selected
Alternatives must have a benchmark score and the same current open/closed classification as the target. They are sorted by score distance, then by price/performance. The table compares hosted API economics; it does not establish licence compatibility or self-hosting rights.
Check the model licence, provider Terms, context limits, tool support, and output quality before switching a production workload.