GPT-5.4 是 OpenAI 面向编码与专业工作的前沿模型,其模型页把它定位为「面向编码与专业工作的更实惠的模型」。
- 输入
- 文本 图像 $2.5/M
- 输出
- 文本 $15/M
- 缓存读取
- $1.25/M
- 上下文
- 922K
- 对比 GPT-4o
- 便宜约 50%
- 知识截止
- 2025-08
Benchmark 成绩
厂商公布: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai
价格在同类中的位置
价格在 60 个同类模型中的位置
这条线显示该模型的价格,在 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
单个 Prompt —— 通过网关实测
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 计量所暴露的隐藏思考计费缺口。
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 效率。
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 明确被暂缓给出),以及结构化输出路径的差异。
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)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "gpt-5.4",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "gpt-5.4",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("gpt-5.4")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));关于 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 支持提示词缓存(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)。
相关模型
对比
本页每个值都转录自厂商自己的文档(链接见上),并带有核对日期。价格在全目录范围内比较;各厂商定义不同的规格值,只说明差异而不作图表对比。此处没有任何由我们测量的数据,也不做评分。