# Phi-4

> Microsoft's family of small open language models

Source: https://talira.ai/catalog/phi-4-nb66paqh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: AI model
- Categories: [ai / models / llm](https://talira.ai/categories/ai/models/llm)
- Licence: MIT[^1]
- Pricing: Free and open source[^1][^2]
- Pricing notes: Weights free under MIT; hosted use on Microsoft Foundry is billed by Azure.
- Free tier: yes[^1][^2]
- Self-hostable: yes[^1]
- Cloud hosted: yes[^2]
- Backed by: [Microsoft](https://talira.ai/orgs/microsoft.md)
- Funding: public company (NASDAQ:MSFT)[^3]

Phi-4 is Microsoft's family of small open-weight language models, released under the MIT licence and built for cost-effective inference on device, at the edge and in the cloud. The family includes phi-4, a 14B dense model with a 16K-token context; Phi-4-mini-instruct, a 3.8B model with a 128K context; Phi-4-multimodal-instruct, a 5.6B model that takes text, images and audio (speech recognition, translation and summarisation) with a 128K context; Phi-4-reasoning and Phi-4-reasoning-plus, 14B reasoning models with a 32K context, and the smaller Phi-4-mini-reasoning and Phi-4-mini-flash-reasoning; and Phi-4-reasoning-vision-15B, which reasons over images, documents and screens. The weights are on Hugging Face, with ONNX and GGUF versions, and Microsoft hosts them in Microsoft Foundry. They're trained mostly on English.

## Links

- Website: https://azure.microsoft.com/en-us/products/phi
- GitHub: https://github.com/microsoft/PhiCookBook

## Problems it solves

- a small open model under MIT that I can ship in a commercial app
- run a capable language model on a laptop or phone without a GPU server
- an open reasoning model for math problems that fits on one GPU
- an open model that understands speech and images in one small network
- fine-tune a small language model on my company's data cheaply
- a fast local model for low-latency autocomplete or agent steps

## Features

- phi-4: 14B dense, 16K-token context
- Phi-4-mini-instruct: 3.8B, 128K-token context
- Phi-4-multimodal-instruct: text, image and audio input
- Phi-4-reasoning and reasoning-plus: 14B reasoning models, 32K context
- Phi-4-mini-reasoning and mini-flash-reasoning for math on small hardware
- Phi-4-reasoning-vision-15B for visual reasoning and GUI grounding
- ONNX and GGUF versions
- MIT-licensed weights

## Trust

Overall: 0.65 out of 1.
Signals: maintenance 0.85, adoption 0.72, momentum 0.64, community 0.67, backing 0.55, extensibility 0.00.

- last commit 7 days ago
- 37 commits in the last 90 days
- 3.9k GitHub stars
- 47 contributors
- backed by Microsoft
- funding: public company (NASDAQ:MSFT)

## Alternatives

- [gpt-oss](https://talira.ai/catalog/gpt-oss-yme4k4dv.md): OpenAI's open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, under Apache 2.0
- [Gemma 4](https://talira.ai/catalog/gemma-4-vb8exph3.md): Google DeepMind's open multimodal models, from phones to workstations
- [Qwen3.8-27B](https://talira.ai/catalog/qwen3-8-27b-sd9v04dj.md): Compact dense vision-language model from the Qwen3.8 open-model family
- [GLM-5](https://talira.ai/catalog/glm-5-5gj4eynh.md): Z.ai's open-weight models for coding and long-horizon agentic work

## Sources

[^1]: https://huggingface.co/microsoft/phi-4 (checked 24 Nov 2026)
[^2]: https://azure.microsoft.com/en-us/products/phi (checked 24 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
