GPT-5.4 Mini is a balanced GPT-5.4 tier for everyday coding, reasoning, multimodal tasks, and cost-sensitive agent workflows. It provides a 272K-token context window and up to 128K output tokens. Its current HaoAI catalog capabilities include vision, function calling, reasoning, web search, prompt caching, code interpreter. Use model ID openai/gpt-5.4-mini through HaoAI's OpenAI-compatible API.
272K context window
128K max output tokens
Released: 2026-03-17
Protocols:OpenAI
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb Search
Pricing
PriceRate 0.15x
HaoAI
Official
Input
$0.113/M
$0.75/M
Output
$0.675/M
$4.5/M
Cache read
$0.011/M
$0.075/M
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)Related Models
Frequently asked questions
HaoAI bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.