Skip to content
llmmodels
Chat LLMOpen weights

Phi 4 Mini

by Microsoft · Feb 26, 2025

Phi 4 Mini is an open-weight chat llm from Microsoft, released Feb 26, 2025. It has 3.8B parameters and a 8K-token context window. API pricing starts at $0.17 per million input tokens and $0.68 per million output tokens.

Provider
Microsoft
Released
Feb 26, 2025
Type
Chat LLM
Parameters
3.8B
Context window
8,192 tokens
Max output
4,096 tokens
Input
text
Output
text
Weights
Open weights
License
mit
Knowledge cutoff
Jun 2024
Status
Available via API
Training compute
1.0e+23 FLOP
Training data
5000B tokens/words
HF downloads (30d)
314.2K

About Phi 4 Mini

Compact GPT model for low-latency assistance and high-volume workloads

Where to run Phi 4 Mini — API providers & pricing

ProviderInput $/1MOutput $/1MCached inputContext
NanoGPT$0.17$0.68$0.0858K

Open weights: you can also run Phi 4 Mini locally with Ollama, LM Studio, llama.cpp or vLLM, from Hugging Face.

Phi 4 Mini vs alternatives

Alternatives to Phi 4 Mini
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Qwen3-4B-Instruct-2507openAlibaba (Qwen)Aug 20254B————
Qwen3-4B-BaseopenAlibaba (Qwen)Apr 20254B————
gemma-3n-E4B-it-litert-lmopenGoogle DeepMindJun 20254B————
medgemma-4b-itopenGoogle DeepMindMay 20254.3B————
DeepSeek V3 0324openDeepSeekMar 2025—160K$0.2$0.8—
Deepseek OCRopenDeepSeekOct 20253.3B————
granitelib-core-r1.0openIBMDec 2025—————
Hermes-4-14BopenNous ResearchAug 2025—————

More models from Microsoft

All Microsoft models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Phi 4openDec 202415B16K$0.07$0.14
Phi-2openDec 20232.8B———
Phi-1.5openSep 20231.4B———
Florence-2-baseopenJun 2024232M———
harrier-oss-v1-0.6bopenMar 2026596M———
harrier-oss-v1-270mopenMar 2026268M———
Phi-4-reasoning-vision-15BopenJan 202615B———
Phi-4-mini-reasoningopenApr 20253.8B———

Frequently asked questions

Who made Phi 4 Mini?

Phi 4 Mini was developed by Microsoft (United States of America). It was released on Feb 26, 2025.

What is the context window of Phi 4 Mini?

Phi 4 Mini supports a context window of 8,192 tokens (8K) and can generate up to 4,096 output tokens per response.

How much does Phi 4 Mini cost?

Phi 4 Mini costs $0.17 per 1M input tokens and $0.68 per 1M output tokens, with cached input at $0.085 per 1M. Prices vary across the 1 providers that serve it.

Is Phi 4 Mini open source?

Yes. Phi 4 Mini's weights are publicly available under the mit license on Hugging Face (microsoft/Phi-4-mini-instruct), so you can download and run it yourself.

How many parameters does Phi 4 Mini have?

Phi 4 Mini has 3.8B parameters.

Where can I use Phi 4 Mini?

Phi 4 Mini is available via 1 API provider, and you can also self-host it with tools like vLLM, Ollama or LM Studio.

Sources: epoch, huggingface, models.dev · paper · huggingface. Last updated 2026-11-22.