MiniMax-M3.1-Flash
MiniMax's high-speed 428B-A23B open-weight multimodal MoE model featuring full-layer sparse attention, DSpark speculative decoding, a 1M-token context window, and tunable thinking depth for agentic coding.
What you can do
- Low-latency multi-step tool agents
- Rapid code vulnerability triage
- Tunable-depth multimodal Q&A
Input & output
- Input
- Text, multiple images, and videos
- Output
- Fast streaming text, code, and tool-call payloads
Try a prompt like this
Audit this archive extraction service for path-traversal and zip-bomb vulnerabilities, then provide remediated code and negative unit tests.
Things to know
Self-hosting the 428B MoE weights still requires multi-GPU high-VRAM servers even with FP8/NVFP4 quantization; governed by the MiniMax Community License (commercial attribution required; >$20M annual revenue requires authorization). Sandbox generated scripts.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
MiniMaxAI/MiniMax-M3.1-Flash
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M3.1-Flash",
messages=[{"role": "user", "content": "Audit this archive extraction service for path-traversal and zip-bomb vulnerabilities, then provide remediated code and negative unit tests."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide