47 model prices
  1. Home
  2. Models
  3. Comparisons
  4. Claude Sonnet 5.5 vs GPT-5.4

Claude Sonnet 5.5 vs GPT-5.4: API pricing and context window

Claude Sonnet 5.5 is 20% cheaper than GPT-5.4 for input ($2.00 vs $2.50 per 1M tokens) and 33% cheaper for output ($10.00 vs $15.00). Context window: 1,000,000 tokens for Claude Sonnet 5.5, 1,050,000 for GPT-5.4. A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.04 on GPT-5.4.

Last updated: Pricing data: LiteLLM (MIT)

Claude Sonnet 5.5
$2.00 / $10.00
Input / Output, per 1M tokens · 1M context window
GPT-5.4
$2.50 / $15.00
Input / Output, per 1M tokens · 1.05M context window

Side by side

FieldClaude Sonnet 5.5GPT-5.4Claude Sonnet 5.5 vs GPT-5.4
Input$2.00$2.50-20%
Output$10.00$15.00-33%
Cached input$0.10$0.25-60%
Context window1,000,0001,050,000-5%
Max output128,000128,000
Long-context thresholdnone272,000
Batch API input$1.00$1.25-20%
Batch API output$5.00$7.50-33%
Image inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
PDF inputYesYes
Structured outputYesYes
Extra-high reasoning effortYesYes

Cost per task

TaskClaude Sonnet 5.5GPT-5.4Cheaper
Chat request (10K in + 1K out)$0.03$0.04Claude Sonnet 5.5 (25% less)
Codebase question (100K in + 2K out)$0.22$0.28Claude Sonnet 5.5 (21% less)
Same question, context cached (100K cached + 2K out)$0.03$0.055Claude Sonnet 5.5 (45% less)
Long document (300K in + 4K out)$0.64$1.59Claude Sonnet 5.5 (60% less)
1M tokens a month (750K in + 250K out)$4.00$5.63Claude Sonnet 5.5 (29% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: Claude Sonnet 5.5 · GPT-5.4

More comparisons

Questions

Which is cheaper, Claude Sonnet 5.5 or GPT-5.4?

Claude Sonnet 5.5 is 20% cheaper than GPT-5.4 for input ($2.00 vs $2.50 per 1M tokens) and 33% cheaper for output ($10.00 vs $15.00). A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.04 on GPT-5.4.

Which has the larger context window, Claude Sonnet 5.5 or GPT-5.4?

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

How much does a typical request cost on Claude Sonnet 5.5 and GPT-5.4?

A chat request with 10K input and 1K output tokens costs $0.03 on Claude Sonnet 5.5 and $0.04 on GPT-5.4. A 100K-token codebase question with a 2K answer costs $0.22 and $0.28.

What are the differences between Claude Sonnet 5.5 and GPT-5.4?

Claude Sonnet 5.5 / GPT-5.4: input: $2.00 / $2.50; output: $10.00 / $15.00; cached input: $0.10 / $0.25; context window: 1,000,000 / 1,050,000; long-context threshold: none / 272,000; Batch API input: $1.00 / $1.25; Batch API output: $5.00 / $7.50.