Skip to main content
TokenCost logoTokenCost

GPT-5.4

Last verified August 17, 2026 · OpenAI pricing ↗

$2.50/1M input · $15.00/1M output · 1.1M context · OpenAI

GPT-5.4 costs $2.50 per 1M input tokens and $15.00 per 1M output tokens from OpenAI, with a 1.1M-token context window. A typical chat reply (1,500 tokens in, 400 out) costs $0.0097, or $97.50 per 10,000 requests. On that workload it is cheaper than 33 of the 175 other buyable models tracked here.

premiumcodinganalysislong-contextproduction

When to use GPT-5.4

Best for production workloads that need the strongest general-purpose reasoning. Handles complex multi-step tasks, long documents, and code generation at scale. The go-to when accuracy matters more than cost.

  • Strongest general reasoning across benchmarks
  • 1M+ token context window for entire codebases
  • 128K output tokens for long-form generation
  • Excellent at code, math, and structured outputs
  • Supports vision, function calling, and tool use

Count Tokens

—
Tokens
—
Input Cost
—
Output Cost

Estimate Monthly Cost

Monthly Cost Estimator

Quick:
<$0.0001/mo

Pick a preset above or enter custom usage

What GPT-5.4 Costs Per Request

At $2.50 per 1M input and $15.00 per 1M output tokens, before caching or batch discounts.

WorkloadInput / output tokensPer requestPer 10,000 requests
Chat reply1,500 / 400$0.0097$97.50
RAG answer over retrieved docs8,000 / 600$0.029$290.00
Coding-agent step30,000 / 2,000$0.105$1050.00

GPT-5.4 vs Similarly Priced Models

Nearest buyable models by price, with the RAG answer above (8,000 in / 600 out) priced on each.

ModelInput /1MOutput /1MContextRAG answer
GPT-5.4 OpenAI$2.50$15.001.1M$0.029
GPT-5.2 OpenAI$1.75$14.00400K$0.022
Claude Sonnet 4.6 Anthropic$3.00$15.001.0M$0.033
Sonar Pro Perplexity$3.00$15.00128K$0.033

Alternatives to GPT-5.4

Pricing Details

OpenAIMost capable OpenAI model. 2x input / 1.5x output pricing above 272K context.
Input / 1M tokens
$2.5
Output / 1M tokens
$15
Context Window
1.1M
Max Output
128K

Price History

No price change recorded since 2026-07-24, when this site started tracking this model.

Frequently Asked Questions

Common questions about GPT-5.4 pricing and usage

How much does GPT-5.4 cost?
GPT-5.4 costs $2.5 per 1 million input tokens and $15 per 1 million output tokens. This pricing is set by OpenAI.
What tokenizer does GPT-5.4 use?
GPT-5.4 uses the o200k_base tokenizer. This is OpenAI's latest tokenizer, optimized for efficiency with a vocabulary of ~200,000 tokens.
What is GPT-5.4's context window?
GPT-5.4 supports a context window of 1.1M tokens (1,050,000 tokens). The maximum output length is 128K tokens.
How does GPT-5.4 compare to other models?
On an 8,000-token-in, 600-token-out RAG answer, GPT-5.4 costs $0.029 per request. The nearest-priced alternatives cost: GPT-5.2 (OpenAI) $0.022, Claude Sonnet 4.6 (Anthropic) $0.033, Sonar Pro (Perplexity) $0.033. The table above lists their full rates and context windows.
How do I count tokens for GPT-5.4?
Use the token counter at the top of this page or visit the homepage calculator. Paste your text and it will show the exact token count and cost for GPT-5.4 using the o200k_base tokenizer.

Read More About GPT-5.4