Назад к моделям
GPT-5.4 Mini
openaiopenai/gpt-5.4-mini
Гид по API
Chat completion
GPT-5.4 Mini поддерживает полный API chat completions, включая вызов инструментов, структурированный вывод, стриминг и управление усилием рассуждения.
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.4-mini",
"messages": [
{"role": "system", "content": "You are a helpful coding assistant."},
{"role": "user", "content": "Write a Python function to merge two sorted lists."}
],
"reasoning_effort": "medium"
}'Стриминг
Потоковая передача ответов токен за токеном для real-time UX в ассистентах кода и чат-приложениях.
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.4-mini",
"messages": [{"role": "user", "content": "Explain recursion in one sentence."}],
"stream": true
}'Вызов инструментов
GPT-5.4 Mini отлично справляется с вызовом инструментов — 57,7% на MCP Atlas и 93,4% на τ2-bench, что делает её надёжной для сложной оркестрации.
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.4-mini",
"messages": [{"role": "user", "content": "What is the weather in Tokyo?"}],
"tools": [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string"},
"units": {"type": "string", "enum": ["celsius", "fahrenheit"]}
},
"required": ["city"]
}
}
}],
"tool_choice": "auto"
}'Vision (ввод изображений)
GPT-5.4 Mini принимает изображения вместе с текстом для мультимодального рассуждения — анализ скриншотов, OCR документов, UI-автоматизация.
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.4-mini",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "Describe this image."},
{"type": "image_url", "image_url": {"url": "https://therouter.ai/assets/vision-sample.png"}}
]
}]
}'Усилие рассуждения
Управляйте глубиной рассуждения GPT-5.4 Mini перед ответом. Low — для скорости, xhigh — для максимального качества в сложных задачах кодинга и рассуждения.
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.4-mini",
"messages": [{"role": "user", "content": "Solve this coding problem step by step."}],
"reasoning_effort": "xhigh"
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Дата релиза | openai.com ↗ | 2026-05-29 | проверено |
| Идентификатор модели OpenAI | developers.openai.com ↗ | 2026-05-29 | проверено |
| Дата отсечения данных | — | — | неизвестно |
| Уровни усилий рассуждения | openai.com ↗ | 2026-05-29 | проверено |
| Цена кэшированного ввода | developers.openai.com ↗ | 2026-05-29 | проверено |
| Доступность | openai.com ↗ | 2026-05-29 | проверено |
| Лицензия | — | — | проверено |
| SWE-bench Pro | openai.com ↗ | 2026-05-29 | проверено |
| Terminal-Bench 2.0 | openai.com ↗ | 2026-05-29 | проверено |
| GPQA Diamond | openai.com ↗ | 2026-05-29 | проверено |
| OSWorld-Verified | openai.com ↗ | 2026-05-29 | проверено |
| Toolathlon | openai.com ↗ | 2026-05-29 | проверено |
| MCP Atlas | openai.com ↗ | 2026-05-29 | проверено |
| τ2-bench (telecom) | openai.com ↗ | 2026-05-29 | проверено |
| HLE w/ tool | openai.com ↗ | 2026-05-29 | проверено |
| MMMUPro w/ Python | openai.com ↗ | 2026-05-29 | проверено |
| Graphwalks BFS 0K–128K | openai.com ↗ | 2026-05-29 | проверено |
| OpenAI запускает GPT-5.4 Mini и Nano | openai.com ↗ | 2026-05-29 | проверено |
| Как GPT-5.4 Mini соотносится с GPT-5.4? | openai.com ↗ | 2026-05-29 | к проверке |
| Какие уровни усилия рассуждения поддерживает GPT-5.4 Mini? | openai.com ↗ | 2026-05-29 | к проверке |
| Доступна ли GPT-5.4 Mini в ChatGPT Free? | help.openai.com ↗ | 2026-05-29 | к проверке |
| Можно ли использовать GPT-5.4 Mini в Codex? | openai.com ↗ | 2026-05-29 | к проверке |