Models / Microsoft
phi-4
Open weights · MITby MicrosoftReleased Dec 11, 2024
phi-4 is made by Microsoft. It takes text in and answers in text, with a context window of 16,384 tokens.
Start using phi-4 in 3 steps
Read the docs- Get an API keyFree to create. It works for every model in the catalogue.Get an API key
- Add creditsPay as you go. Credits work on every model.Add credits
- Point your client at TīrthaAny OpenAI-compatible client works. Use your key and this base URL, and name the model.
base_url: "https://api.tirtha.ai/v1"
api_key: "YOUR_TIRTHA_KEY"
model: "catalog/phi-4"
Price
Inputper 1M tokens
Outputper 1M tokens
Cached inputper 1M tokens
The live price, read from billing as this page loads. You pay only for the tokens you use, from your credits.
At a glance
MakerMicrosoft
Acceptstext
Context16,384 tokens
Max output16,384 tokens
LicenceMIT
ReleasedDec 11, 2024
Tested on Tīrtha Bench
Not on the public set yet: we have not run phi-4 on the public 800-task tool-call set. The bench shows every model we have run so far.
What it supports
- Text inYes
- StreamingYes
- Sampling settingsFixed todayThe maker publishes no default. Tīrtha fixes temperature at 0 today.
From the maker
- Model card: microsoft/phi-4 on Hugging Face
- Last updated by the maker: Jul 14, 2026
Facts here are read from the maker's published card; claims and benchmarks on that card are the maker's own, not measured by Tīrtha.