The Known Good Updated 25 Jul 2026
Microsoft: Phi 4 vs OpenAI: GPT-5 Nano ·Microsoft vs OpenAI

Microsoft: Phi 4 vs OpenAI: GPT-5 Nano — head-to-head comparison

Microsoft: Phi 4 profile OpenAI: GPT-5 Nano profile All comparisons
Microsoft: Phi 4 — Microsoft
Quality
#50 of 61
33based on 3 of 6 evaluations
Known Good Index
Speed
#145 of 316
55.4
Output tokens per second
Price
#40 of 340
$0.09
Blended per 1M tokens
In $0.07 · Out $0.14
Cache hit price
unranked
per 1M tokens
Context
#334 of 345
16k
tokens (~25 pages)
OpenAI: GPT-5 Nano — OpenAI
Quality
#37 of 61
57based on 3 of 6 evaluations
Known Good Index
Speed
#28 of 316
121.4
Output tokens per second
Price
#56 of 340
$0.14
Blended per 1M tokens
In $0.05 · Out $0.40
Cache hit price
#13 of 206
$0.005
per 1M tokens (−90%)
Context
#105 of 345
400k
tokens (~600 pages)
Summary

On the Known Good Index, Microsoft: Phi 4 scores 33 and OpenAI: GPT-5 Nano scores 57 — a 24-point lead for OpenAI: GPT-5 Nano. They share 3 published evaluations, with Microsoft: Phi 4 ahead on 0 and OpenAI: GPT-5 Nano ahead on 3.

Blended pricing is $0.09 per 1M tokens for Microsoft: Phi 4 and $0.14 for OpenAI: GPT-5 Nano — Microsoft: Phi 4 is about 1.6× cheaper.

Throughput is 55 tokens per second for Microsoft: Phi 4 and 121 for OpenAI: GPT-5 Nano, with time to first token at 0.2s and 2.9s. Microsoft: Phi 4 accepts 16k tokens of context against 400k.

Microsoft: Phi 4 is open weights under Open weights (unrestricted); OpenAI: GPT-5 Nano is proprietary. 3 tracked hosts serve one or both.

Generated from tracked data on 26 Jul 2026 · how these comparisons are computed →

At a glance
MetricMicrosoft: Phi 4OpenAI: GPT-5 Nano
Known Good Index 33 based on 3 of 6 evaluations 57 based on 3 of 6 evaluations
Blended $/1M $0.09 $0.14
Output tok/s 55 121
Context window 16k 400k
Providers 1 2
Jump to section

Quality

Known Good Index and the capability indices, side by side

IndicesComponents
Index scores

Each index is min-max normalised across tracked models and scaled 0–100 from published evaluations. We do not run these evaluations.

MetricMicrosoft: Phi 4OpenAI: GPT-5 Nano
Known Good Index 33 57
Mathematics Index 39 89
Science Index 53 69
Reasoning Index 47
Agentic Index 21
Openness Index 60 5
The Known Good

Quality Breakdown

Every evaluation both models report a published score for

Evaluations both models report

Bar = Microsoft: Phi 4 · marker = OpenAI: GPT-5 Nano · scores ingested from Epoch AI (CC-BY 4.0)

GPQA Diamond56 / 69
MATH / AIME14 / 81
MATH Level 565 / 95

Right-hand figures read Microsoft: Phi 4 / OpenAI: GPT-5 Nano. Microsoft: Phi 4 leads on 0 of 3, OpenAI: GPT-5 Nano on 3.

The Known Good

Arena Elo

Human preference rating from blind pairwise votes

Arena ratings

Elo from blind pairwise votes, ingested from Arena. Higher is better.

MetricMicrosoft: Phi 4OpenAI: GPT-5 Nano
Text Arena 1,217
Text Arena (style controlled) 1,256
The Known Good

Price & Cost

Published API pricing by token type

Per token typeCache discount
Published pricing

USD per 1M tokens. Blended is a 3:1 input:output mix. Live from OpenRouter, cross-checked against models.dev. Lower is better.

MetricMicrosoft: Phi 4OpenAI: GPT-5 Nano
Input $/1M $0.07 $0.05
Output $/1M $0.14 $0.40
Blended $/1M $0.09 $0.14
Cache read $/1M $0.005
The Known Good
We publish blended price rather than cost-per-task. Cost-per-task requires token counts from an evaluation suite we do not run. Blended price is computed from published rates and is fully reproducible — see the pricing methodology.

Context Window

Maximum input accepted and maximum output emitted

Context and output limits

Provider-declared limits, from metadata via models.dev and OpenRouter. Higher is better.

MetricMicrosoft: Phi 4OpenAI: GPT-5 Nano
Context window 16k 400k
Max output tokens 16k 128k
The Known Good

Speed & Latency

Median throughput and time to first token across hosting providers

Output speedTime to first token
Throughput and latency

Medians across all tracked providers, derived from OpenRouter endpoint telemetry.

MetricMicrosoft: Phi 4OpenAI: GPT-5 Nano
Output tokens/s 55 121
Time to first token 0.2s 2.9s
The Known Good

Providers

Which hosts serve each model, and at what price and speed

3 hosts
Full provider benchmarks →
Provider Microsoft: Phi 4 blendedMicrosoft: Phi 4 tok/s OpenAI: GPT-5 Nano blendedOpenAI: GPT-5 Nano tok/s
DeepInfra $0.09 38
OpenAI · first party $0.07 205
Azure · first party $0.14 63

Per-host pricing and telemetry from OpenRouter. A dash means that host does not serve that model.

The Known Good
Sources for this page
Pricing & providers — OpenRouter Metadata — models.dev Benchmarks — Epoch AI (CC-BY 4.0)Elo — Arena Full attribution →