Back to Models

GPT-5.4 Nano

openaiopenai/gpt-5.4-nano

API guide

Chat completion

Standard OpenAI-compatible chat. Supports reasoning.effort, tools, streaming, vision, and structured JSON output.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"Classify this review: \"Amazing product, fast shipping!\""}]}'

Streaming

Stream tokens as generated. Nano is the fastest model in the family β€” at 'none' reasoning effort, expect sub-500ms first-token latency for short prompts.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5.4-nano","stream":true,"messages":[{"role":"user","content":"Summarize this conversation."}]}'

Tool use

Full function calling with 56.1% on MCP Atlas. Ideal for sub-agent toolchains where Nano processes parallel tool calls orchestrated by a larger router model.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"Score this resume: Software Engineer at Google"}],"tools":[{"type":"function","function":{"name":"score_resume","description":"Score a candidate resume","parameters":{"type":"object","properties":{"score":{"type":"number"},"summary":{"type":"string"}},"required":["score","summary"]}}}]}'

Structured JSON

Constrain output to valid JSON via response_format for extraction, classification, and ranking pipelines.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"Extract entities from: \"Apple bought startup in Cupertino for $500M\""}],"response_format":{"type":"json_schema","json_schema":{"name":"entity_extraction","strict":true,"schema":{"type":"object","properties":{"entities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"required":["entities"],"additionalProperties":false}}}}'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateopenai.com β†—2026-05-29verified
Training cutoffdevelopers.openai.com β†—2026-05-29verified
OpenAI model iddevelopers.openai.com β†—2026-05-29verified
Reasoning effortopenai.com β†—2026-05-29verified
Key API featuresopenai.com β†—2026-05-29verified
Licenseβ€”β€”verified
SWE-bench Pro (Public)openai.com β†—2026-05-29verified
Terminal-Bench 2.0openai.com β†—2026-05-29verified
Toolathlonopenai.com β†—2026-05-29verified
MCP Atlasopenai.com β†—2026-05-29verified
Ο„2-bench (telecom)openai.com β†—2026-05-29verified
GPQA Diamondopenai.com β†—2026-05-29verified
HLE w/ toolopenai.com β†—2026-05-29verified
MMMUProopenai.com β†—2026-05-29verified
MMMUPro w/ Pythonopenai.com β†—2026-05-29verified
OSWorld-Verifiedopenai.com β†—2026-05-29verified
MRCR v2 8-needle 64K-128Kopenai.com β†—2026-05-29verified
MRCR v2 8-needle 128K-256Kopenai.com β†—2026-05-29verified
Graphwalks BFS 0K-128Kopenai.com β†—2026-05-29verified
Artificial Analysis Intelligence Index (xhigh)artificialanalysis.ai β†—2026-05-29to verify
GPT-5.4 now AI search on ChatGPT β€” Nano benefits from ecosystemopenai.com β†—2026-05-29verified
GPT-5.4 family expands β€” GPT Image 2 launchedopenai.com β†—2026-05-29verified
GPT-5.4 Mini and Nano releasedopenai.com β†—2026-05-29verified
Does GPT-5.4 Nano support reasoning effort levels?openai.com β†—2026-05-29to verify
Does GPT-5.4 Nano support computer use?openai.com β†—2026-05-29to verify
How does GPT-5.4 Nano compare to GPT-4.1 Nano on pricing?developers.openai.com β†—2026-05-29to verify
Does GPT-5.4 Nano support image input?openai.com β†—2026-05-29to verify
Is GPT-5.4 Nano available in ChatGPT?openai.com β†—2026-05-29to verify
What is the context window and max output for GPT-5.4 Nano?developers.openai.com β†—2026-05-29to verify
Help & contact