GPT 5.4
OpenAI logo

GPT 5.4

gpt-5.4
OpenAI

Pricing

TierPricingCache ReadWeb Search
Input<=272K
$2.5$15
$0.25/M tokens$0.01/request
272K<Input
$5$22.5
$0.5/M tokens$0.01/request

Input Modalities

  • Text
  • Vision
  • PDF

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://shkq.org/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 the context length of GPT 5.4?

GPT 5.4 has a 1,050,000 token context window. It supports up to 128,000 output tokens.