OpenAI: GPT-5.4 Pro
Chatopenai/gpt-5.4-proGPT-5.4 Pro 是 OpenAI 的高能力模型,在 GPT-5.4 统一架构基础上增强复杂高风险任务的推理能力。它具备 1M+ 上下文窗口,支持文本和图像输入,适合代理式编码、长上下文工作流和多步骤问题求解。
1M context window
128K max output tokens
Released: 2026-03-05
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningWeb Search
PricingRate 0.15x
| Type | HaoAI Price | Official Reference | Rate |
|---|---|---|---|
| Input | $4.5/M | $30/M | 0.15x · 85% savings |
| Output | $27/M | $180/M | 0.15x · 85% savings |
| Cache read | $0.45/M | $3/M | 0.15x · 85% savings |
Code Examples
from openai import OpenAI
client = OpenAI(
base_url="https://api.hao.ai/v1",
api_key="YOUR_HAOAI_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-5.4-pro",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)