GPT-5 Pro
Гид по API
Chat completion
GPT-5 Pro вызывается через стандартный endpoint chat completions TheRouter. В отличие от других вариантов GPT-5, reasoning_effort зафиксирован на high — модель всегда выполняет глубокое рассуждение. 272K максимального вывода идеально для длинных текстов.
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 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 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 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 | проверено |
| Максимум токенов на вывод | simonwillison.net ↗ | 2026-05-29 | проверено |
| Режим рассуждения | developers.openai.com ↗ | 2026-05-29 | проверено |
| Доступность API | developers.openai.com ↗ | 2026-05-29 | проверено |
| Лицензия | — | — | проверено |
| AIME 2025 | openai.com ↗ | 2026-05-29 | проверено |
| GPQA Diamond | openai.com ↗ | 2026-05-29 | проверено |
| Humanity's Last Exam | openai.com ↗ | 2026-05-29 | проверено |
| SWE-bench Verified | openai.com ↗ | 2026-05-29 | к проверке |
| MMMU | openai.com ↗ | 2026-05-29 | к проверке |
| HealthBench Hard | openai.com ↗ | 2026-05-29 | к проверке |
| OpenAI запускает GPT-5 Pro на DevDay 2025 | developers.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 | к проверке |
| Сколько стоит GPT-5 Pro на TheRouter? | platform.openai.com ↗ | 2026-05-29 | к проверке |
| Что на практике означает 'только reasoning_effort: high'? | developers.openai.com ↗ | 2026-05-29 | к проверке |