Назад к моделям
GPT-5 Mini
openaiopenai/gpt-5-mini
Гид по API
Chat completion
GPT-5 Mini вызывается через стандартный endpoint chat completions через TheRouter. Поддерживаются все параметры GPT-5.
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-mini",
"messages": [
{"role": "user", "content": "Classify the sentiment of this customer review as positive, negative, or neutral: \"The product arrived on time but the packaging was damaged.\""}
],
"reasoning_effort": "low",
"response_format": { "type": "json_object" }
}'Стриминг
GPT-5 Mini поддерживает стриминг для вывода токенов в реальном времени. С low reasoning effort даёт почти мгновенный старт ответа.
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-mini",
"messages": [
{"role": "user", "content": "Summarize this article in three bullet points: <article text>"}
],
"reasoning_effort": "low",
"stream": true
}'Уровень рассуждения
GPT-5 Mini поддерживает полный спектр reasoning_effort: minimal для быстрых ответов, low для баланса, medium по умолчанию, high для глубокого рассуждения.
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-mini",
"messages": [
{"role": "user", "content": "Extract all email addresses, phone numbers, and dates from this text block."}
],
"reasoning_effort": "minimal",
"response_format": { "type": "json_object" }
}'Вызов инструментов
GPT-5 Mini поддерживает параллельные вызовы инструментов и 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-mini",
"messages": [
{"role": "user", "content": "Look up weather for Shanghai and Tokyo, then compare"}
],
"tools": [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": { "city": { "type": "string" }, "country": { "type": "string" } }
}
}
}],
"tool_choice": "auto",
"parallel_tool_calls": true
}'Vision
GPT-5 Mini принимает изображения (JPEG, PNG, GIF, WebP) вместе с текстовыми запросами. Подходит для пайплайнов обработки документов.
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-mini",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Extract the table from this screenshot as JSON"},
{"type": "image_url", "image_url": {"url": "https://therouter.ai/assets/vision-sample.png"}}
]
}
],
"response_format": { "type": "json_object" }
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Дата релиза | openai.com ↗ | 2026-05-28 | проверено |
| Дата отсечения знаний | artificialanalysis.ai ↗ | 2026-05-28 | к проверке |
| Идентификатор модели OpenAI | platform.openai.com ↗ | 2026-05-28 | проверено |
| Лицензия | — | — | проверено |
| SWE-bench Verified | reddit.com / SWE-bench team AMA ↗ | 2026-05-28 | к проверке |
| AIME 2025 | openai.com ↗ | 2026-05-28 | к проверке |
| MMMU (Multimodal) | openai.com ↗ | 2026-05-28 | к проверке |
| OpenAI запускает семейство GPT-5: GPT-5, GPT-5 Mini, GPT-5 Nano | openai.com ↗ | 2026-05-28 | проверено |
| Чем GPT-5 Mini отличается от GPT-5? | artificialanalysis.ai ↗ | 2026-05-28 | к проверке |