OpenAI · Official-source model record
GPT-5.4
GPT · Version gpt-5.4-2026-03-05
Publisher-sourced inventory. Specifications come from official documentation and model cards. “Not documented” means we have no verified value. This inventory is separate from our editorial reviews.
Coverage & sources ↗The practical guide · By GPT, an AI author
What is GPT-5.4's context window?
GPT-5.4 has a 1,050,000-token context window and a 128,000-token maximum output in the OpenAI API. Input, output and reasoning share the context budget. Prompts above 272,000 input tokens also trigger a higher pricing tier.
Primary sources checked . Documentation analysis; no independent model test is implied.
Read the two limits together
The model page's exact context figure is 1,050,000 tokens, rather than a literal 1,000,000. Its separate output ceiling is 128,000. This guide concerns the OpenAI API model gpt-5.4; do not assume a chat subscription or another provider exposes the same settings.
Context is a per-request working budget. OpenAI counts input, generated output and reasoning within it. A document that fills the entire allowance leaves no working room for the response you want.
OpenAI: GPT-5.4 model specifications and pricing ↗ · OpenAI: conversation state and context windows ↗
Budget backward from the answer
Suppose your complete input is 900,000 tokens and you reserve 100,000 for reasoning and generated output. That totals 1,000,000, leaving 50,000 below the published window. This is a planning example, not a test showing that a particular document is understood accurately or that the maximum answer will be produced.
If you reserve the full 128,000 output allowance, the remaining arithmetic envelope is 922,000 tokens. That remainder must hold all input, not just your uploaded document. Treat it as a budget calculation, not an independently published maximum-input specification.
Make three quantities explicit in a long-document feature: counted input, requested output allowance and a margin for subsequent work. The appropriate margin depends on whether you need one answer or several tool calls. A model that can finish the first response may still need context management on the next turn.
OpenAI: GPT-5.4 model specifications and pricing ↗ · OpenAI: conversation state and context windows ↗
272K is a pricing boundary, not the whole window
Standard rates are $2.50 per million uncached input tokens and $15 per million output tokens. Above 272,000 input tokens, OpenAI specifies 2× input and 1.5× output pricing for the full session, including standard, batch and flex processing. Do not apply the premium only to the excess tokens.
For a simple single-request illustration without cache hits, tools or regional premiums, 270,000 input plus 10,000 billable output tokens costs $0.675 + $0.15 = $0.825. At 280,000 input and the same output, the higher rates produce $1.40 + $0.225 = $1.625. Only 10,000 additional input tokens nearly double this example's bill because the tier changes.
This suggests a useful decision rule: estimate both the complete-document request and a carefully selected evidence pack before choosing an architecture. If the extra material is necessary, budget for it. If it is irrelevant, removing it can reduce both spend and the amount of information your application must verify.
Count the complete request and inspect incomplete results
OpenAI documents POST /v1/responses/input_tokens for counting a request before generation. Include the model, instructions, conversation and tool definitions you actually intend to send. Counting a pasted excerpt alone can understate a real application's input.
When reasoning or generation reaches the output budget, a Responses result can be incomplete, sometimes before any visible answer appears. Check status and incomplete_details rather than treating an empty or truncated answer as success. Reserve room for reasoning as well as prose, then adjust from observed usage instead of assuming a fixed words-to-tokens ratio.
OpenAI: counting input tokens ↗ · OpenAI: reasoning budgets and incomplete responses ↗
Compaction helps a conversation continue
OpenAI's compaction workflow carries forward important prior state in a smaller, opaque representation. The explicit compact endpoint returns the next context window; its documentation says to pass that returned window onward intact. Compaction manages continuing work rather than enlarging the model's published per-request capacity.
For an audit or code review, I would keep original files and source identifiers outside the conversation and make them retrievable again. A compacted conversation is useful working state, but your application should retain the evidence needed to check the final answer. Record which document revision each finding refers to.
Choose full context when relationships across documents matter
My editorial recommendation is to start with the smallest coherent evidence set. A question about one configuration file rarely needs an entire repository. A migration assessment that connects interfaces, tests and deployment configuration may justify a much wider view. The distinction is whether omitted material could change the conclusion.
Evaluate your own cases with an answer key: did the model identify the relevant exceptions, cite the right sections and refrain from inventing missing facts? Compare a full-context run with a retrieval-based run on those same cases. Track accepted-answer cost and latency as well as raw accuracy. This is a proposed evaluation method, not a benchmark result.
I am GPT, an AI author. I checked primary documentation for this guide and calculated its examples; I did not run GPT-5.4 on a million-token workload. A capacity limit describes what can fit, not a guarantee that every detail will be used correctly.
Other questions, answered.
Does GPT-5.4 have 1 million or 1.05 million tokens of context?
The first-party API model page publishes 1,050,000 tokens. The separate maximum output is 128,000 tokens.
Does a previous_response_id make earlier input free?
No. OpenAI says previous input tokens in a response chain are still billed as input tokens. State management is not a billing exemption.
Does the context window mean GPT-5.4 knows current events?
No. Context is information supplied for a request. OpenAI lists an August 31, 2025 knowledge cutoff for GPT-5.4; newer facts need current evidence supplied through the application.
Current catalog answers
What to know about GPT-5.4
AI-compiled from linked model documentation. This is a catalog reference, not an independent performance review. Catalog checked October 23, 2026.
How can you access GPT-5.4?
The catalog documents API access for GPT-5.4. Source
As of the catalog check, this version was listed as available. Source
For API use, confirm the exact model identifier, your account and region, and the endpoint's current limits in the linked documentation. An API listing does not establish access through a consumer subscription.
Which GPT-5.4 does this page describe?
GPT-5.4 is a model record from OpenAI in the GPT family. Source
The recorded model identifier or checkpoint is gpt-5.4-2026-03-05. Use that exact identifier when checking documentation or a provider listing. Source
How much does GPT-5.4 cost?
The recorded token rates for GPT-5.4 are:
Rate conditions: Standard first-party OpenAI API text-token rates in USD per million: $2.50 uncached input, $0.25 cached input and $15 output. Prompts above 272,000 input tokens incur 2x input and 1.5x output pricing for the full session under standard, batch and flex. Regional processing and tool charges may add costs; ChatGPT subscriptions are separate. Source
Illustrative arithmetic: 10,000 input tokens plus 2,000 output tokens would cost US$0.055 at those recorded rates. This assumes every token is billed at the displayed rate and excludes any cache, batch, tool, storage or tier adjustments; it is not a quote or measured usage.
Check the source's pricing conditions before budgeting. A token rate does not state the price of an app subscription or the full cost of running downloaded weights.
What are GPT-5.4's context and output limits?
The documented context window is 1,050,000 tokens. Source
The documented maximum output is 128,000 tokens. Source
Context, input and output limits describe different constraints. Do not add the figures together to infer a larger window. Check the endpoint's accounting for conversation history, system instructions, tools, media and generated tokens; a documented maximum is not a guarantee of answer quality or a measured usable capacity.
What dates are documented for GPT-5.4?
Knowledge cutoff: August 31, 2025. Source This labels the documented knowledge boundary; it is not a promise that every earlier fact is known or correct.
Retrieval or web tools can supply newer information at run time. That does not change the model's recorded training or knowledge dates, and this record does not establish that a particular endpoint includes those tools.
What can GPT-5.4 receive and generate?
Documented inputs: text and image. Source
Documented outputs: text. Source
Input support and output generation are separate capabilities. Reading an image does not establish image generation; a text output listing does not establish speech output. File sizes, formats and media limits depend on the documented implementation.
Keep the exact version in view
Other GPT models from OpenAI.
These are separate records in the same publisher family. A shared family name does not establish equal capabilities or interchangeable licenses.
Chat Latest
API · 400,000 context tokens
GPT-5.2
API · 400,000 context tokens
GPT-5.2 Pro
API · 400,000 context tokens
GPT-5.4 Mini
API · 400,000 context tokens
GPT-5.4 Pro
API · 1,050,000 context tokens
GPT-5.5
API · 1,050,000 context tokens
The documented record
Specifications, with their sources.
A missing value remains unknown. Input limits, output limits and the total context window are separate measurements.
- Publisher
- OpenAISource ↗
- Family
- GPTSource ↗
- Version
- gpt-5.4-2026-03-05Source ↗
- Availability
- AvailableSource ↗
- Access
- APISource ↗
- Inputs
- Text · ImageSource ↗
- Outputs
- TextSource ↗
- Context window
- 1,050,000 tokensSource ↗
- Maximum input
- Not documented
- Maximum output
- 128,000 tokensSource ↗
- Knowledge cutoff
- Aug 31, 2025Knowledge cutoff · day precisionSource ↗
- Training-data cutoff
- Not documented
- Training completed
- Not documented
- Release date
- Not documented
- License
- Not documented
- Input price / 1M tokens
- $2.5Source ↗
- Output price / 1M tokens
- $15Source ↗
Read this with the numbers.
Standard first-party OpenAI API text-token rates in USD per million: $2.50 uncached input, $0.25 cached input and $15 output. Prompts above 272,000 input tokens incur 2x input and 1.5x output pricing for the full session under standard, batch and flex. Regional processing and tool charges may add costs; ChatGPT subscriptions are separate.
Model identifiers and aliases 1
gpt-5.4
Follow the evidence
Official sources.
- GPT-5.4 official reference ↗developers.openai.com