# Phi (Microsoft)

CreateWithAI Hub page: https://createwithaihub.com/ai-models/phi
Latest version of this file: https://createwithaihub.com/ai-models/phi.md

- Type: AI model · Category: AI Models
- Publisher: Microsoft
- Pricing: Free plan plus paid plans · License: MIT
- Runs on: API (cloud)

Microsoft's MIT-licensed Phi small language models (Phi-4 family) for reasoning, vision and multimodal tasks on modest hardware.

Phi is Microsoft's family of small language models, currently the Phi-4 generation: the 14B Phi-4, Phi-4-mini, Phi-4-multimodal (text, image and audio input), Phi-4-reasoning variants and the newer Phi-4-reasoning-vision-15B. The models are released under the MIT license on Hugging Face and can run locally, for example with Ollama or vLLM. Microsoft also serves them as pay-per-token models in Microsoft Foundry (Azure AI Foundry).

Useful for: Running a small reasoning model locally or at the edge for math, logic or document Q&A where a large model is too slow or costly.

## Key features

- Phi-4 (14B), Phi-4-mini and Phi-4-mini-flash-reasoning
- Phi-4-multimodal with text, image and audio input
- Phi-4-reasoning and Phi-4-reasoning-plus
- Phi-4-reasoning-vision-15B for image reasoning
- MIT license with weights on Hugging Face
- Pay-per-token serving in Microsoft Foundry

## Connection

- Capability: Reasoning, Chat, Vision
- Modality: Text, Image, Audio, Multimodal
- Weights: Open-weight
- Local or hosted: Can run locally, Hosted
- API availability: Official API
- Free usage: Free usage available

## Install steps from the official documentation

Serve with vLLM (from the Phi-4 model card):

```
pip install vllm
vllm serve "microsoft/phi-4"
```

Run with Docker Model Runner:

```
docker model run hf.co/microsoft/phi-4
```

## Limitations

- Primarily English; the model card says it is not intended for multilingual use
- Short context on some models (16K on the Phi-4 model card)
- Model cards warn against high-risk uses without further evaluation

## Official links

- Website: https://azure.microsoft.com/en-us/products/phi
- Documentation: https://huggingface.co/microsoft/phi-4
- Source: https://azure.microsoft.com/en-us/products/phi (Phi lineup, 'open source through the MIT License', Foundry/Hugging Face/Ollama availability)
- Source: https://azure.microsoft.com/en-us/pricing/details/ai-foundry-models/microsoft (Foundry per-token prices (Phi-4 $0.125 in / $0.50 out per 1M))
- Source: https://huggingface.co/microsoft/phi-4 (14B text model, MIT license tag, 16K context, English focus, vLLM and Docker commands)
- Source: https://huggingface.co/microsoft/Phi-4-reasoning-vision-15B (March 2026 vision reasoning model, text and image input)
