Post-Cutoff.com
  1. Home
  2. Models
  3. Phi-4 (14B)

Phi-4 (14B)

MicrosoftlegacyllmPhi-4open weights

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

ProviderModel idEndpoint / URLDocs
Hugging Face—huggingface.co/microsoft/phi-4—
Azure AI FoundryPhi-4azure.microsoft.com/en-us/products/phi—
OpenRoutermicrosoft/phi-4openrouter.ai/microsoft/phi-4—

Notable capabilities (2)

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