LLMcompare

Search

Search for a command to run...

A · open · Phi

Phi-4-mini

Microsoft

B · open · Phi

Phi-4 Reasoning

Microsoft

1:5

overall capability wins (1 ties across 7 scored). Phi-4 Reasoning leads overall.

  • Reasoning0:3
  • Coding0:1
  • Pricing0:3
  • Speed2:0
  • Specs1:1

Verdict

Phi-4 Reasoning leads coding (widest gap: +41.2 on LiveCode); Phi-4-mini offers ~4.0x larger context (131K vs 33K); Phi-4 Reasoning is ~1.5x cheaper on a blended token basis than Phi-4-mini.

  • Phi-4 Reasoning leads coding (widest gap: +41.2 on LiveCode)
  • Phi-4-mini offers ~4.0x larger context (131K vs 33K)
  • Phi-4 Reasoning is ~1.5x cheaper on a blended token basis than Phi-4-mini

Cost for 1M in + 250K out

Illustrative chat workload at primary-provider list prices.

Phi-4-mini
$0.15
Phi-4 Reasoning
$0.11

Phi-4 Reasoning is about 1.4x cheaper on this workload.

Price per 1M tokens

Full comparison

Organization

Microsoft

Microsoft

Family

Phi

Phi

License

MIT

MIT

Open weights

Yes

Yes

Release

Feb 1, 2025

Apr 30, 2025

Knowledge cutoff

-

-

API / provider

Azure AI Foundry

Azure / self-host

Modalities

text → text

text → text

Specs

Context window

131K

33K

A +98K

Max output

16K

16K

tie

Parameters

3.8B

14B

B +10

Pricing

Input $/1M

$0.07

$0.07

B +$0.005

Output $/1M

$0.30

$0.14

B +$0.16

Blended $/1M (3∶1)

$0.13

$0.09

B +$0.04

Speed

tok/s

140

80

A +60

TTFT (s)

0.18

0.5

A +0.32

Reasoning

MMLU-Pro

52.8

74.3

B +21.5 pts

GPQA Diamond

33.1

65.8

B +32.7 pts

Humanity's Last Exam

4.5

—

—

AIME 2025

6.7

62.9

B +56.2 pts

MATH-500

69.6

—

—

Humanity's Last Exam (with tools)

—

—

—

AA-Omniscience Accuracy

9.5

—

—

AA-LCR v1.1

15.3

—

—

CritPt

—

—

—

MMMU-Pro

—

—

—

IFBench

21.1

—

—

Chartography

—

—

—

Chartography (With Tools)

—

—

—

Coding

SWE-bench Verified

—

—

—

SWE-bench Pro

—

—

—

SWE-bench Multilingual

—

—

—

LiveCodeBench

12.6

53.8

B +41.2 pts

Terminal-Bench 2.1

0.4

—

—

Aider Polyglot

—

—

—

Terminal-Bench 3

—

—

—

BigCodeBench

—

—

—

SciCode

10.8

—

—

CursorBench

—

—

—

SWE-Rebench

—

—

—

NL2Repo-Bench

—

—

—

DeepSWE

—

—

—

WebDev Arena

—

—

—

Terminal-Bench 4.0

—

—

—

CursorBench 4.0

—

—

—

FrontierCode v1.1 (Main)

—

—

—

Arena

LMArena Elo

—

—

—

Phi-4-mini

Context
131K / 16K out
Parameters
3.8B
Price
$0.07 / $0.30
Speed
140 tok/s · 0.18s TTFT
Modalities
text → text
License
MIT

Next-gen Microsoft SLM with grouped-query attention and built-in function calling — strong edge and mobile deployment choice.

Phi-4 Reasoning

Context
33K / 16K out
Parameters
14B
Price
$0.07 / $0.14
Speed
80 tok/s · 0.5s TTFT
Modalities
text → text
License
MIT

Reasoning-tuned Phi-4 variant for math and science on constrained hardware.

Benchmark charts

Winner bars are emphasized. Per-benchmark deltas sit above each chart.

Reasoning & knowledge

MMLU-Pro: B +21.5GPQA: B +32.7AIME: B +56.2

Coding

LiveCode: B +41.2

Pick a different pair · Back to catalog