47 model prices
  1. Home
  2. Models
  3. Comparisons
  4. GPT-5.4 vs GPT-5.2

GPT-5.4 vs GPT-5.2: API pricing and context window

GPT-5.2 is 30% cheaper than GPT-5.4 for input ($1.75 vs $2.50 per 1M tokens) and 7% cheaper for output ($14.00 vs $15.00). Context window: 1,050,000 tokens for GPT-5.4, 272,000 for GPT-5.2. A 10K-input, 1K-output request costs $0.04 on GPT-5.4 and $0.032 on GPT-5.2.

Last updated: Pricing data: LiteLLM (MIT)

GPT-5.4
$2.50 / $15.00
Input / Output, per 1M tokens · 1.05M context window
GPT-5.2
$1.75 / $14.00
Input / Output, per 1M tokens · 272K context window

Side by side

FieldGPT-5.4GPT-5.2GPT-5.4 vs GPT-5.2
Input$2.50$1.75+43%
Output$15.00$14.00+7%
Cached input$0.25$0.175+43%
Context window1,050,000272,000+286%
Max output128,000128,000
Long-context threshold272,000none
Batch API input$1.25$0.875+43%
Batch API output$7.50$7.00+7%
Flex input$1.25$0.875+43%
Flex output$7.50$7.00+7%
Fast mode (formerly Priority) input$5.00$3.50+43%
Fast mode (formerly Priority) output$30.00$28.00+7%
Image inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
PDF inputYesYes
Structured outputYesYes
Extra-high reasoning effortYesYes
Input typestext, imagetext, image
Output typestexttext, image

Cost per task

TaskGPT-5.4GPT-5.2Cheaper
Chat request (10K in + 1K out)$0.04$0.032GPT-5.2 (21% less)
Codebase question (100K in + 2K out)$0.28$0.203GPT-5.2 (28% less)
Same question, context cached (100K cached + 2K out)$0.055$0.046GPT-5.2 (17% less)
Long document (300K in + 4K out)$1.59Context exceeded—
1M tokens a month (750K in + 250K out)$5.63$4.81GPT-5.2 (14% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: GPT-5.4 · GPT-5.2

More comparisons

Questions

Which is cheaper, GPT-5.4 or GPT-5.2?

GPT-5.2 is 30% cheaper than GPT-5.4 for input ($1.75 vs $2.50 per 1M tokens) and 7% cheaper for output ($14.00 vs $15.00). A 10K-input, 1K-output request costs $0.04 on GPT-5.4 and $0.032 on GPT-5.2.

Which has the larger context window, GPT-5.4 or GPT-5.2?

GPT-5.4 accepts more: 1,050,000 input tokens, against 272,000 for GPT-5.2. Both return up to 128,000 output tokens.

How much does a typical request cost on GPT-5.4 and GPT-5.2?

A chat request with 10K input and 1K output tokens costs $0.04 on GPT-5.4 and $0.032 on GPT-5.2. A 100K-token codebase question with a 2K answer costs $0.28 and $0.203.

What are the differences between GPT-5.4 and GPT-5.2?

GPT-5.4 / GPT-5.2: input: $2.50 / $1.75; output: $15.00 / $14.00; cached input: $0.25 / $0.175; context window: 1,050,000 / 272,000; long-context threshold: 272,000 / none; Batch API input: $1.25 / $0.875; Batch API output: $7.50 / $7.00; Flex input: $1.25 / $0.875; Flex output: $7.50 / $7.00.