← Back to Model Leaderboard
Microsoft: Phi 4
💰 Budget ClassOpen WeightsLocal HostingDEVELOPED BY: Microsoft • LAST UPDATED: 7/4/2026
CCI (Capability)46Consensus: Contested ⚠
Context Window16,384Max token length
In/Out Pricing$0.07/$0.14Blended cost/1M: $0.09
Pulse (Popularity)75/100Adoption + discussion proxy
Model Description
OpenRouter model gateway for Microsoft: Phi 4.
Domain Averages
Reasoning36.7%
Coding35.2%
Math53.9%
Preference58.2%
Jury & Benchmark Signals
| Source / Harness | Score |
|---|---|
| GPQA-Diamond | 43% |
| Humanity's Last Exam | 40% |
| MMLU-Pro | 78% |
| SWE-bench Verified | 28% |
| LiveCodeBench | 35% |
| AIME | 52% |
| LMArena style-controlled Elo | 1198 |
Consensus Discrepancy (Spread: 26.3 pts)
Source
Normalized
CCI Dev.
GPQA-Diamond
31.9
-14.1
Humanity's Last Exam
34.8
-11.2
MMLU-Pro
43.5
-2.5
SWE-bench Verified
34.6
-11.4
LiveCodeBench
35.9
-10.1
AIME
53.9
+7.9
LMArena style-controlled Elo
58.2
+12.2
Supported Modalities
INPUT:
text
OUTPUT:
text
Search Tags
#text#open-weight#reasoning#local
How to Use This Model
Python SDK Integration:
import openai
client = openai.OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_OPENROUTER_KEY"
)
response = client.chat.completions.create(
model="microsoft/phi-4",
messages=[
{"role": "user", "content": "Explain quantum entanglement in 1 sentence."}
]
)cURL Terminal Request:
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "microsoft/phi-4",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'Community Debates & Mentions (0)
No active Reddit or Hacker News debates referencing this model this week.