Phi-4 (14B)
No Phi-5 found on Hugging Face as of 2026-09-29 (microsoft org). Foundry model name not re-verified today. Siblings: microsoft/Phi-4-mini-instruct, microsoft/Phi-4-reasoning-plus, microsoft/Phi-4-multimodal-instruct.
- Context window
- 16,384 tokens
- Input
- text
- Output
- text
- License
- mit
- Pricing
- input: $0.07 · output: $0.14 (per 1M tokens (USD) on OpenRouter; self-hosting free) source
- Verified
- 2026-09-29
How to call it
| Provider | Model id | Endpoint / URL | Docs |
|---|---|---|---|
| Hugging Face | — | huggingface.co/microsoft/phi-4 | — |
| Azure AI Foundry | Phi-4 | azure.microsoft.com/en-us/products/phi | — |
| OpenRouter | microsoft/phi-4 | openrouter.ai/microsoft/phi-4 | — |
Notable capabilities (2)
- Synthetic-data small model: 14B dense model trained on 9.8T tokens heavy in curated synthetic data, prioritizing reasoning over scale (84.8 MMLU, 80.4 MATH). source
- Reasoning derivatives (found after launch): Base for Phi-4-reasoning, Phi-4-reasoning-plus, Phi-4-mini(-reasoning/-flash-reasoning) and Phi-4-multimodal-instruct open models. source
Small open model for local/edge reasoning, math and English text tasks.
from transformers import pipeline
pipe = pipeline("text-generation", model="microsoft/phi-4", device_map="auto")
print(pipe([{"role":"user","content":"Solve 2x+3=11"}], max_new_tokens=128))
Sources: https://huggingface.co/microsoft/phi-4 , https://azure.microsoft.com/en-us/products/phi
Other Microsoft models
Phi-4-Reasoning-Vision-15B · VibeVoice (ASR, ASR-Streaming, ASR-BitNet, Realtime-0.5B TTS) · MAI-Transcribe-2 · MAI-Voice-2 / MAI-Voice-2-Flash