# Phi-4 — API, pricing & specs via nRouter > Phi-4 is available through nRouter, the managed LLM gateway: one OpenAI-compatible API key, 0% token markup (exact provider list pricing), 0% platform fee, built-in guardrails, and per-request cost tracking. ## What it is 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. Source: https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/models-from-partners ## Facts - Maker: Microsoft - Released: 2024-12-12 - Served on: Azure Foundry ## nRouter list pricing (exact provider rates, 0% markup) - Input: $0.125 per 1M tokens - Output: $0.5 per 1M tokens Settled at the exact provider list price above. nRouter adds no per-token markup and charges a 0% platform fee (see https://nrouter.ai/pricing). ## Use it ```python from openai import OpenAI client = OpenAI( base_url="https://api.nrouter.ai/v1", api_key="sk-nrouter-YOUR_KEY", # create one at https://nrouter.ai/signup ) response = client.chat.completions.create( model="azure_ai/Phi-4", messages=[{"role": "user", "content": "Hello"}], ) ``` Model page: https://nrouter.ai/models/phi-4 Full nRouter index for AI engines: https://nrouter.ai/llms.txt Docs: https://nrouter.ai/docs