Все модели

OpenAI: GPT-5 mini

openai/gpt-5-mini
текстЗрениеФайлыРассуждение

Быстрая модель для повседневных запросов.

Цена

Запрос / 1М
Ответ / 1М

Параметры

messagesобязательный
reasoning_effortminimal · low · medium · high
temperature0–2
max_tokensопционально
streamtrue · false
image_urlкартинка (data: URL)
filePDF · DOCX · TXT · CSV · XLSX · PPTX (data: URL)

Как использовать через API

from openai import OpenAI
client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
resp = client.chat.completions.create(
model="openai/gpt-5-mini",
messages=[{"role": "user", "content": "Привет"}],
reasoning_effort="minimal", # minimal · low · medium · high
temperature=0.7,
max_tokens=1024,
stream=False,
)
print(resp.choices[0].message.content)
# Стриминг: stream=True — ответ приходит чанками
for chunk in client.chat.completions.create(
model="openai/gpt-5-mini",
messages=[{"role": "user", "content": "Привет"}],
stream=True,
):
print(chunk.choices[0].delta.content or "", end="", flush=True)