GPT/Mid-tier

GPT 5.4

GPT 5.4 is GPT's balanced performance model, priced at $2.50/MTok input and $15.00/MTok output with a 1,050K context window.

Input $/MTok

$2.50

Output $/MTok

$15.00

Context window

1,050K

Cache read discount

90% off

GPT 5.4 pricing breakdown

RateInput $/MTokOutput $/MTok
Standard$2.50$15.00
Cached read (90% off input)$0.25-
Cached write (no surcharge)$2.50-
Batch (50% off)$1.25$7.50
Long context (≥272.001K tokens)$5.00$22.50

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

GPT 5.4 task benchmarks

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

TaskConfidenceRank
Code Generation84/100#4
Code Review82/100#5
Summarization91/100#1
Q&A91/100#1
Extraction89/100#1
Reasoning80/100#5
Classification88/100#1
Creative Writing78/100#5

GPT 5.4 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.0650
Unit Test Generation3,0005,000$0.0825
SQL Generation1,5001,000$0.0187
API Generation3,0006,000$0.0975
Code Refactoring4,0004,000$0.0700
Code Review5,0002,000$0.0425
PR Review8,0003,000$0.0650
Security Review6,0002,500$0.0525
Bug Detection5,0002,000$0.0425
Document Summarization10,0001,000$0.0400
PDF Summarization15,0001,500$0.0600
Meeting Notes8,0002,000$0.0500

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 (90% read discount)
1K$65$61.85
10K$650$618.5
100K$6,500$6,185
500K$32,500$30,925
1M$65,000$61,850

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 5.4

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

ModelProviderInput $/MTokOutput $/MTokInput savings
Grok 4.3Grok$1.25$2.5050% cheaper
Claude Sonnet 5Claude$2.00$10.0020% cheaper
Gemini 3.1 ProGemini$2.00$12.0020% cheaper
Claude Sonnet 4.6Claude$3.00$15.0020% more

Track your GPT 5.4 spend

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