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
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| NanoGPT | $0.17 | $0.68 | $0.085 | 8K |
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
- Phi 4 Mini vs Qwen3-4B-Instruct-2507
- Phi 4 Mini vs Qwen3-4B-Base
- Phi 4 Mini vs gemma-3n-E4B-it-litert-lm
- Phi 4 Mini vs medgemma-4b-it
- Phi 4 Mini vs DeepSeek V3 0324
- Phi 4 Mini vs Deepseek OCR
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Qwen3-4B-Instruct-2507open | Alibaba (Qwen) | Aug 2025 | 4B | — | — | — | — |
| Qwen3-4B-Baseopen | Alibaba (Qwen) | Apr 2025 | 4B | — | — | — | — |
| gemma-3n-E4B-it-litert-lmopen | Google DeepMind | Jun 2025 | 4B | — | — | — | — |
| medgemma-4b-itopen | Google DeepMind | May 2025 | 4.3B | — | — | — | — |
| DeepSeek V3 0324open | DeepSeek | Mar 2025 | — | 160K | $0.2 | $0.8 | — |
| Deepseek OCRopen | DeepSeek | Oct 2025 | 3.3B | — | — | — | — |
| granitelib-core-r1.0open | IBM | Dec 2025 | — | — | — | — | — |
| Hermes-4-14Bopen | Nous Research | Aug 2025 | — | — | — | — | — |
More models from Microsoft
All Microsoft models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Phi 4open | Dec 2024 | 15B | 16K | $0.07 | $0.14 |
| Phi-2open | Dec 2023 | 2.8B | — | — | — |
| Phi-1.5open | Sep 2023 | 1.4B | — | — | — |
| Florence-2-baseopen | Jun 2024 | 232M | — | — | — |
| harrier-oss-v1-0.6bopen | Mar 2026 | 596M | — | — | — |
| harrier-oss-v1-270mopen | Mar 2026 | 268M | — | — | — |
| Phi-4-reasoning-vision-15Bopen | Jan 2026 | 15B | — | — | — |
| Phi-4-mini-reasoningopen | Apr 2025 | 3.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.