OpenAI

GPT-5.4

openai/gpt-5.4
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

GPT-5.4 是 OpenAI 最新的前沿模型,将 Codex 和 GPT 系列整合为一个系统。它配备了 1M+令牌上下文窗口(922K 输入,128K 输出),支持文本和图像输入,支持同一工作流程中的高上下文推理、编码和多模态分析。该模型在编码、文档理解、工具使用和指令执行方面提供了更好的性能。它被设计为通用任务和软件工程的强默认选项,能够生成生产质量的代码,综合多个来源的信息,并以更少的迭代和更高的令牌效率执行复杂的多步工作流程。

Input / output modalities
文本 · 图像 · 文件 to 文本
Reference input / output price
Input¥17.5Output¥105per 1M tokens
Context window
400K
Added to catalog
Mar 6, 2026

Providers and pricing

ProviderInput lengthInput /MOutput /MCached /MContextMax outputDetails
Azure≤ 272K¥17.5¥105¥1.75400K128K
> 272K¥35¥157.5¥3.5
OpenRouter≤ 272K¥17.5¥105¥1.75400K128K
> 272K¥35¥157.5¥3.5

Azure

Latency
2.93s
Throughput
156 tokens/s
Context
400K

Pricing

Input
¥17.5/M tokens
Output
¥105/M tokens
Cached
¥1.75/M tokens

Tiered pricing

Pricing varies by input token range.

0–272K Token

Input tier
¥17.5/M tokens
Output tier
¥105/M tokens
Cached tier
¥1.75/M tokens

272K–∞ Token

Input tier
¥35/M tokens
Output tier
¥157.5/M tokens
Cached tier
¥3.5/M tokens

Specifications

Context
400K
Max output
128K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

OpenRouter

Latency
2.67s
Throughput
114 tokens/s
Context
400K

Pricing

Input
¥17.5/M tokens
Output
¥105/M tokens
Cached
¥1.75/M tokens

Tiered pricing

Pricing varies by input token range.

0–272K Token

Input tier
¥17.5/M tokens
Output tier
¥105/M tokens
Cached tier
¥1.75/M tokens

272K–∞ Token

Input tier
¥35/M tokens
Output tier
¥157.5/M tokens
Cached tier
¥3.5/M tokens

Specifications

Context
400K
Max output
128K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

GPT-5.4 code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

Supported endpointsSelect an endpoint to switch the example below.
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="openai/gpt-5.4", messages=[{"role": "user", "content": "Which number is larger, 9.11 or 9.8?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

Related Models