OpenAI: GPT-5.4 Mini
Chatopenai/gpt-5.4-miniGPT-5.4 Mini 保留 GPT-5.4 的核心能力,同时面向更快响应和更高效率优化,支持文本和图像输入,适合大规模推理、编码和工具调用部署。
400K context window
128K max output tokens
Released: 2026-03-17
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb Search
PricingRate 0.15x
| Type | HaoAI Price | Official Reference | Rate |
|---|---|---|---|
| Input | $0.113/M | $0.75/M | 0.15x · 85% savings |
| Output | $0.675/M | $4.5/M | 0.15x · 85% savings |
| Cache read | $0.011/M | $0.075/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-mini",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)