47 model prices
  1. Home
  2. Models
  3. OpenAI
  4. GPT-5.4

GPT-5.4 API pricing and context window

GPT-5.4 costs $2.50 per 1M input tokens and $15.00 per 1M output tokens on the OpenAI API. Cached input reads cost $0.25 per 1M. It accepts up to 1,050,000 input tokens and returns up to 128,000 output tokens. A typical chat request (10K input, 1K output) costs about $0.04. Prices last updated November 27, 2026.

Last updated: Provider pricing pagePricing data: LiteLLM (MIT)

Input
$2.50
per 1M tokens
Output
$15.00
per 1M tokens
Cached input
$0.25
per 1M tokens
Context window
1,050,000
tokens
Max output
128,000
tokens

Pricing options

Input /1MOutput /1Mvs standard (input / output)
Prompt over 272K tokens$5.00$22.50+100% / +50%
Batch API$1.25$7.50-50% / -50%
Flex$1.25$7.50-50% / -50%
Fast mode (formerly Priority)$5.00$30.00+100% / +100%

Typical task cost

TaskCost
Chat request (10K in + 1K out)$0.04
Codebase question (100K in + 2K out)$0.28
Same question with cached context (100K cached + 2K out)$0.055
Long prompt (300K in + 2K out)$1.55
Filling the whole context once (1.05M in)$5.25
1M tokens a month (750K in + 250K out)$5.63

Estimate your own workload in the calculator

GPT-5.4 compared with the previous and next version

ModelInput /1MOutput /1MWhat changes
NewerGPT-5.5$5.00 +100%$30.00 +100%GPT-5.4 → GPT-5.5: input: $2.50 → $5.00; output: $15.00 → $30.00; cached input: $0.25 → $0.50; long-context input: $5.00 → $10.00
+8 more differenceslong-context output: $22.50 → $45.00; long-context cached input: $0.50 → $1.00; Batch API input: $1.25 → $2.50; Batch API output: $7.50 → $15.00; Flex input: $1.25 → $2.50; Flex output: $7.50 → $15.00; Fast mode (formerly Priority) input: $5.00 → $12.50; Fast mode (formerly Priority) output: $30.00 → $75.00
OlderGPT-5.2$1.75 -30%$14.00 -7%GPT-5.2 → GPT-5.4: input: $1.75 → $2.50; output: $14.00 → $15.00; cached input: $0.175 → $0.25; context: 272K → 1.05M
+8 more differenceslong-context threshold: none → 272K; Batch API input: $0.875 → $1.25; Batch API output: $7.00 → $7.50; Flex input: $0.875 → $1.25; Flex output: $7.00 → $7.50; Fast mode (formerly Priority) input: $3.50 → $5.00; Fast mode (formerly Priority) output: $28.00 → $30.00; output types: text, image → text

Capabilities and details

Similar models by price

ModelProviderInput /1MOutput /1MContext windowvs this model (input / output)
Claude Sonnet 4.5Anthropic$3.00$15.00200K+20% / 0%
Claude Sonnet 4.6Anthropic$3.00$15.001M+20% / 0%
o3OpenAI$2.00$8.00200K-20% / -47%
GPT-6.2 AstraOpenAI$8.00$40.00922K+220% / +167%
GPT-6 AstraOpenAI$10.00$50.00922K+300% / +233%

Compare GPT-5.4

Price history

DateInput /1MOutput /1MCached input /1M
$2.50$15.00$0.25

Tracking started on November 21, 2026. A new row appears only when a price changes.

Embed this price badge

GPT-5.4 API price

The badge shows the current list price and updates daily. Paste the HTML or Markdown into your site or README.

<a href="https://vibecodingturkey.com/models/gpt-5-4"><img src="https://vibecodingturkey.com/models/badge/gpt-5-4.svg" alt="GPT-5.4 API price" height="20"></a>
[![GPT-5.4 API price](https://vibecodingturkey.com/models/badge/gpt-5-4.svg)](https://vibecodingturkey.com/models/gpt-5-4)

Questions

How is GPT-5.4 different from GPT-5.2?

GPT-5.2 → GPT-5.4: input: $1.75 → $2.50; output: $14.00 → $15.00; cached input: $0.175 → $0.25; context: 272K → 1.05M; long-context threshold: none → 272K; Batch API input: $0.875 → $1.25; Batch API output: $7.00 → $7.50; Flex input: $0.875 → $1.25. +4 more differences in the table above.

Does GPT-5.4 cost more for long prompts?

Yes. Once a prompt passes 272,000 tokens, the whole request is billed at $5.00 input and $22.50 output per 1M. A 300K-token prompt with a 2K answer costs about $1.55.

Is there a batch discount for GPT-5.4?

Yes. Through the Batch API it costs $1.25 per 1M input and $7.50 per 1M output tokens.

Does GPT-5.4 support prompt caching?

Yes. Cached input reads cost $0.25 per 1M tokens, 90% less than standard input.