Назад к моделям

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к проверке
Идентификатор модели OpenAIplatform.openai.com ↗2026-05-28проверено
Лицензия——проверено
SWE-bench Verifiedreddit.com / SWE-bench team AMA ↗2026-05-28к проверке
AIME 2025openai.com ↗2026-05-28к проверке
MMMU (Multimodal)openai.com ↗2026-05-28к проверке
OpenAI запускает семейство GPT-5: GPT-5, GPT-5 Mini, GPT-5 Nanoopenai.com ↗2026-05-28проверено
Чем GPT-5 Mini отличается от GPT-5?artificialanalysis.ai ↗2026-05-28к проверке
Помощь и контакты