Back to Models

GPT-5 Pro

openaiopenai/gpt-5-pro

API guide

Chat completion

GPT-5 Pro is called via TheRouter's standard chat completions endpoint. Unlike other GPT-5 variants, reasoning_effort is locked to 'high' β€” the model always performs deep reasoning. The 272K max output makes this ideal for long-form generation.

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

Streaming

GPT-5 Pro supports streaming of its reasoning chain β€” you can observe the model's chain-of-thought before the final answer. Useful for transparency in research and safety-critical applications.

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

Tool calling

GPT-5 Pro supports function calling and parallel tool use. Combine with reasoning for multi-step tool orchestration β€” the model can plan, call, iterate, and synthesise across multiple tool outputs.

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

Structured output

GPT-5 Pro supports response_format for structured JSON output within its deep reasoning chain. Useful for producing structured research reports, multi-field classification, or complex data extraction with verified correctness.

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"]
      }
    }}
  }'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datedevelopers.openai.com β†—2026-05-29verified
Knowledge cutoffplatform.openai.com β†—2026-05-29verified
Max output tokenssimonwillison.net β†—2026-05-29verified
Reasoning modedevelopers.openai.com β†—2026-05-29verified
API availabilitydevelopers.openai.com β†—2026-05-29verified
Licenseβ€”β€”verified
AIME 2025openai.com β†—2026-05-29verified
GPQA Diamondopenai.com β†—2026-05-29verified
Humanity's Last Examopenai.com β†—2026-05-29verified
SWE-bench Verifiedopenai.com β†—2026-05-29to verify
MMMUopenai.com β†—2026-05-29to verify
HealthBench Hardopenai.com β†—2026-05-29to verify
OpenAI launches GPT-5 Pro at DevDay 2025developers.openai.com β†—2026-05-29verified
GPT-5 announced β€” Pro variant teased for Pro subscribersopenai.com β†—2026-05-29verified
Is GPT-5 Pro available via the standard OpenAI Chat Completions API?developers.openai.com β†—2026-05-29to verify
What is the maximum output length of GPT-5 Pro?simonwillison.net β†—2026-05-29to verify
Can GPT-5 Pro see images?platform.openai.com β†—2026-05-29to verify
How much does GPT-5 Pro cost on TheRouter?platform.openai.com β†—2026-05-29to verify
What does 'reasoning_effort: high only' mean in practice?developers.openai.com β†—2026-05-29to verify
Help & contact