gpt-5.4
OpenAI logo

GPT 5.4

gpt-5.4
OpenAI
GPT-5.4 is our frontier model for complex professional work.Reasoning.effort supports: none (default), low, medium, high and xhigh.

Pricing

TierPricingCache ReadImage GenerationWeb Search
Input<=272K
$2.500$15.000
$0.25/M tokens-$0.01/request
272K<Input
$5.000$22.500
$0.5/M tokens-$0.01/request

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Context length

  • 1.05M tokens

Max output

  • 128K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="gpt-5.4",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

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

Frequently asked questions

What is gpt-5.4?

GPT-5.4 is our frontier model for complex professional work.Reasoning.effort supports: none (default), low, medium, high and xhigh.