All models
Model card on Hugging Face
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
- Context window
- 32K tokens
- Sizes
- 14B, 3.8B
- Licence
- MIT
Run Phi-4
Install it on a Pendra worker, then call it through the OpenAI-compatible API with a pdr_sk_ key.
from pendra import Pendra
client = Pendra(api_key="pdr_sk_...")
response = client.chat.completions.create(
model="phi-4-reasoning-plus",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
Run Phi-4 on your own UK infrastructure
Deploy a worker, install Phi-4, and start serving it through one sovereign API endpoint.