microsoft
Microsoft: Phi 4 Mini Instruct
Phi-4-mini-instruct is a lightweight open model built upon synthetic data and filtered publicly available websites - with a focus on high-quality, reasoning dense data. The model belongs to the Phi-4...
Context
131k tokens
Input / 1M tokens
$0.08
Output / 1M tokens
$0.35
Benchmark
—
Pricing
Input tokens$0.08 per 1M tokens
Output tokens$0.35 per 1M tokens
Cache read$0.08 per 1M tokens
Technical details
Model IDmicrosoft/phi-4-mini-instruct
Context window131k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
Max output tokens128,000
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'microsoft/phi-4-mini-instruct',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use Microsoft: Phi 4 Mini Instruct?
Get an API key and start making requests in minutes.
Get an API key