GPT-5.4
AvailableGPT-5.4 is an older OpenAI flagship model.
Good for Coding agents · Long context · Images and screenshots
Is it right for you?
OpenAI describes it as a flagship model for complex professional work, and as a more affordable model for coding and professional work. OpenAI lists a context of about 1.05M tokens and up to 128K tokens per reply. It reads text and images. Reasoning is optional and off by default: the default effort is none, and levels run up to xhigh. OpenAI lists a higher input price once a prompt passes 272K tokens. Newer models exist: GPT-5.5, the GPT-5.6 family and the GPT-6 family.
Best for
- Coding and professional work in a pipeline you have already tested on GPT-5.4.
- Fast answers without reasoning, since the default effort is none.
- Reading screenshots alongside code.
Not ideal for
- Prompts that regularly pass 272K tokens: the input price rises above that size.
- New work: GPT-5.5, GPT-5.6 Sol and GPT-6.1 Sol are newer. Stay on GPT-5.4 if you have already tested it and want the same results.
- The newest knowledge: OpenAI lists a knowledge cutoff of 31 August 2025 for GPT-5.4.
Next to the rest of the OpenAI line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| GPT-5.4 (this page) | $2.8787 | $17.2723 | 266K | $1.0018 |
| GPT-5.5 | $5.7574 | $34.5445 | 266K | $2.0036 |
| GPT-5.6 Luna | $0.2303 | $1.3818 | 266K | $0.0801 |
| GPT-5.6 Sol | $4.6059 | $23.0297 | 266K | $1.4647 |
| GPT-5.6 Terra | $2.3030 | $13.8178 | 266K | $0.8014 |
| GPT-6 Astra | $11.5148 | $57.5742 | 266K | $3.6617 |
What it costs
Prepaid, per token, no subscription. Set your traffic to see your bill.
30 days, at today's prices. You're billed on actual tokens.
- Per request
- $0.018309
- Coding session
- $1.00
- Per day
- $36.62
- Suggested key budget
- $1,265.00
- Alert at 80%
- $1,012.00
A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.
Cached input. When the provider serves part of a prompt from its cache, those tokens are billed at the cache-read price instead of the input price. Writing a prompt into the cache is billed at the cache-write price. Separately, an exact repeat of a recent request is answered from Yunshu’s own cache and not charged.
Capabilities
What GPT-5.4 can do, as OpenAI lists it.
Get started
Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.
curl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"messages": [{"role": "user", "content": "Write a Python function that checks if a string is a palindrome."}]
}'curl https://api.yunshurouter.com/v1/messages \
-H "x-api-key: $YUNSHU_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Write a Python function that checks if a string is a palindrome."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.yunshurouter.com/v1", api_key="YOUR_YUNSHU_KEY")
resp = client.chat.completions.create(
model="gpt-5.4",
messages=[{"role": "user", "content": "Explain what this regex does: ^\\d{3}-\\d{4}$"}],
)
print(resp.choices[0].message.content)import anthropic
client = anthropic.Anthropic(base_url="https://api.yunshurouter.com", api_key="YOUR_YUNSHU_KEY")
msg = client.messages.create(
model="gpt-5.4",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain what this regex does: ^\\d{3}-\\d{4}$"}],
)
print(msg.content[0].text)Full steps for each tool: integration guides →
Questions
What is GPT-5.4?
GPT-5.4 is an older OpenAI flagship model. See the OpenAI page for the rest of the family.
Does GPT-5.4 support tool calling?
Yes. Send tools in OpenAI format to /v1/chat/completions or in Anthropic format to /v1/messages. Through the Responses API (used by Codex) only function tools are passed through.
Does GPT-5.4 support reasoning?
Yes, and it is optional. OpenAI lists effort levels none, low, medium, high and xhigh. The default is none, so reasoning is off unless you ask for it.
How does GPT-5.4 compare with GPT-5.5?
GPT-5.5 is the newer flagship, released on 24 April 2026. OpenAI lists the same context and output limits for both. GPT-5.5 has a later knowledge cutoff and defaults to medium reasoning, while GPT-5.4 defaults to none. Pick GPT-5.4 if you have already tested it. Otherwise start with a newer model.