Microsoft: Phi 4

Microsoft Research Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed.

Context
16K
Max output
15K
Input price
$0.07/1M tokens
Output price
$0.14/1M tokens

Capabilities

Output Control
Structured Output
JSON Mode

Details

Model IDmicrosoft/phi-4
Provider OpenRouter
Creator microsoft
Family—
License—
Status—
Typechat
Input modalitiestext
Output modalitiestext
Open weight—
Parameters—
Architecture—
Context window16K tokens
Max input—
Max output15K tokens
Reasoning tokens—
Knowledge cutoff—
Release date
Sourceofficial

Pricing

Input
$0.07
Output
$0.14
Cache write
—
Cache read
—
Batch in
—
Batch out
—

API

GET/v1/models/openrouter/microsoft/phi-4