phi-4

Phi-4 is a model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets. The goal of this approach was to ensure that small capable models were trained with data focused on high quality and advanced reasoning.

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

Capabilities

Output Control
Structured Output
JSON Mode
Infrastructure
Streaming

Details

Model IDmicrosoft/phi-4
Provider DeepInfra
Creator microsoft
Familyphi-4
License—
Statusactive
Typechat
Input modalitiestext
Output modalitiestext
Open weightYes
Parameters—
Architecture—
Context window16K tokens
Max input—
Max output—
Reasoning tokens—
Knowledge cutoff—
Release date—
Sourceofficial

Endpoints

Chat CompletionsPOST
Generate chat responses with messageshttps://api.deepinfra.com/v1/openai/v1/chat/completions

Pricing

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

API

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