Microsoft Phi-4

Microsoft

Microsoft's compact 14B model with strong reasoning and coding capability. Excellent value for small-scale deployments.

Context Window: 128K tokens Released: 2025-01 Best For: Edge deployments, local inference, budget coding
  • Compact size
  • Strong reasoning for size
  • Open weights
  • Microsoft Phi-4 Pricing

    Token TypePrice per Million
    Input tokens$0.100
    Output tokens$0.300

    Estimated Cost by Project Size

    Realistic cost estimates for common coding scenarios. Assumes 30% cache hit rate where caching is available.

    ScenarioToken UsageEstimated Cost
    Small Script (1K lines) 50K input / 30K output $0.01
    Medium Feature (10K lines) 500K input / 200K output $0.10
    Large Project (50K lines) 2,500K input / 1,000K output $0.47
    Code Review (5K lines) 250K input / 25K output $0.02

    Get Access to Microsoft Phi-4

    Ready to start using Microsoft Phi-4? Get API access directly from Microsoft.

    Get API Access →

    How Does Microsoft Phi-4 Compare?

    ModelInput ($/M)Medium Feature Cost
    Microsoft Phi-4 $0.100 $0.10 selected
    Gemini 2.0 Flash $0.100 $0.12 Compare
    Mistral Small 3 $0.100 $0.10 Compare
    Gemma 3 27B $0.100 $0.12 Compare
    Qwen Turbo $0.080 $0.08 Compare
    Gemini 1.5 Flash $0.075 $0.09 Compare

    Related Models

    Categories