GPT-4o mini

OpenAI

Affordable small model. Fast and cost-effective for high-volume coding tasks.

Context Window: 128K tokens Released: 2024-07 Best For: High-volume tasks, simple coding, cost-sensitive projects
  • Low cost
  • Fast inference
  • Function calling
  • GPT-4o mini Pricing

    Token TypePrice per Million
    Input tokens$0.150
    Output tokens$0.600
    Cache read tokens$0.075

    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.02
    Medium Feature (10K lines) 500K input / 200K output $0.18
    Large Project (50K lines) 2,500K input / 1,000K output $0.92
    Code Review (5K lines) 250K input / 25K output $0.05

    How Does GPT-4o mini Compare?

    ModelInput ($/M)Medium Feature Cost
    GPT-4o mini $0.150 $0.18 selected
    Gemini 2.5 Flash $0.150 $0.17 Compare
    Gemini 2.0 Flash $0.100 $0.12 Compare
    Mistral Small 3 $0.100 $0.10 Compare
    Gemini 1.5 Flash $0.075 $0.09 Compare
    Claude 3 Haiku $0.250 $0.34 Compare

    Related Models

    Categories