Phi 4
Phi 4 is a language model with 14B parameters from Microsoft. It is currently free at 1 provider with up to 16K tokens of context. The model supports step-by-step reasoning. Its weights are open, so it can also run locally.
- Developer
- Microsoft
- Parameters
- 14B
- Context
- 16K tokens
- Type
- Text
- License
- Open weights
- Free since
- November 1, 2026
Where to use Phi 4 for free
Each row is a separate free endpoint with its own limits.
Quick start
curl https://api.unorouter.com/v1/chat/completions \
-H "Authorization: Bearer $UNOROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "phi-4:free",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.unorouter.com/v1",
api_key="YOUR_UNOROUTER_API_KEY",
)
reply = client.chat.completions.create(
model="phi-4:free",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.unorouter.com/v1",
apiKey: process.env.UNOROUTER_API_KEY,
});
const reply = await client.chat.completions.create({
model: "phi-4:free",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(reply.choices[0].message.content);Example for UnoRouter. Any OpenAI-compatible client works: Cursor, Cline, OpenCode, Open WebUI.
Benchmarks
Source: Artificial Analysis · Phi-4
Similar free models
FAQ
Is Phi 4 free?
Yes. As of November 1, 2026, Phi 4 is free at UnoRouter. Each provider has its own limits — see the table above.
What is the context window of Phi 4?
The largest context among free routes is 16,384 tokens. Some providers cap it lower.
How do I call Phi 4 via API?
Use any OpenAI-compatible client with base URL https://api.unorouter.com/v1, model ID phi-4:free, and a UnoRouter key.
How good is Phi 4?
Artificial Analysis Intelligence Index: 5.9, GPQA Diamond: 58%. For comparison, the strongest free model in the catalog right now is GLM 5.3 Flash.
Is Phi 4 open-weight?
Yes, the weights are published — you can download and run it locally, for example with Ollama or LM Studio.