Phi-2 Models by Microsoft Research

Microsoft ResearchMITOpen sourceOpen Source
Microsoft Research releases · 6 in the last 12 monthsChangelog →
1 model2023Up to 2K ctxFrom $0.050/1M input

Last refreshed 2026-10-17. Next refresh: weekly.

Details

LicenseMITOSI-approved
Commercial usePermitted
Models1
Released2023
Max context2K

Capabilities

Structured OutputsAll models

About

The Phi family of language models, developed by Microsoft Research, comprises several small language models (SLMs) designed to achieve high performance despite their relatively small size. These models employ a Transformer architecture and are trained on a blend of synthetic and web datasets 12. Emphasizing the quality of training data, the models prioritize "textbook-quality" information to enhance reasoning and understanding capabilities 1. The Phi series includes Phi-1, Phi-1.5, and Phi-2, with each version incorporating advancements in model scaling and data curation 1. Phi-2, the latest in the series, has 2.7 billion parameters and exhibits state-of-the-art performance among base models with fewer than 13 billion parameters across various benchmarks 12. Notably, Phi-2 has not been subjected to reinforcement learning from human feedback (RLHF) or instruction fine-tuning 12, and the models are accessible to researchers to aid exploration of safety challenges and other language model developments 2.

Decision facts

Best fit
structured outputs
Capability starting point
Phi-2 with 2K context and structured outputs
Lowest tracked input
Phi-2 · $0.050/1M · Replicate API
Closest related family
Agents-A1

Archived Variants

Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.

1 in view1 retired
Phi-2Replaced

Keep for legacy integrations; evaluate Phi-4 14B before new work.

2023-122K context2.7B parametersstructured outputs

Release Timeline

1 release group
2023-12
1 retired
Phi-2
2K context2.7B parametersstructured outputs
Replaced

Replaced By

Keep for legacy integrations; evaluate Phi-4 14B before new work.

Specifications(1 models)

Phi-2 model specifications comparison
ModelReleasedContextParametersStructured Outputs
Phi-22023-122K2.7BYes

Pricing

Phi-2 model pricing by provider
ModelProviderInput / 1MOutput / 1MType
Phi-2Replicate API$0.05$0.25Serverless
Phi-2Microsoft Foundry$0.07$0.07Provisioned
Phi-2Together AI$0.1$0.1Serverless
Phi-2Fireworks AI$0.1$0.1Provisioned