OpenAI

OpenAI: GPT-5.4Chat

openai/gpt-5.4

GPT-5.4 is a flagship GPT model for complex reasoning, coding, multimodal analysis, web research, and long-running agents. 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 through HaoAI's OpenAI-compatible API.

272K context window
128K max output tokens
Released: 2026-03-05
Protocols:OpenAI
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb Search

Pricing

PriceRate 0.15x
HaoAI
Official
Input
$0.375/M
$2.5/M
Output
$2.25/M
$15/M
Cache read
$0.037/M
$0.25/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",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(response.choices[0].message.content)

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.