GPT-5.4 mini vs Claude Haiku 4.5: pricing compared

For a 30-step coding agent run, GPT-5.4 mini is 1.3x cheaper ($0.38 vs $0.52). Prices verified 2026-11-17.

GPT-5.4 miniClaude Haiku 4.5
ProviderOpenAIAnthropic
Input / 1M$0.75$1.00
Cached input / 1M$0.075$0.10
Output / 1M$4.50$5.00
Batch discount50%50%
Context window400K200K
Long-context tiernonenone

Cost on real workloads

WorkloadGPT-5.4 miniClaude Haiku 4.5
10,000 chatbot replies
2,000 input + 400 output tokens each, 50% of the prompt cached
$26.25$31.00
One 30-step coding agent run
12K system + tools prompt, 1K output and 3K tool result per step, caching on
$0.38$0.52
1M documents classified (batch)
600 input + 20 output tokens each, batch API where available
$270$350

Price is only half the decision: a cheaper model that needs more steps or retries can cost more per finished task. Run your own numbers in the calculator (both models pinned), or see how both rank in the use-case guides. Every other model is in the pricing comparison, and the token counter shows how many tokens your prompt is on each.

FAQ

Is GPT-5.4 mini cheaper than Claude Haiku 4.5?

For a typical 30-step coding agent run with caching, GPT-5.4 mini costs $0.38 and Claude Haiku 4.5 costs $0.52, so GPT-5.4 mini is 1.3x cheaper. Per 1M tokens, GPT-5.4 mini is $0.75 / $4.50 and Claude Haiku 4.5 is $1.00 / $5.00.

Which has the bigger context window?

GPT-5.4 mini: 400,000 tokens. Claude Haiku 4.5: 200,000 tokens.