Enter opens the highlighted result. Esc closes.

Phi 4 vs Hy4 preview

Phi 4 costs 16.1x less per output token than Hy4 preview ($0.14 vs $2.2509 per million). Updated October 21, 2026; no benchmark has tested both models yet.

Phi 4Microsoft
Coding
No data
Overall
24.7
Output $/M
$0.14
Hy4 previewTencent
Coding
44.3
Overall
No data
Output $/M
$2.2509
vs $0.14 vs $2.2509 per 1M output tokens. Phi 4 is 16.1x cheaper.

Phi 4 or Hy4 preview: which to pick

Only Hy4 preview has a coding score, 44.3 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.

Pick Phi 4 for output tokens 16.1x cheaper ($0.14 vs $2.2509 per million).

No benchmark has tested both yet. Phi 4 has results on LiveCodeBench (Artificial Analysis run), Terminal-Bench Hard (Artificial Analysis run) and LMArena Text: coding; Hy4 preview on LMArena WebDev, Terminal-Bench 4 (Vals AI) and Vibe Code Bench (Vals AI). Compare them on price and context instead.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Phi 4 not benchmarked, Hy4 preview 44.3 from 3 benchmarks.
Widest category
None yet: no category has been tested on both models.
Widest single gap
None yet: no benchmark has tested both models.
Output price
Phi 4 $0.14 against Hy4 preview $2.2509 per million output tokens, 16.1x apart.
Context window
Phi 4 takes 16K tokens, Hy4 preview 1.05M.

Benchmark by benchmark

Every board either model has a result on, a category to a fold; bars are each result on a 0 to 100 scale. Only one model is measured on each, so no row names a leader.

