← All models

MiniMax: MiniMax M4

minimax/minimax-m4
MiniMax M4 is a flagship open-weight multimodal reasoning model from MiniMax, with 66B active / 2.74T total parameters. It is suited for demanding agentic workloads, including complex software engineering, long-horizon autonomous task execution, computer use, and professional knowledge work, and is particularly strong at delivering end-to-end artifacts such as financial models, presentations, interactive websites, 3D scenes, games, and videos. It understands images and video natively. Reasoning is always on and cannot be disabled.
Modalities
Price in / out
Cache, read / write
Released
Dec 3, 2026

Parameters

messagesrequired
reasoning_effortlow · medium · high · xhigh · max
max_tokensoptional · alias max_completion_tokens
streamtrue · false
toolsfunction calling (OpenAI format)
tool_choiceauto · none · required
response_formatjson_object · json_schema
web_search · ·
providerrouting: order · only · ignore · sort
stream_options{"include_usage": true}
image_urlimage (data: URL)
Fine-tuning · 2
temperature0–2
top_p0–1

How 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="minimax/minimax-m4",
    messages=[{"role": "user", "content": "Привет"}],
    reasoning_effort="low",  # low · medium · high · xhigh · max
    temperature=0.7,
    max_tokens=1024,
    stream=False,
)
print(resp.choices[0].message.content)

# Стриминг: stream=True — ответ приходит чанками
for chunk in client.chat.completions.create(
    model="minimax/minimax-m4",
    messages=[{"role": "user", "content": "Привет"}],
    stream=True,
):
    print(chunk.choices[0].delta.content or "", end="", flush=True)
API docsTry in the bot