GPT-4.1 Mini
openai/gpt-4.1-miniGPT-4.1 mini is the smaller, faster tier of OpenAI's GPT-4.1 series, released in April 2025 as a non-reasoning model that accepts text and images and returns text. OpenAI describes it as strong at instruction following and tool calling, with the same 1M-token context window as GPT-4.1 and lower latency. It suits interactive apps, chat and agent tool calls where responsiveness matters more than the extra depth of full GPT-4.1.
Читать далее- Цена входа
- $0.36
$0.40USD / 1 млн токенов - Цена выхода
- $1.44
$1.60USD / 1 млн токенов - Чтение из кэша
- $0.09
$0.10USD / 1 млн токенов - Окно контекста
- 1M
- Макс. выход
- 32.8K
Характеристики
- Вход
- Текст, изображение
- Выход
- Текст
Об этой модели
GPT-4.1 mini is the smaller, faster tier of OpenAI's GPT-4.1 series, released in April 2025 as a non-reasoning model that accepts text and images and returns text. OpenAI describes it as strong at instruction following and tool calling, with the same 1M-token context window as GPT-4.1 and lower latency. It suits interactive apps, chat and agent tool calls where responsiveness matters more than the extra depth of full GPT-4.1.
Попробовать модель
Песочница
Введите prompt, чтобы попробовать эту модель. Использование тарифицируется по указанным ценам.
Попробуйте запрос
Добавить изображение (необязательно)
Ваш ответ появится здесь
Выберите пример или напишите запрос, затем нажмите «Запустить».
Начните разработку
Отправьте свой первый запрос
Выберите любой поддерживаемый API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/responses" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4.1-mini",
"input": "Hello",
"max_output_tokens": 2048
}'Поля ниже описывают Chat Completions API. Responses API использует собственный формат запроса и ответа поставщика, как показано в примере выше.
Схема ввода
9 параметров · 1 обязательных · 8 необязательных
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
messages | object[] | Обязательный | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Необязательный | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
tools | array | Необязательный | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Необязательный | Nucleus sampling: only tokens within this cumulative probability are considered. · Мин.: 0 · Макс.: 1 |
stream | boolean | Необязательный | Stream the response as server-sent events instead of returning it in one piece. · По умолчанию: false |
max_tokens | integer | Необязательный | Maximum number of tokens to generate in the response. · Макс.: 32768 |
temperature | number | Необязательный | Sampling temperature. Higher values make output more random; lower values make it more focused. · Мин.: 0 · Макс.: 2 · По умолчанию: 1 |
tool_choice | string | Необязательный | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Необязательный | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Схема вывода
| Поле | Тип | Описание |
|---|---|---|
id | string | Уникальный идентификатор завершения |
object | string | Тип объекта, например "chat.completion" |
model | string | Модель, использованная для завершения |
choices | array | Список вариантов завершения |
choices[].message.content | string | Сгенерированный текст |
choices[].finish_reason | string | Причина остановки генерации |
usage.prompt_tokens | integer | Количество токенов в запросе |
usage.completion_tokens | integer | Количество токенов в завершении |
usage.total_tokens | integer | Общее количество использованных токенов |
Вопросы
FAQ
Как вызвать OpenAI GPT-4.1 Mini через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "openai/gpt-4.1-mini" на Responses API (/v1/responses) или Chat Completions API (/v1/chat/completions) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Сколько стоит OpenAI GPT-4.1 Mini?
$0.36 за 1 млн входных токенов и $1.44 за 1 млн выходных токенов с текущей скидкой 10% (базовая цена $0.40 / $1.60), списывается за каждый запрос с баланса SandBase.
Каково контекстное окно OpenAI GPT-4.1 Mini?
1M токенов контекста и до 32.8K выходных токенов на ответ.
Какие возможности поддерживает OpenAI GPT-4.1 Mini?
OpenAI GPT-4.1 Mini поддерживает зрение (вход изображений), вызов функций, структурированный вывод. Полный список см. выше в разделе Specifications.
Нужен ли мне отдельный аккаунт OpenAI?
Нет. Один API key SandBase и один баланс дают вам доступ к OpenAI GPT-4.1 Mini и другим моделям в каталоге; отдельно регистрироваться в OpenAI не нужно.
