Models / Phi 4ID: azure_ai/Phi-4
by Microsoft·via Azure Foundry

Phi 4

Phi-4 is Microsoft's 14-billion parameter language model engineered for complex reasoning, mathematical problem solving, and code generation, trained on synthetic reasoning datasets and curated web texts.

Certified & verified by nRouter· facts checked 2026-09-16 against 2 official sources

Maker

Microsoft

Served On

Azure Foundry

Context: 16.4K

Benchmarks

not listed on arena.ai text leaderboard as of 2026-09-15

Pricing

Rates are read live

Pricing for Phi-4 is fetched from the live catalogue on load, so it is never served from a cache that could outlive a repricing.

Specifications

Context window

16.4K

Source: learn.microsoft.com
Max output

4K

Source: learn.microsoft.com
Modality

chat

Context window, compared

Phi-4Phi-4 — 16.4K tokens16.4Kqwen-mt-turboqwen-mt-turbo — 131.1K tokens131.1Kqwen-plus-latestqwen-plus-latest — 1M tokens1Mqwen-plus-2025-01-25qwen-plus-2025-01-25 — 1M tokens1Mdeepseek-v4-pro-0813deepseek-v4-pro-0813 — 1.05M tokens1.05Mqwen3-vl-plus-2025-09-23qwen3-vl-plus-2025-09-23 — 262.1K tokens262.1Kclaude-sonnet-4-5-20250929claude-sonnet-4-5-20250929 — 1M tokens1M

Bars are scaled to 1.05M tokens. A model with no published context window reads Unknown, never zero.

Vision
Function calling
System prompt

nRouter SDK Integration

v2.2.1
curl https://api.nrouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${NROUTER_API_KEY}" \
  -d '{
    "model": "azure_ai/Phi-4",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant powered by Phi-4 via nRouter."
      },
      {
        "role": "user",
        "content": "Explain distributed consensus algorithms."
      }
    ]
  }'

Availability

Not enough data yet

We have not collected enough health probes for this model to publish an uptime or latency figure. A percentage from a handful of samples is fabricated precision, so none is shown until the sample count supports one.

Interactive Playground

Send a real test request to Phi-4 using your virtual key.

Test it

Prompt
cURL
curl https://api.nrouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $NROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"azure_ai/Phi-4","messages":[{"role":"user","content":"Hello!"}]}'

Managed Gateway Routing

Unified single-key access with automatic multi-region fallback, real-time credit enforcement, and sub-millisecond routing latency.

More from Microsoft