GPT/Mid-tier

GPT 4.1

GPT 4.1 is GPT's balanced performance model, priced at $2.00/MTok input and $8.00/MTok output with a 1,047.576K context window. Backfilled on 2026-09-23. Prices confirmed by the provider pricing page and the LiteLLM cross-check. Release date not published in a machine-readable source. Not yet benchmarked, so never recommended.

Input $/MTok

$2.00

Output $/MTok

$8.00

Context window

1,047.576K

Cache read discount

75% off

GPT 4.1 pricing breakdown

RateInput $/MTokOutput $/MTok
Standard$2.00$8.00
Cached read (75% off input)$0.50-
Cached write (no surcharge)$2.00-
Batch (50% off)$1.00$4.00

All rates in USD per million tokens. Prices verified against provider documentation.

GPT 4.1 task benchmarks

Confidence scores (0-100) and cross-provider rank for each task type. Rank 1 is best across all 72 models.

Not benchmarked. The third-party benchmark source used for confidence scores does not cover GPT models yet. Scores will appear here once independent benchmarks are published.

GPT 4.1 cost by use case

Estimated cost per API call using default token counts for each workload.

Use caseInput tokensOutput tokensCost / call
Code Generation2,0004,000$0.0360
Unit Test Generation3,0005,000$0.0460
SQL Generation1,5001,000$0.0110
API Generation3,0006,000$0.0540
Code Refactoring4,0004,000$0.0400
Code Review5,0002,000$0.0260
PR Review8,0003,000$0.0400
Security Review6,0002,500$0.0320
Bug Detection5,0002,000$0.0260
Document Summarization10,0001,000$0.0280
PDF Summarization15,0001,500$0.0420
Meeting Notes8,0002,000$0.0320

Monthly cost projections

Projected monthly spend at different call volumes, using code generation as a representative workload (2,000 input / 4,000 output tokens per call).

Calls / monthWithout cachingWith caching (75% read discount)
1K$36$33.9
10K$360$339
100K$3,600$3,390
500K$18,000$16,950
1M$36,000$33,900

Caching estimate assumes 70% of input tokens are cache reads. Your actual cache hit rate will depend on prompt structure and reuse.

Mid-tier alternatives to GPT 4.1

Same-tier models from other providers, sorted by input price.

ModelProviderInput $/MTokOutput $/MTokInput savings
Gemini 2.5 ProGemini$1.25$10.0038% cheaper
Grok 4.3Grok$1.25$2.5038% cheaper
Grok 4.20 Non-ReasoningGrok$1.25$2.5038% cheaper
Grok 4.20 ReasoningGrok$1.25$2.5038% cheaper
Grok 4.20 Multi-AgentGrok$1.25$2.5038% cheaper
Claude Sonnet 5Claude$2.00$10.00Same price
Gemini 3.1 ProGemini$2.00$12.00Same price
Gemini 3.1 Pro Custom ToolsGemini$2.00$12.00Same price
Claude Sonnet 4.6Claude$3.00$15.0050% more

Other GPT models

Track your GPT 4.1 spend

See exactly how much you spend on GPT 4.1 and where you can save. Two-line wrapper install, no API keys shared.