Skip to main content

Model comparison

GPT-5.2-Codex vs Phi-4

Data verified

Head-to-head evidence from 11 shared benchmark results across 5 categories. Overall scores shown here use the public BenchAlign v5 ranking lane.

58.09/100
Margin
35.8pts
← winning
Microsoft
22.29/100
0 category wins0 category wins

Public leaderboard positions: GPT-5.2-Codex #66 (Supported); Phi-4 #202 (Supported). Intervals and evidence labels describe ranking uncertainty, not a guarantee for a specific workload.

Evidence parity. GPT-5.2-Codex and Phi-4 share 11 comparable benchmark results. 0 of 8 categories are comparable. 4 results are unique to GPT-5.2-Codex; 0 to Phi-4.

Updated July 28, 2026
Shared results
11
GPT-5.2-Codex only
4
Phi-4 only
0
Comparable categories
0 / 8

Benchmark data for GPT-5.2-Codex and Phi-4 is coming soon on BenchLM.

Confidence note. This is a partial-evidence comparison with 11 shared benchmark results across 5 evidence categories; 0 of 8 categories currently have scoreable aggregates for both models. Treat the verdict as directional until coverage is more balanced.

Why this result

BenchLM has partial data for these models, but not enough overlapping benchmark coverage to produce a fair score-level comparison yet.

GPT-5.2-Codex is priced at $1.75 input / $14.00 output per 1M tokens, versus $0.00 input / $0.00 output per 1M tokens for Phi-4. GPT-5.2-Codex has the larger context window at 400K, compared with 16K for Phi-4.

Category breakdown

Exact category averages are shown below. Not measured means BenchLM does not have enough sourced public coverage for that model and category.

Operational comparison

Runtime and commercial metrics are compared only when both models have a complete sourced value.

MetricGPT-5.2-CodexPhi-4Comparison
Input / output priceUSD per 1M tokensGPT-5.2-Codex$1.75 input / $14 outputPhi-4$0 input / $0 outputPhi-4 has the lower combined listed price.
Generation speedtokens per secondGPT-5.2-Codex123 tok/sPhi-435 tok/sGPT-5.2-Codex has the higher measured throughput.
First-answer latencyseconds to first tokenGPT-5.2-Codex87.34 sPhi-42.02 sPhi-4 reaches the first token sooner.
Context windowmaximum listed tokensGPT-5.2-Codex400KPhi-416KGPT-5.2-Codex lists the larger context window.

Benchmark Deep Dive

Agentic
BenchmarkGPT-5.2-CodexPhi-4Result
τ²-bench resultsSource 92.1%0%GPT-5.2-Codex leads
Gert LabsSource 51.79%Not comparable
JobBenchSource 26.0%Not comparable
Coding
BenchmarkGPT-5.2-CodexPhi-4Result
Vibe Code BenchSource 37.91%Not comparable
AA-SciCodeSource 54.6%26.0%GPT-5.2-Codex leads
Reasoning
BenchmarkGPT-5.2-CodexPhi-4Result
AA-LCRSource 75.7%0.0%GPT-5.2-Codex leads
CritPtSource 8.7%0.0%GPT-5.2-Codex leads
Knowledge
BenchmarkGPT-5.2-CodexPhi-4Result
Artificial Analysis Intelligence IndexSource 40.1%4.9%GPT-5.2-Codex leads
AA-GPQA DiamondSource 89.9%57.5%GPT-5.2-Codex leads
AA-HLESource 33.5%4.1%GPT-5.2-Codex leads
AA-Omniscience IndexSource -2.5%-56.7%GPT-5.2-Codex leads
AA-Omniscience AccuracySource 40.7%13.2%GPT-5.2-Codex leads
AA-Omniscience Hallucination RateSource 72.8%80.5%GPT-5.2-Codex leads
Multimodal
BenchmarkGPT-5.2-CodexPhi-4Result
AA-MMMU-ProSource 76.3%Not comparable
Inst. Following
BenchmarkGPT-5.2-CodexPhi-4Result
AA-IFBenchSource 77.6%23.5%GPT-5.2-Codex leads
Frequently Asked Questions (3)

Can I compare GPT-5.2-Codex and Phi-4 on BenchLM yet?

Not fully yet. BenchLM is tracking both models, but the sourced benchmark breakdown for this comparison is still coming soon.

Why does this comparison show “coming soon”?

BenchLM only shows category winners and benchmark-level calls when we have sourced results that can be compared fairly. For these models, the public benchmark coverage is not complete enough yet.

What data is available for GPT-5.2-Codex and Phi-4 today?

GPT-5.2-Codex: $1.75 input / $14.00 output per 1M tokens Phi-4: $0.00 input / $0.00 output per 1M tokens Both model pages still include creator, context window, reasoning mode, and other metadata while benchmark coverage fills in.

Related Comparisons

Last updated: July 28, 2026

Know when it’s worth switching models

The model to choose, the cheaper alternative, and the release we would wait on.

One email each week. Unsubscribe anytime.