← All models
MiniMax: MiniMax M3.1 Flash
minimax/minimax-m3.1-flashMiniMax-M3.1-Flash is a multimodal model from MiniMax. Compared with M3, it delivers significant improvements across multiple benchmarks, particularly in complex agentic tasks, coding, and cybersecurity. It is built for complex, multi-step co-work automation, understanding real codebases, fixing bugs, and building features, and visual understanding and creation, including frontend and presentation creation. It is an open-weight mixture-of-experts model with 23B active / 428B total parameters.
Modalities
Price in / out
Cache, read / write
Context / Max output
1.05M / 524K
Released
Oct 19, 2026
Additional rates
During some UTC hours the upstream charges 2× more — per-route rates are in the table below.
Parameters
messagesrequiredreasoning_effortlow · medium · high · xhigh · maxmax_tokensoptional · alias max_completion_tokensstreamtrue · falsetoolsfunction calling (OpenAI format)tool_choiceauto · none · requiredresponse_formatjson_object · json_schemaweb_search · · · providerrouting: order · only · ignore · sortstream_options{"include_usage": true}image_urlimage (data: URL)Fine-tuning · 11
temperature0–2stopoptionalseedoptionaltop_p0–1top_koptionalmin_p0–1frequency_penalty−2…2presence_penalty−2…2repetition_penalty0–2logprobstrue · falsetop_logprobs0–20How 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-m3.1-flash",
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-m3.1-flash",
messages=[{"role": "user", "content": "Привет"}],
stream=True,
):
print(chunk.choices[0].delta.content or "", end="", flush=True)

