返回模型列表

GPT-5 Pro

openaiopenai/gpt-5-pro

API 使用指南

Chat 调用

GPT-5 Pro 通过 TheRouter 的标准 chat completions endpoint 调用。与其他 GPT-5 变体不同,reasoning_effort 固定为 high——模型始终执行深度推理。272K 最大输出使其非常适合长篇幅生成。

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-pro",
    "messages": [
      {"role": "user", "content": "Prove the Riemann hypothesis step by step, explaining each lemma."}
    ]
  }'

流式输出

GPT-5 Pro 支持推理过程流式输出——你可以在最终答案出来前观察模型的思维链。在研究以及安全关键的场景下特别有用。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{
    "model": "openai/gpt-5-pro",
    "messages": [
      {"role": "user", "content": "Derive the equation for relativistic rocket motion."}
    ],
    "stream": true
  }'

工具调用

GPT-5 Pro 支持函数调用和并行工具使用。结合推理可实现多步骤工具编排——模型可规划、调用、迭代并综合多个工具输出。

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-pro",
    "messages": [{"role": "user", "content": "Find the current stock price of NVDA and TSMC, compare their P/E ratios, and calculate which one had better 1-year growth."}],
    "tools": [{
      "type": "function",
      "function": {
        "name": "get_stock_price",
        "description": "Get current stock price and P/E ratio for a ticker symbol",
        "parameters": {
          "type": "object",
          "properties": {
            "ticker": {"type": "string", "description": "Stock ticker symbol"}
          },
          "required": ["ticker"]
        }
      }
    }],
    "parallel_tool_calls": true
  }'

结构化输出

GPT-5 Pro 在其深度推理链中支持 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-pro",
    "messages": [
      {"role": "user", "content": "Analyse this clinical trial result and return findings in the specified JSON schema:\n\n<trial data>"}
    ],
    "response_format": { "type": "json_schema", "json_schema": {
      "name": "trial_analysis",
      "schema": {
        "type": "object",
        "properties": {
          "efficacy": {"type": "string"},
          "safety_concerns": {"type": "array", "items": {"type": "string"}},
          "recommendation": {"type": "string"}
        },
        "required": ["efficacy", "safety_concerns", "recommendation"]
      }
    }}
  }'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期developers.openai.com ↗2026-05-29已核实
知识截止日期platform.openai.com ↗2026-05-29已核实
最大输出 Tokensimonwillison.net ↗2026-05-29已核实
推理模式developers.openai.com ↗2026-05-29已核实
API 可用性developers.openai.com ↗2026-05-29已核实
许可——已核实
AIME 2025openai.com ↗2026-05-29已核实
GPQA Diamondopenai.com ↗2026-05-29已核实
Humanity's Last Examopenai.com ↗2026-05-29已核实
SWE-bench Verifiedopenai.com ↗2026-05-29待核实
MMMUopenai.com ↗2026-05-29待核实
HealthBench Hardopenai.com ↗2026-05-29待核实
OpenAI 在 DevDay 2025 上发布 GPT-5 Prodevelopers.openai.com ↗2026-05-29已核实
GPT-5 公布——Pro 版暗示面向 Pro 订阅者openai.com ↗2026-05-29已核实
GPT-5 Pro 是否支持标准的 OpenAI Chat Completions API?developers.openai.com ↗2026-05-29待核实
GPT-5 Pro 的最大输出长度是多少?simonwillison.net ↗2026-05-29待核实
GPT-5 Pro 能处理图像吗?platform.openai.com ↗2026-05-29待核实
TheRouter 上 GPT-5 Pro 的价格是多少?platform.openai.com ↗2026-05-29待核实
仅支持 reasoning_effort: high 在实际中意味着什么?developers.openai.com ↗2026-05-29待核实
帮助与联系