返回模型列表

GPT-5.4 Nano

openaiopenai/gpt-5.4-nano

API 使用指南

Chat 调用

标准 OpenAI 兼容 chat 调用。支持推理强度、工具、流式、视觉和结构化 JSON 输出。

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!\""}]}'

流式输出

边生成边推送 token。Nano 是系列中最快的模型——'none' 推理强度下首 token 低于 500ms。

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."}]}'

工具调用

完整函数调用支持(MCP Atlas 56.1%)。适合由大型编排模型发起的并行子 agent 工具链。

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"]}}}]}'

结构化 JSON

通过 response_format 强制输出 JSON,用于抽取、分类和排序流水线。

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}}}}'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期openai.com ↗2026-05-29已核实
训练数据截止developers.openai.com ↗2026-05-29已核实
OpenAI 模型 iddevelopers.openai.com ↗2026-05-29已核实
推理强度openai.com ↗2026-05-29已核实
关键 API 特性openai.com ↗2026-05-29已核实
许可——已核实
SWE-bench Pro (Public)openai.com ↗2026-05-29已核实
Terminal-Bench 2.0openai.com ↗2026-05-29已核实
Toolathlonopenai.com ↗2026-05-29已核实
MCP Atlasopenai.com ↗2026-05-29已核实
τ2-bench (telecom)openai.com ↗2026-05-29已核实
GPQA Diamondopenai.com ↗2026-05-29已核实
HLE w/ toolopenai.com ↗2026-05-29已核实
MMMUProopenai.com ↗2026-05-29已核实
MMMUPro w/ Pythonopenai.com ↗2026-05-29已核实
OSWorld-Verifiedopenai.com ↗2026-05-29已核实
MRCR v2 8-needle 64K-128Kopenai.com ↗2026-05-29已核实
MRCR v2 8-needle 128K-256Kopenai.com ↗2026-05-29已核实
Graphwalks BFS 0K-128Kopenai.com ↗2026-05-29已核实
Artificial Analysis Intelligence Index (xhigh)artificialanalysis.ai ↗2026-05-29待核实
GPT-5.4 现在支持 AI 搜索——Nano 受益于生态系统openai.com ↗2026-05-29已核实
GPT-5.4 家族扩展——GPT Image 2 发布openai.com ↗2026-05-29已核实
GPT-5.4 Mini 和 Nano 发布openai.com ↗2026-05-29已核实
GPT-5.4 Nano 支持推理强度档位吗?openai.com ↗2026-05-29待核实
GPT-5.4 Nano 支持桌面自动化吗?openai.com ↗2026-05-29待核实
GPT-5.4 Nano 和 GPT-4.1 Nano 价格对比?developers.openai.com ↗2026-05-29待核实
GPT-5.4 Nano 支持图片输入吗?openai.com ↗2026-05-29待核实
GPT-5.4 Nano 在 ChatGPT 中可用吗?openai.com ↗2026-05-29待核实
GPT-5.4 Nano 的上下文窗口和最大输出是多少?developers.openai.com ↗2026-05-29待核实
帮助与联系