GPT-5.4 Nano

openai/gpt-5.4-nano
VisionToolsJSONReasoning
by OpenAI · 2026-03-17

GPT-5.4 nano is the most lightweight and cost-efficient variant of the GPT-5.4 family, optimized for speed-critical and high-volume tasks. It supports text and image inputs and is designed for low-latency...

ctx400K tokens
Max output128K
Inputfile + image + text
Outputtext
p50 TTFT1.25 s
INPUT$0.20/ 1M tokens
OUTPUT$1.25/ 1M tokens
p50 TTFT1.25 s7d
p95 TTFT4.07 s7d
TRAFFIC14.9Mtokens / 7d

OpenAI GPT-5.4 Nano is a language model developed by OpenAI, accessed through OrcaRouter's OpenAI-compatible API. It supports file, image, and text input modalities and offers a context window of…

What is OpenAI GPT-5.4 Nano?

Who should use GPT-5.4 Nano?

What input formats does GPT-5.4 Nano support?

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-5.4-nano",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

  • include_reasoning
  • max_completion_tokens
  • max_tokens
  • reasoning
  • response_format
  • seed
  • stream
  • structured_outputs
  • tool_choice
  • tools

Pricing

Input / 1M tokens$0.200
Output / 1M tokens$1.25
Cache read / 1M$0.020
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $5.15 · With prompt caching $4.52

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.000629

Estimate only — actual token counts depend on the provider's tokenizer.

Performance

p50 TTFT
1.25 s
Output speed
144 tok/s
p95 TTFT
4.07 s
Error rate
0%

Public benchmarks

50.7
AA Coding
Better than 70% of models compared
#32 of 106
51.7
AA Intelligence
Better than 70% of models compared
#33 of 110
52.7
AA Math
Better than 28% of models compared
#58 of 81
GPQA Diamond
46.7 index
Humanity's Last Exam
26.5
IFBench
75.9
Long-Context Recall
66.0
MMLU-Pro
60.7 index
SciCode
46.9
TerminalBench Hard
42.4
τ²-Bench
42.7 index
Source: artificialanalysis.ai

How it compares

GPT-5.4 NanoGPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$0.20$21.00$60.00$5.00
Output $/M$1.25$168.00$270.00$30.00
Context400K400K1.1M
Quality7/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

What is the cost of using GPT-5.4 Nano on OrcaRouter?
GPT-5.4 Nano costs $0.20 per 1 million input tokens and $1.25 per 1 million output tokens. OrcaRouter passes through the provider rate without any markup. Input tokens include text, image tokens, and file content. Output tokens are generated responses. There are no additional fees.
What is the context window size of GPT-5.4 Nano?
The context window is 400,000 tokens. This means the total of input tokens (prompt + images + files) must remain within 400K. The model can also produce up to 128,000 output tokens in a single response.
What are the main strengths of GPT-5.4 Nano?
Strengths include a very large context window (400K tokens), a high output limit (128K tokens), multimodal input support (text, image, file), and a strong benchmark performance on GPQA Diamond (81.7). It is suited for long-document analysis, multi-modal reasoning, and extended generation tasks.
How does GPT-5.4 Nano compare to GPT-4o?
GPT-5.4 Nano has a larger context window (400K vs. 128K) and a higher output limit (128K vs. 16K for GPT-4o). It also supports image and file inputs. Pricing is higher for GPT-5.4 Nano: $0.20/$1.25 per M tokens vs. lower rates for GPT-4o. The GPQA Diamond score of 81.7 for GPT-5.4 Nano may be higher than GPT-4o, but direct comparison depends on your use case.
Does OrcaRouter handle data privacy for GPT-5.4 Nano?
OrcaRouter acts as a proxy to OpenAI. Data privacy depends on OpenAI's data handling policies. OrcaRouter does not store your prompts or responses beyond what is necessary to process the API call. Review OpenAI's data usage policy for details on whether they train on your data. Typically, API customers are not used for training, but confirm with OpenAI's terms.
How do I call GPT-5.4 Nano via an OpenAI-compatible API?
Set the base URL to https://api.orcarouter.ai/v1, use the model ID "openai/gpt-5.4-nano", and provide your OrcaRouter API key. All standard OpenAI Chat Completions parameters (messages, temperature, max_tokens, etc.) are supported. You can use OpenAI SDKs by changing the base_url and model name.
What should I do if I need a larger context than 400K tokens?
If your task requires more than 400K tokens, consider breaking the input into chunks and processing sequentially, or use a model with a larger context window, such as Gemini 1.5 Pro (1M tokens). GPT-5.4 Nano is designed for large contexts but cannot exceed 400K total input tokens.
Can GPT-5.4 Nano understand images within the context?
Yes, GPT-5.4 Nano supports image input. You can include images in the messages array using the same format as OpenAI's vision API (data URLs or URL references). The model will process the image content along with text. Image tokens count toward the context window and pricing.

Embed this badge

OpenAI: GPT-5.4 Nano$0.20/M in1245ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5.4-nano" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5.4-nano.svg" alt="OpenAI: GPT-5.4 Nano on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-5.4 Nano](https://www.orcarouter.ai/embed/openai/gpt-5.4-nano.svg)](https://www.orcarouter.ai/models/openai/gpt-5.4-nano)

Model card as data

GET /api/public/models/openai/gpt-5.4-nanoOpen
Machine-readable:/llms.txt/llms-full.txt