CodingDirectional onlySix of these boards feed the Vibe Coding Index14 boards measured
Coding benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
LMArena WebDevNot measured1631Only Hy4 preview measured
Terminal-Bench 4 (Vals AI)Not measured8.1%Only Hy4 preview measured
Vibe Code Bench (Vals AI)Not measured77.5%Only Hy4 preview measured
Code migration (Vals AI)Not measured47.4%Only Hy4 preview measured
ProgramBench (Vals AI)Not measured0.0%Only Hy4 preview measured
IOI (Vals AI)Not measured59.3%Only Hy4 preview measured
Terminal-Bench 2.1 (Vals AI)Not measured55.1%Only Hy4 preview measured
CyberBench (Vals AI)Not measured65.4%Only Hy4 preview measured
LiveCodeBench (Artificial Analysis run)23.1%Not measuredOnly Phi 4 measured
Terminal-Bench Hard (Artificial Analysis run)3.8%Not measuredOnly Phi 4 measured
LMArena Text: coding1231Not measuredOnly Phi 4 measured
LMArena Text: software and IT1228Not measuredOnly Phi 4 measured
LMArena WebDev: ReactNot measured1653Only Hy4 preview measured
LMArena WebDev: HTMLNot measured1620Only Hy4 preview measured
Neither model has a result on the other 25 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards measured
Intelligence benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
AA Intelligence Index5.9Not measuredOnly Phi 4 measured
Epoch Capabilities Index130.5Not measuredOnly Phi 4 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards measured
Agentic work benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
SREBench (Vals AI)Not measured2.3%Only Hy4 preview measured
Finance Agent (Vals AI)Not measured55.1%Only Hy4 preview measured
Tax Agent Bench (Vals AI)Not measured32.6%Only Hy4 preview measured
Legal Research Bench (Vals AI)Not measured45.2%Only Hy4 preview measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured8.8%Only Hy4 preview measured
Excel Modeling Benchmark (Vals AI)Not measured58.1%Only Hy4 preview measured
BioMysteryBench (Vals AI)Not measured69.3%Only Hy4 preview measured
Terminal-Bench-Science (Vals AI)Not measured1.4%Only Hy4 preview measured
τ²-Bench Telecom0.0%Not measuredOnly Phi 4 measured
BALROG11.6%Not measuredOnly Phi 4 measured
Berkeley Function Calling Leaderboard (BFCL)28.8%Not measuredOnly Phi 4 measured
Neither model has a result on the other 30 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
Reasoning benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
GPQA Diamond (Artificial Analysis run)57.5%Not measuredOnly Phi 4 measured
Humanity's Last Exam (Artificial Analysis run)3.8%Not measuredOnly Phi 4 measured
GPQA Diamond (Epoch AI run)56.1%Not measuredOnly Phi 4 measured
LMArena Text: hard prompts1220Not measuredOnly Phi 4 measured
LMArena Text: expert1203Not measuredOnly Phi 4 measured
LMArena Text: hard prompts in English1230Not measuredOnly Phi 4 measured
Neither model has a result on the other 16 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards measured
Math benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
AA Math Index18.0Not measuredOnly Phi 4 measured
AIME 2025 (Artificial Analysis run)18.0%Not measuredOnly Phi 4 measured
OTIS Mock AIME13.8%Not measuredOnly Phi 4 measured
ProofBenchNot measured75.0%Only Hy4 preview measured
MATH level 564.9%Not measuredOnly Phi 4 measured
LMArena Text: math1246Not measuredOnly Phi 4 measured
LMArena Text: mathematical work1254Not measuredOnly Phi 4 measured
Neither model has a result on the other 6 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index8 boards measured
Knowledge benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
LegalBench (Vals AI)Not measured83.8%Only Hy4 preview measured
MedCode (Vals AI)Not measured43.3%Only Hy4 preview measured
MMLU Pro (Artificial Analysis run)71.4%Not measuredOnly Phi 4 measured
MMLU84.8%Not measuredOnly Phi 4 measured
LMArena Text: science1206Not measuredOnly Phi 4 measured
LMArena Text: medicine and healthcare1202Not measuredOnly Phi 4 measured
LMArena Text: legal and government1241Not measuredOnly Phi 4 measured
LMArena Text: business and finance1199Not measuredOnly Phi 4 measured
Neither model has a result on the other 10 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index22 boards measured
General benchmarks for Phi 4 and Hy4 preview
BenchmarkPhi 4Hy4 previewLeader
Vals IndexNot measured53.2%Only Hy4 preview measured
Public Benefits Bench (Vals AI)Not measured68.6%Only Hy4 preview measured
MedScribe (Vals AI)Not measured83.6%Only Hy4 preview measured
IFBench23.5%Not measuredOnly Phi 4 measured
Long context reasoning (AA-LCR)0.0%Not measuredOnly Phi 4 measured
Creative writing (Lech Mazur)62.6%Not measuredOnly Phi 4 measured
LMArena Text1217Not measuredOnly Phi 4 measured
LMArena Text: instruction following1201Not measuredOnly Phi 4 measured
LMArena Text: creative writing1181Not measuredOnly Phi 4 measured
LMArena Text: English1231Not measuredOnly Phi 4 measured
LMArena Text: non-English1197Not measuredOnly Phi 4 measured
LMArena Text: Chinese1212Not measuredOnly Phi 4 measured
LMArena Text: German1222Not measuredOnly Phi 4 measured
LMArena Text: Japanese1158Not measuredOnly Phi 4 measured
LMArena Text: Korean1151Not measuredOnly Phi 4 measured
LMArena Text: French1224Not measuredOnly Phi 4 measured
LMArena Text: Spanish1234Not measuredOnly Phi 4 measured
LMArena Text: Russian1209Not measuredOnly Phi 4 measured
LMArena Text: multi-turn1206Not measuredOnly Phi 4 measured
LMArena Text: longer queries1217Not measuredOnly Phi 4 measured
LMArena Text: writing and language1198Not measuredOnly Phi 4 measured
LMArena Text: entertainment and media1162Not measuredOnly Phi 4 measured
Neither model has a result on the other 24 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Phi 4$0.0001Fits in one request
Hy4 preview$0.0019Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Phi 4$0.0039Exceeds the context window
Hy4 preview$0.044Fits in one request

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Phi 4$0.015Exceeds the context window
Hy4 preview$0.173Fits in one request

Phi 4 costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Phi 4 and Hy4 preview
SpecificationMicrosoft Phi 4Tencent Hy4 preview
MakerMicrosoftTencent
WeightsOpen weightsOpen weights
ReleasedJanuary 10, 2025August 28, 2026
Context window16K1.05M
Input $/Mtok$0.07$0.7506
Output $/Mtok$0.14$2.2509
Coding indexNot benchmarked44.3
Independent measurements behind it03
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Phi 4 better than Hy4 preview for coding?

Only Hy4 preview has a coding score, 44.3 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Pick Phi 4 for output tokens 16.1x cheaper ($0.14 vs $2.2509 per million).

Which is cheaper, Phi 4 or Hy4 preview?

Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens; Hy4 preview costs $0.7506 and $2.2509. Cost per solved task is known for neither of them.

Which has the bigger context window, Phi 4 or Hy4 preview?

Hy4 preview, with 1.05M tokens against 16K.

Has any benchmark tested both Phi 4 and Hy4 preview?

No benchmark has tested both yet. Phi 4 has results on LiveCodeBench (Artificial Analysis run), Terminal-Bench Hard (Artificial Analysis run) and LMArena Text: coding; Hy4 preview on LMArena WebDev, Terminal-Bench 4 (Vals AI) and Vibe Code Bench (Vals AI). Compare them on price and context instead. Data as of October 21, 2026.

Compare next