← All models
OpenAI: GPT-5 mini
openai/gpt-5-minitextVisionFilesReasoning
Fast model for everyday queries.
Price in / out
Cache, read / write
Context / Max output
400K / 128K
Released
Aug 7, 2025
Additional rates
Flex, in / out
Web search
Parameters
messagesrequiredreasoning_effortminimal · low · medium · highmax_tokensoptional · alias max_completion_tokensstreamtrue · falsetoolsfunction calling (OpenAI format)tool_choiceauto · none · requiredresponse_formatjson_object · json_schemaweb_search · · · providerrouting: order · only · ignore · sortservice_tierflexstream_options{"include_usage": true}image_urlimage (data: URL)filePDF · DOCX · TXT · CSV · XLSX · PPTX (data: URL)Fine-tuning · 1
seedoptionalHow to use via 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
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)
# эконом-тир: тот же ответ вдвое дешевле, но ниже приоритет в очереди
cheap = client.chat.completions.create(
model="openai/gpt-5-mini",
messages=[{"role": "user", "content": "Привет"}],
extra_body={"service_tier": "flex"},
)
# с файлом (PDF · DOCX · TXT · CSV · XLSX · PPTX)
doc = client.chat.completions.create(
model="openai/gpt-5-mini",
messages=[{"role": "user", "content": [
{"type": "text", "text": "Кратко перескажи документ"},
{"type": "file", "file": {
"filename": "doc.pdf",
"file_data": "data:application/pdf;base64,JVBERi0...",
}},
]}],
)

