MiniMax M3.1 Flash is a reasoning model developed by Minimax AI. It is designed to handle diverse inputs including text, images, and video to provide comprehensive analysis.
The model is engineered for high-performance tasks such as coding and agent workflows. It provides flexible reasoning capabilities and supports a large context window for complex data processing.
The model always reasons, allowing users to adjust the reasoning effort from low to max.
It accepts text, image, and video inputs to generate text-based responses.
The model supports a 1M-token context window for processing extensive information.
It supports structured output and tools to enhance integration into various workflows.
Accelerating complex coding projects through advanced reasoning.
Executing multi-step agent workflows efficiently.
Analyzing visual content from images and videos.
Processing large documents within the 1M-token context window.
import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "minimax/minimax-m3.1-flash", "messages": [ { "role": "user", "content": "Hello!" } ] }, ) print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", { method: "POST", headers: { Authorization: `Bearer ${process.env.AIMLAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "minimax/minimax-m3.1-flash", "messages": [ { "role": "user", "content": "Hello!" } ] }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"minimax/minimax-m3.1-flash","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
Billed per token: $0.195 / 1M input tokens, $0.0195 / 1M cached input tokens and $0.78 / 1M output tokens. Reasoning tokens are billed as output.
Accelerating complex coding projects through advanced reasoning.
Executing multi-step agent workflows efficiently.
Analyzing visual content from images and videos.
Processing large documents within the 1M-token context window.
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
MiniMax M3.1 Flash This page | Coding, agent workflows, and visual understanding. | |||
| Coding + agents | ||||
| Coding + agents | ||||
| Coding + agents | ||||
| High-volume, low-latency tasks |
MiniMax M3.1 Flash costs $0.195 / 1M tokens for input and $0.78 / 1M tokens for output on AI/ML API. Cached input is billed at $0.0195 / 1M tokens.
The model supports text, image, and video inputs.
Yes, the reasoning effort can be adjusted from low to max, with max being the default.
The model features a 1M-token context window.
The model supports a maximum output of 524,288 tokens.