新人 免费注册,送 10 次调用,最高 $1,无需绑卡。

GPT-5.4

发布于 2026-03-05

chat图像理解代码工具调用推理提示词缓存

GPT-5.4 是 OpenAI 面向编码与专业工作的前沿模型,其模型页把它定位为「面向编码与专业工作的更实惠的模型」。

输入
文本 图像 $2.5/M
输出
文本 $15/M
缓存读取
$1.25/M
上下文
922K
对比 GPT-4o
便宜约 50%
知识截止
2025-08

Benchmark 成绩

高于同类均值无更高分21 / 371 / 37
GPT-5.4 其他参测模型 同类均值 ★ 没有模型得分更高
SWE-Bench Pro
57.7%
GeneBench
19%
OSWorld-Verified
75%
Cybergym
79%
HealthBench Professional
48.1%
OfficeQA Pro
53.2%
GPQA Diamond
92.8%
BrowseComp
82.7%
RealWorldQA
83.8%

供应商公布: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai

价格在同类中的位置

价格在 68 个同类模型中的位置

输入$2.5/M
$0.1 · Dola Seed 2.0 Mini GPT-5.4 Pro · $30
输出$15/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
缓存读取$1.25/M
$0.01 · Claude Haiku 5.5 GPT-5.4 Pro · $15

这条线标出该模型的价格在 Synthorai 同类模型中的位置,两端分别是最便宜和最贵的模型。这里是基础价,批量、区域和缓存写入的折扣见价格页。

规格与限制

Token

上下文窗口(供应商规格) 1,050,000
最大输出(供应商规格) 128,000
知识截止 2025-08

提示词缓存

缓存方式 自动
最小前缀 1,024
有效期 5–10 分钟,最长 1 小时

思考

供应商参数 reasoning.effort
可选值 none · low · medium · high · xhigh
默认值 none 请求未指定时生效
可关闭 支持
思考行为 支持交错思考:思考之前和思考之间都有可见输出,工具调用之间也会思考。
参数 reasoning_effort
取值 minimal · low · medium · high 这是网关侧的参数,实际以上方的供应商映射为准

模型

模态 文本 + 图像 → 文本
  • 1.05M token 上下文 / 128k 最大输出
  • 输入超过 272k token 的提示词按 2x 输入 / 1.5x 输出计费
  • 推理力度 none-xhigh

依据 OpenAI 官方文档 ↗

一条提示词,经网关实测

提示词 Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. 检查 恰好 3 句

GPT-5.4 通过 · 3 sentences

Enabling reasoning makes the model generate and evaluate additional internal steps before producing an answer, which increases the total tokens processed and therefore the cost per request. It also tends to increase latency and can trigger more tool calls, retries, or longer context retention, all of which compound usage-based charges. So even if user traffic stayed flat, the average cost per interaction rose materially once reasoning was turned on.

输出 82 tok 延迟 1.9 s

指令遵循(恰好三句,数得出来)、受众适配(对 CFO 说话的口吻),以及下方 token 计数暴露出的隐藏思考计费差额。

提示词 This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. 检查 修复通过测试

GPT-5.4 通过 · 8/8 cases

```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 else: best = max(best, cur) cur = 1 best = max(best, cur) return best ``` The bug is that the original code was counting *matching transitions* between adjacent elements instead of the *length of the run itself*, so a single element started at `0` instead of `1`, making all run lengths off by one. It also only updated `best` inside the equality case, which means the final run could be lost if the loop ended before a change triggered any correction logic. […]

输出 243 tok 延迟 3.0 s

修复是否真的正确(能运行)、解释的信息密度,以及在一个范围明确的任务上的 token 效率。

提示词 Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. 检查 合法 JSON,严格符合 schema

GPT-5.4 通过 · 5/5 fields, guidance "withheld pending the Q4 close"

{"company":"Meridian Robotics","quarter":"September quarter","revenue_usd_m":412,"growth_pct":11,"guidance":"withheld pending the Q4 close"}

输出 39 tok 延迟 1.3 s

是否严守 schema(不臆造字段)、能否顶住幻觉压力(原文明说暂不给出 guidance),以及结构化输出路径的差异。

