Microsoft logo

Phi-2 3B


Phi-2 3B is Microsoft logoMicrosoft's language model with a 2K context window and up to 2K output tokens, starting at $0.100 / 1M input and $0.100 / 1M output. A 3B-parameter variant of Microsoft's Phi-2 small language model, optimized for reasoning and code tasks with an efficient parameter footprint.
Spec
Canonical IDmicrosoft-phi-2-3b
TypeLanguage
StatusActive
CreatorMicrosoftMicrosoft
Providers
Context Window2K tokens
Max Output2K tokens
Input ModalitiesText
Output ModalitiesText
Parameters3B

Capabilities

Input1/5
Text
Image·
Audio·
Video·
PDF·
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities0/13
Reasoning·
Adaptive Reasoning·
Function Calling·
Parallel Function Calling·
Structured Outputs·
Native JSON Schema·
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·

Pricing by Provider

ProviderStandard
Input
$ / 1M
Output
$ / 1M
Fireworks AI logo
Fireworks AI
accounts/fireworks/models/phi-2-3b
$0.100$0.100

Cost Calculator

Preset:
Compares every provider & tier in USD

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Phi-416K$0.065$0.140Available
Phi-4 Mini Instruct131K$0.075$0.300Available
Phi-4 Mini Reasoning131K$0.080$0.320Available
Phi-4 Multimodal Instruct131K$0.080$0.320Available
Phi-4 Reasoning33K$0.125$0.500Available
Phi-3.5 Mini Instruct128K$0.130$0.520Available
Phi-3.5 MoE Instruct128K$0.160$0.640Available
Phi-3.5 Vision Instruct128K$0.130$0.520Available
Phi-3Available
Phi-3 Medium Instruct128K$0.170$0.680Available
Phi-2 3B2K$0.100$0.100Current

Model IDs