Ad · 728x90

Microsoft: Phi 4 API Pricing — $0.070 Input / $0.140 Output per 1M Tokens

Microsoft: Phi 4 by Microsoft — $0.070 input / $0.140 output per 1M tokens via OpenRouter. Context: 16K tokens. Pricing last updated Oct 29, 2026.

Input / 1M tokens
$0.070
Output / 1M tokens
$0.140
Provider
Microsoft
Context window
16K tokens
Via
OpenRouter

Cost at common usage volumes

Usage Daily Monthly
Chatbot (100/day)$0.021$0.63
Small app (1K/day)$0.140$4.20
Mid-scale (10K/day)$2.10$63.00
Large scale (100K/day)$49.00$1470.00
Model ID: microsoft/phi-4
Data source: OpenRouter public API — updated Oct 29, 2026.
Ad · 336x280

About Microsoft: Phi 4

Microsoft: Phi 4 is an LLM developed by Microsoft. Input costs $0.070 per million tokens and output costs $0.140 per million tokens via OpenRouter. It supports a context window of 16K tokens.

Pricing Details

Via the OpenRouter API:

  • Input tokens: $0.070 per 1 million tokens
  • Output tokens: $0.140 per 1 million tokens

A token is roughly 0.75 words. For context: a typical user message of 100 words is approximately 133 tokens; a 500-word system prompt is about 650 tokens.

How Much Does Microsoft: Phi 4 Cost?

For a typical chatbot application (1,000 requests/day, 1,000 prompt tokens and 500 output tokens per request):

  • Daily cost: $0.1400
  • Monthly cost: $4.200

Accessing Microsoft: Phi 4 via OpenRouter

OpenRouter provides a unified API for 200+ LLMs including Microsoft: Phi 4. You can use it with any OpenAI-compatible SDK by setting the base URL to https://openrouter.ai/api/v1 and using your OpenRouter API key. The model ID is microsoft/phi-4.

Compare Microsoft: Phi 4 with Other Models

Use the AI Model Cost Comparison tool to compare Microsoft: Phi 4 against GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro, or any other model side by side. Or use the LLM API Cost Calculator to browse all 456+ models sorted by cost for your specific usage.

Frequently Asked Questions