Phi-4
by Microsoft Chat · Thinking
Phi-4 is Microsoft's small-but-capable model, trained with a heavy emphasis on high-quality and synthetic data to punch above its size on reasoning tasks. Its compact footprint makes it a practical choice for cost-sensitive and on-device deployments.
- Publisher
- Microsoft (opens in a new tab)
- API model name
- phi-4-mini-reasoning
- Context window
- 32K tokens
- Sizes
- 3.8B, 14B
- Licence
- MIT
Run Phi-4
Install it on a Pendra worker, then call it through our SDK with your pdr_sk_ API key.
from pendra import Pendra
client = Pendra(api_key="pdr_sk_...")
response = client.chat.completions.create(
model="phi-4-mini-reasoning",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
Run Phi-4 on infrastructure you trust.
Deploy a worker, install Phi-4, and start serving it through one private API.