GPT 5.4 nano
GPT-5.4 nano is designed for tasks where speed and cost matter most like classification, data extraction, ranking, and sub-agents.
byOPENAIInput TypetextimagefileOutput TypetextContext Window400KMax Output128K
Providers
This model is available from multiple providers. Select one to see its pricing and sample code.
OPENAIDefault
$0.16 / $1/ 1M tokens0.80× base price
Supported formatsOpenAI Chat CompletionsOpenAI Responses
Official OpenAI Channels
Pricing
Transparent pay-as-you-go pricing by token usage — no subscriptions or hidden fees.
Per 1M tokens
Input
Prompt and context tokens
$0.16
Output
Generated completion tokens
$1
Cache read
Reused or stored prompt context
$0.016
Code
Copy an example below to start calling this model in minutes.
API / request example
Sample Code & API
from openai import OpenAI
client = OpenAI(
base_url="https://api.apipod.ai/v1",
api_key="<YOUR_API_KEY>",
)
# Chat Completions
completion = client.chat.completions.create(
model="gpt-5.4-nano",
messages=[
{
"role": "user",
"content": "What is the meaning of life?",
}
],
)
print(completion.choices[0].message.content)