GPT-4.1

OpenAI

Updated GPT-4 generation with improved instruction following and reduced hallucination. Better coding accuracy than GPT-4o.

Context Window: 128K tokens Released: 2025-04 Best For: Production coding, API development, complex instructions
  • Improved accuracy
  • Reduced hallucination
  • Better instruction following
  • GPT-4.1 Pricing

    Token TypePrice per Million
    Input tokens$2.00
    Output tokens$8.00

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

    Benchmark Performance — GPT-4.1

    Third-party benchmark scores normalized to 0-100 scale. Higher is better. Aggregated scores from published third-party benchmarks. SWE-bench measures real GitHub issue resolution. LiveCodeBench measures competitive programming ability. HumanEval measures basic code generation. BigCodeBench measures practical, multi-step coding tasks. All scores normalized to 0-100 scale.

    Overall Score 80/100
    SWE-bench Verified
    76
    LiveCodeBench
    82
    HumanEval
    94
    BigCodeBench
    68

    Sources: SWE-bench Verified, LiveCodeBench, HumanEval, BigCodeBench

    Get Access to GPT-4.1

    Ready to start using GPT-4.1? Get API access directly from OpenAI.

    Get API Access → Try GPT-4.1 Free →

    How Does GPT-4.1 Compare?

    ModelInput ($/M)Medium Feature Cost
    GPT-4.1 $2.00 $2.30 selected
    Mistral Large 2 $2.00 $1.90 Compare
    Mistral Large 3 $2.00 $1.90 Compare
    Qwen Max $1.60 $1.84 Compare
    GPT-4o $2.50 $3.06 Compare
    Grok Code $1.50 $2.02 Compare

    Related Models

    Categories