Phi 4
Phi 4 is an open-weight model by Microsoft, released 10 Jan 2025. It reads text and writes text, with a context window of 16K tokens and up to 15K tokens out. Through OpenRouter it costs $0.07 per million input tokens and $0.14 per million output tokens.
Facts from OpenRouter and Hugging Face · updated 24 Nov 2026
What it costs in practice
1,000 requests with 2,000 tokens in and 500 tokens out each cost about $0.21 through OpenRouter.
Use it
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{"model": "microsoft/phi-4", "messages": [{"role": "user", "content": "Hello"}]}'FAQ
What is the context window of Phi 4?
Phi 4 has a context window of 16,384 tokens, about 25 pages of text, and can write up to 14,745 tokens in one reply.
How much does Phi 4 cost?
Through OpenRouter, $0.07 per million input tokens and $0.14 per million output tokens. The maker's own price can differ.
Is Phi 4 open source?
Yes, its weights are published on Hugging Face as microsoft/phi-4.
When was Phi 4 released?
It became available on 10 Jan 2025.
Something wrong? Email hello@capylaunch.com. All AI models