gpt-5.4-nano
OpenAI logo

GPT 5.4 Nano

gpt-5.4-nano
OpenAI
GPT-5.4 nano is designed for tasks where speed and cost are most important, such as classification, data extraction, ranking, and sub-agent scenarios.

Pricing

PricingCache ReadImage GenerationWeb Search
$0.200$1.250
$0.02/M tokens-$0.01/request

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Context length

  • 400K 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-nano",
    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-nano?

GPT-5.4 nano is designed for tasks where speed and cost are most important, such as classification, data extraction, ranking, and sub-agent scenarios.