Назад к моделям
GPT-5
openaiopenai/gpt-5
Гид по API
Chat completion
Стандартный chat completion. GPT-5 поддерживает полный интерфейс OpenAI chat с параметрами reasoning_effort и verbosity.
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",
"messages": [{"role": "user", "content": "Explain how multi-agent coordination works"}],
"reasoning_effort": "medium",
"verbosity": "high"
}'Стриминг
GPT-5 поддерживает стриминг с reasoning-токенами — используйте stream_options include_usage для отслеживания использования токенов.
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",
"messages": [{"role": "user", "content": "Explain quantum computing in 3 bullet points"}],
"stream": true,
"stream_options": {"include_usage": true}
}'Вызов инструментов
GPT-5 отлично справляется с вызовом инструментов, поддерживает надёжные многошаговые цепочки. Поддерживает параллельные вызовы и новый тип custom_tools с грамматическими ограничениями.
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",
"messages": [{"role": "user", "content": "Book a flight from NYC to London"}],
"tools": [{
"type": "function",
"function": {
"name": "search_flights",
"description": "Search available flights",
"parameters": {
"type": "object",
"properties": {
"origin": {"type": "string"},
"destination": {"type": "string"},
"date": {"type": "string"}
},
"required": ["origin", "destination", "date"]
}
}
}],
"parallel_tool_calls": true
}'JSON-режим
Структурированный JSON через response_format.
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","messages":[{"role":"user","content":"Extract: Invoice #1234 for $500"}],"response_format":{"type":"json_object"}}'Свежие материалы
Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Дата релиза | openai.com ↗ | 2026-05-28 | проверено |
| Идентификатор модели OpenAI | openai.com/dev ↗ | 2026-05-28 | проверено |
| Дата отсечения данных | — | — | неизвестно |
| Уровни усилий рассуждения | openai.com/dev ↗ | 2026-05-28 | проверено |
| Уровни подробности | openai.com/dev ↗ | 2026-05-28 | проверено |
| Поддержка custom_tools | openai.com/dev ↗ | 2026-05-28 | проверено |
| Статус в семействе GPT-5 | help.openai.com ↗ | 2026-05-28 | проверено |
| Лицензия | — | — | проверено |
| SWE-bench Verified | openai.com/dev ↗ | 2026-05-28 | проверено |
| Aider Polyglot | openai.com/dev ↗ | 2026-05-28 | проверено |
| AIME 2025 | openai.com ↗ | 2026-05-28 | проверено |
| MMMU | openai.com ↗ | 2026-05-28 | проверено |
| τ2-bench (telecom) | openai.com/dev ↗ | 2026-05-28 | проверено |
| HealthBench Hard | openai.com ↗ | 2026-05-28 | проверено |
| GPQA | openai.com ↗ | 2026-05-28 | проверено |
| Scale MultiChallenge | openai.com/dev ↗ | 2026-05-28 | проверено |
| OpenAI запускает GPT-5 | openai.com ↗ | 2026-05-28 | проверено |
| GPT-5 (Instant/Thinking) исключён из ChatGPT | help.openai.com ↗ | 2026-05-28 | проверено |
| В чём разница между gpt-5 в API и GPT-5 в ChatGPT? | openai.com ↗ | 2026-05-28 | к проверке |
| Чем оригинальный gpt-5 отличается от GPT-5.2/5.4/5.5? | help.openai.com ↗ | 2026-05-28 | к проверке |
| Что такое custom_tools? | openai.com ↗ | 2026-05-28 | к проверке |