OpenAI

GPT 5.4

OpenAI按量收費動態收費
Alias:gpt-5.4

面向程式設計與專業工作的推理模型,可調整推理強度並支援長上下文。支援文字與影像輸入、文字輸出。上下文為 1,050,000 個詞元,最多輸出 128,000 個詞元。輸入超過 272,000 個詞元時,整次請求適用長上下文費率。官方 Standard 費率(美元/百萬詞元):輸入 2.50、快取讀取 0.25、輸出 15。長上下文:輸入 5、快取讀取 0.50、輸出 22.50。

textimagestreamingfunction_callingtoolsstructured_outputjson_modevisionweb_searchcachingreasoningcode_interpretercontext:1050000
起始價格
查看完整計費明細
上下文
1.1M
最大輸入窗口
最大輸出
128K
單次回應最大 token 數
模態
→
知識截止
Aug 2025
發佈於
Mar 2026

Pricing by Supplier

比較同一模型在不同供應商的價格與服務表現。

供應商2
USD · 每 1M tokens效能 · Last 24 hours
供應商Discount檔位輸入/M輸出/M緩存讀取/M
OpenAI

OpenAI 官方 API

省35%
standard輸入 ≤ 272K tokens
$1.625$2.5
$9.75$15
$0.1625$0.25
long_context輸入 > 272K tokens
$3.25$5
$14.625$22.5
$0.325$0.5
Azure

直接連線至 Microsoft Azure API,服務穩定可靠

省32.5%
standard輸入 ≤ 272K tokens
$1.6875$2.5
$10.125$15
$0.16875$0.25
long_context輸入 > 272K tokens
$3.375$5
$15.1875$22.5
$0.3375$0.5
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

左右滑動表格,查看完整價格與效能。

能力 / 支援的模態

串流輸出函數呼叫工具結構化輸出視覺網絡搜尋提示詞緩存推理代碼解釋器
輸入
輸出

廠商與數據私隱

供應商
OpenAI文件
分詞器
o200k_base
許可證
Proprietary (commercial)商業閉源
數據保留30 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·GPT 5.4

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About GPT 5.4

面向程式設計與專業工作的推理模型,可調整推理強度並支援長上下文。支援文字與影像輸入、文字輸出。上下文為 1,050,000 個詞元,最多輸出 128,000 個詞元。輸入超過 272,000 個詞元時,整次請求適用長上下文費率。官方 Standard 費率(美元/百萬詞元):輸入 2.50、快取讀取 0.25、輸出 15。長上下文:輸入 5、快取讀取 0.50、輸出 22.50。

查看介紹原文

连接分析、编程与日常办公

GPT-5.4 可以把需求理解、推理和工具调用放进同一条工作流程。它适合处理具有明确目标的专业任务,例如从产品规则设计接口、检查一组经营数据的异常、把分散的会议资料整理成行动计划,或根据页面截图分析交互问题。输入可以包含文字与图片,结果以文字或约定的数据结构返回。

开发者可以用它理解现有代码、补充实现、解释测试失败和评估重构风险。把运行环境、关联文件和不能改变的行为一并提供,可以让它给出更贴近项目的修改建议。对于复杂故障,要求先列出可验证假设,再依据日志排除,通常比直接要求“修好代码”更便于协作。

在业务工作中,它能从较长的文档中抽取信息、比较方案并起草报告。百万 Token 级上下文方便处理大型资料包,仍建议按主题标注来源、区分新旧版本,并明确哪份文件具有最终效力。结构化输出可用于生成工单、分类结果或数据提取记录;函数调用则可以让应用把需要查询或执行的步骤交给真实工具。

它提供从不额外推理到更高强度推理的设置。表单整理、文案改写可优先考虑响应速度;涉及复杂计算、代码设计或多条件判断时,可以提高推理强度并预留输出预算。网页检索、计算环境和电脑操作都需要调用端实际提供相应工具,接入后应按步骤检查工具结果。

实际选用问题

能根据截图修改页面吗? 可以理解截图并生成修改方案或代码;真正写入项目、启动页面和检查效果需要编辑与运行工具。

能把结果直接接进系统吗? 可以定义字段和格式,让程序解析输出;业务校验、权限判断和数据保存仍应由应用执行。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Draft and revise text with explicit audience, tone and format requirements.
  • Summarize supplied documents and compare answers against the original sources.

Practical tips

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.

Example prompt

Summarize the following document in five bullet points. Separate confirmed facts from open questions, cite the relevant passages and do not invent missing information. Document: [paste your text]

查看使用指南原文

给任务增加可验证的终点

将输入资料、限制条件和交付物写在同一条请求中。

根据这份季度销售表和两张仪表盘截图,检查三个区域的收入变化。
先核对图表与表格是否一致,再区分销量、单价和退款的影响。
输出一页管理层简报:关键变化、证据、需要补充的数据、下季度行动建议。
所有金额保留原币种;缺少的数据不要估算。

工具工作流中,可以约定“查询完成后先核对行数与时间范围,再生成报告”。代码任务则指定允许修改的文件、测试命令和验收行为,让最终回复包含实际完成内容与尚待验证的问题。

API access

API 介面文件

呼叫示例

請求POST/v1/chat/completions
請求範例
參數
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
Azure無限制無限制無限制
OpenAI無限制無限制無限制

無限制

Frequently asked questions about gpt-5.4

What is gpt-5.4?

面向程式設計與專業工作的推理模型,可調整推理強度並支援長上下文。支援文字與影像輸入、文字輸出。上下文為 1,050,000 個詞元,最多輸出 128,000 個詞元。輸入超過 272,000 個詞元時,整次請求適用長上下文費率。官方 Standard 費率(美元/百萬詞元):輸入 2.50、快取讀取 0.25、輸出 15。長上下文:輸入 5、快取讀取 0.50、輸出 22.50。

How do I call gpt-5.4?

Create an API key with access to gpt-5.4, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is gpt-5.4 priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of gpt-5.4?

The model catalog lists a context window of 1050000 tokens. Check the selected endpoint for request limits.

What is the maximum output of gpt-5.4?

The model catalog lists a maximum output of 128000 tokens. Your request settings may set a lower limit.

How should I evaluate gpt-5.4 for my project?

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.