提示词 Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. 检查 120 词,0 个禁用词

GPT-5.4 通过 · 126 words, 0 banned, 1 question

Today we’re introducing Prompt Cache, a new API gateway feature that stores prompt results and reuses them across supported model providers. Teams can reduce latency, lower repeated compute costs, and keep application behavior more consistent when identical or near-identical prompts appear in production. Prompt Cache works at the gateway layer, so developers can adopt it without rewriting provider integrations or changing routing logic. Built-in controls let you set cache keys, expiration policies, and privacy rules for sensitive workloads. Need faster responses without duplicating optimization work for each vendor? With shared observability, you can track hit rates, savings, and cache performance in one place. […]

输出 154 tok 延迟 2.9 s

是否守住约束(字数预算、禁用词表、只能有一个问句)、文风特征,以及长度控制。

30 秒用上 GPT-5.4

兼容 OpenAI:换掉 base_url,SDK 不用改。POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="gpt-5.4",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

关于 GPT-5.4

  • 它把该家族扩展到 1,050,000 token 上下文窗口(厂商规格),128K 最大输出 token,支持图像输入、从 none 到 xhigh 的可配置推理力度、折扣缓存输入,以及包含网页搜索和代码解释器的完整托管工具集,知识截止为 2025 年 8 月。
  • 推理力度默认为 none,这让延迟保持较低,但也意味着深思熟虑的工作必须显式请求。
  • 发布时 OpenAI 点名了该模型的四项新能力:1M 级上下文窗口、工具搜索、内置 computer use,以及面向长时间会话的压缩(compaction)。
  • 除此之外,工具列表还包括文件搜索、图像生成、代码解释器、托管 shell、apply patch、skills 和 MCP,Chat Completions、Responses 和 Batch 均受支持。
  • 有一条计费机制值得提前规划:输入超过 272K token 的提示词,整个请求按 2 倍输入价和 1.5 倍输出价计费,因此附加费由输入规模触发,却同时抬高了输出费率。
  • 当旗舰级能力必须与生产经济性兼顾时,它是默认之选。
  • Synthorai 用户通过网关的 OpenAI 兼容 chat completions 端点使用 GPT-5.4。

常见问题

GPT-5.4 API 可以免费试用吗?

可以。新账号有 10 次试用调用,免费额度最高 $1,无需绑卡。按输入 $2.5/M 计算,光这笔额度就够向 GPT-5.4 发约 49 次请求,每次 ~8K token。

GPT-5.4 最擅长什么?

1,050,000 token 上下文窗口、更实惠的旗舰级选项、含网页搜索的完整托管工具集。完整介绍见「关于」部分,内容取自供应商的官方发布说明。

GPT-5.4 的价格是多少?

在 Synthorai 上,GPT-5.4 的输入价为 $2.5/百万 token,输出价为 $15/百万 token。这就是供应商官网价,平台不加价。缓存命中的输入 token 按 $1.25/M 计费。

GPT-5.4 的上下文长度是多少?

GPT-5.4 的上下文长度(上下文窗口)是 922K token。单次回复最多输出 128,000 个 token。

GPT-5.4 支持提示词缓存(prompt caching)吗?

支持,而且全自动:经 OpenAI 处理的提示词会自动缓存,不用改代码。缓存命中的输入 token 按 $1.25/M 计费(未命中为 $2.5/M);提示词的稳定前缀至少要有 1,024 个 token 才能缓存(TTL 5–10 分钟,最长 1 小时)。 提示词缓存指南 →

如何开通 GPT-5.4?

把现有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 设为 "gpt-5.4" 即可。一个 API key 就能调用网关上的全部模型。

GPT-5.4 的知识截止日期是什么时候?

GPT-5.4 的知识截止日期是 2025-08,以供应商官方文档为准(核对于 2026-07-09)。

相关模型

对比

本页的每个数值都照录自供应商自己的文档(链接见上),并标有核对日期。价格是在整个目录范围内比较的;各家供应商定义不一样的规格项,只说明差异,不画图对比。这里没有任何一项是我们自己测的,也不打分。

获取 API key 算算你的成本 →