Phi 4 Mini Instruct API
Microsoft's Phi 4 Mini Instruct, through an OpenAI-compatible API. Providers quote it on an open exchange, and each request goes to the offer with the lowest estimated charge that meets your rules.
- Providers compete for each request. The exchange ranks the offers that meet your rules by estimated charge. It fixes your maximum charge before the first token, and you pay for the tokens that the model uses.
- The OpenAI and Anthropic APIs. Use the OpenAI or Anthropic SDK that you have. Set the base URL and your key, and send phi-4-mini-instruct as the model.
- Your data rules. Send x-liquid-retention: none and only offers whose provider does not keep your content compete for the request.
Facts
- Model name
- phi-4-mini-instruct
- Maker
- Microsoft
- Context window
- 128K tokens
- Input price
- $0.170 per million tokens
- Output price
- $0.681 per million tokens
- Providers
- 1 independent provider
- Regions
- us
Providers
- Architect: us, $0.170 input and $0.681 output per million tokens, $0.170 cache read per million tokens, 128K tokens of context
Request
curl https://router.inference.ai.exchange/v1/chat/completions \
-H "Authorization: Bearer $LIQUID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "phi-4-mini-instruct",
"messages": [{"role":"user","content":"Say hello."}]
}'Questions
- What is Phi 4 Mini Instruct?
- Phi 4 Mini Instruct is a model from Microsoft.
- How much does Phi 4 Mini Instruct cost?
- Offers now ask $0.170 per million input tokens and $0.681 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.
- What is the context length of Phi 4 Mini Instruct?
- The largest offer takes 128,000 input tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.
- What can Phi 4 Mini Instruct do?
- Its providers list Reasoning effort, JSON object, JSON schema, Frequency penalty, Logit bias, Log probabilities, Min-p sampling, Presence penalty, Repetition penalty, Seed, Stop sequences, Top-k sampling, Top-p sampling, Text, Tools.
- What inputs and outputs does Phi 4 Mini Instruct support?
- Text → Text.
- Which providers serve Phi 4 Mini Instruct?
- 1 independent provider quote it now, with 1 offer. The table above ranks them by the cost of a typical job.
- How do I call Phi 4 Mini Instruct?
- Send "phi-4-mini-instruct" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.
- When was Phi 4 Mini Instruct listed?
- The exchange first listed it on 10/5/2026. This is not its release date.