Назад к моделям
gpt-audio-mini
openaiopenai/gpt-audio-mini
Гид по API
Chat completion с аудио
Отправляйте аудио в формате base64 (WAV/MP3) в содержимом сообщения. Модель отвечает текстом и/или аудио — тот же API-паттерн, что и у gpt-audio, но по более низкой цене.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-audio-mini",
"modalities": ["text", "audio"],
"audio": { "voice": "alloy", "format": "wav" },
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "What does this audio say?" },
{ "type": "input_audio", "input_audio": { "data": "<BASE64_AUDIO>", "format": "wav" } }
]
}
]
}'Потоковый аудиочат
Получайте текстовые токены (транскрипт) в реальном времени, а полное аудио — в финальном сообщении.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-audio-mini",
"modalities": ["text", "audio"],
"audio": { "voice": "nova", "format": "wav" },
"stream": true,
"messages": [
{ "role": "user", "content": "Tell me a story in 30 seconds." }
]
}'Вызов функций/инструментов
gpt-audio-mini поддерживает вызов инструментов с аудиоконтекстом — так же, как текстовые модели.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-audio-mini",
"messages": [
{
"role": "user",
"content": [
{ "type": "input_audio", "input_audio": { "data": "<BASE64_AUDIO>", "format": "wav" } },
{ "type": "text", "text": "Extract the booking reference and the date mentioned in this audio." }
]
}
],
"tools": [
{
"type": "function",
"function": {
"name": "extract_booking",
"description": "Extract booking reference and date",
"parameters": {
"type": "object",
"properties": {
"reference": { "type": "string" },
"date": { "type": "string" }
},
"required": ["reference", "date"]
}
}
}
],
"tool_choice": "auto"
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Дата релиза | Design for Online / OpenRouter ↗ | 2026-05-29 | проверено |
| Окно контекста | OpenRouter ↗ | 2026-05-29 | проверено |
| Макс. токенов на вывод | OpenRouter ↗ | 2026-05-29 | проверено |
| Поддерживаемые модальности | developers.openai.com ↗ | 2026-05-29 | проверено |
| Поддерживаемые возможности | platform.openai.com ↗ | 2026-05-29 | проверено |
| Лицензия | — | — | проверено |
| Audio quality (upgraded decoder) | Design for Online ↗ | 2026-05-29 | к проверке |
| OpenAI запускает gpt-audio и gpt-audio-mini | Design for Online / OpenRouter ↗ | 2026-05-29 | проверено |