Phi 4 Mini Pricing

    OSS

    As of August 25, 2026, Phi 4 Mini API pricing is $0.08 per million input tokens and $0.35 per million output tokens. A typical 100K-in / 20K-out request costs $0.01. Source: https://openrouter.ai/api/v1/models

    Source: OpenRouter pricing (https://openrouter.ai/api/v1/models)

    Updated August 25, 2026131.1K context$0.43 blended / 1M

    Input $/M

    $0.08

    Output $/M

    $0.35

    Blended / 1M

    $0.43

    100K / 20K request

    $0.01

    Where it ranks

    Percentile against every model with a published score on that eval. Click a row for the full board.

    Quality vs price

    GPQA against blended input+output $/M. Log price. Phi 4 Mini is the green point.

    Phi 4 Mini specs

    Context Window131.1K
    Max OutputN/A
    Release Date2025-02-01
    Knowledge Cutoff2024-06-01
    LicenseOpen Source
    ThroughputN/A

    Phi 4 Mini benchmarks

    Compare Phi 4 Mini

    Same search as the hub. Pick any model, or jump into a priced matchup.

    Phi 4 Mini FAQ

    How much does Phi 4 Mini cost per million tokens?

    As of August 25, 2026, Phi 4 Mini OpenRouter API pricing is $0.08 per million input tokens and $0.35 per million output tokens via OpenRouter. Input tokens are the prompt you send; output tokens are the completion. Long answers therefore cost more than short ones even when the prompt stays the same. Source: https://openrouter.ai/api/v1/models

    What is the blended API cost for Phi 4 Mini?

    On this page the blended Phi 4 Mini API cost is $0.43 for 1 million input tokens plus 1 million output tokens. That 1:1 mix is the comparison scale used across the LLM pricing table. A 3:1 mix (three million input tokens per one million output tokens), which some calculators use, would be about $0.59.

    How much does a typical Phi 4 Mini request cost?

    A typical Phi 4 Mini API request with 100K input tokens and 20K output tokens costs about $0.01 at current rates as of August 25, 2026. Multiply that by daily or monthly volume to estimate spend. Caching, batch APIs, and volume discounts from OpenRouter can bring the real invoice lower than the public list rate at https://openrouter.ai/api/v1/models.

    What is the context window for Phi 4 Mini?

    Phi 4 Mini supports a 131K token context window. The context window is the total prompt plus conversation history the model can see in one call. Larger windows cost more when you fill them, because every input token is billed per million tokens.

    Is Phi 4 Mini open source?

    Yes. Phi 4 Mini is an open-weight model by Microsoft. You can download the weights and self-host, or pay OpenRouter's hosted API and skip GPU ops. Hosted API pricing on this page is the public per-million-token rate, not the electricity cost of running the weights yourself.

    What benchmarks does Phi 4 Mini perform well on?

    Phi 4 Mini currently reports GPQA 25.2%, MMLU 67.3%, HellaSwag 69.1%. See the performance table for the full eval set. Use those scores with the token prices above when you are choosing between a cheaper LLM and a frontier model. GPQA, SWE-bench, and HLE are the evals people usually compare first.

    What is the knowledge cutoff for Phi 4 Mini?

    Phi 4 Mini has a published knowledge cutoff of 2024-06-01. Facts after that date are not guaranteed to be in the weights. For current events you still need retrieval or tools, which adds input tokens and therefore API cost per million tokens.

    How do I compare Phi 4 Mini with another LLM?

    Use the Compare picker on this page to start an LLM comparison. Search by model or provider, pick a second model, and AnotherWrapper opens a dedicated Phi 4 Mini vs page with per-million-token prices, blended 1M-in / 1M-out cost, context window, throughput, and benchmarks. You can also open any model from the sidebar, or go back to the LLM pricing table to sort the full index.

    What are the cheapest alternatives to Phi 4 Mini?

    The cheapest LLM alternative depends on whether you optimize for blended token cost, coding evals, or context window. Start with the popular matchups on this page, then sort the LLM pricing table by blended cost to see which hosted APIs undercut Phi 4 Mini. Open-weight models can be cheaper still if you self-host, but that is not the same as OpenRouter API pricing on this page.

    How do I use Phi 4 Mini in my application?

    Phi 4 Mini is called through OpenRouter's API with an API key. Bill against input and output tokens separately; cache or shorten prompts if spend is high. If you are shipping a full product, AnotherWrapper includes pre-built API routes and templates for OpenRouter and 5+ other providers with auth, payments, and deployment already configured.

    How accurate is this Phi 4 Mini pricing data?

    This Phi 4 Mini page tracks the latest published OpenRouter API pricing from OpenRouter, quoted per million tokens. List rates can differ from invoices because of prompt caching, batch discounts, committed-use tiers, and private contracts. Official rate sheet: https://openrouter.ai/api/v1/models. Benchmark scores come from official publications and independent evals, not from a private lab run by AnotherWrapper.

    About Phi 4 Mini API pricing

    Phi 4 Mini is a open-source model from Microsoft. Current API pricing is $0.08 per million input tokens and $0.35 per million output tokens, with a 131.1K token context window. A blended 1M-in / 1M-out workload costs $0.43.

    Rank it on the LLM leaderboard, SWE-bench, and Humanity's Last Exam.

    The index

    All Large Language Models

    281 models across 33 providers. Search or jump to a lab — every model page stays linked here.

    Baidu

    1 models

    Inception

    1 models

    inclusionAI

    1 models

    LG AI Research

    1 models

    Nous Research

    1 models

    Sakana AI

    1 models

    StepFun

    1 models

    Tencent

    1 models

    Thinking Machines

    1 models

    Unisound

    1 models

    Upstage

    1 models

    Next step

    You found the model. Now ship the product.

    Auth, billing, and the API layer are already decided. Fork 8 finished AI apps, or have us build the first version with you.