Skip to main content

minimax/m3.1-flash/chat

MiniMax M3.1 Flash API combines a 1,000,000-token input window with image and video understanding for coding agents; reasoning_effort changes thinking depth without switching models. For M3.1 Flash tool loops, preserve the complete assistant response, including reasoning content and tool calls, then return execution results with the matching tool_call_id; your application remains responsible for validation and execution.

Input $0.15Output $0.60per 1 million tokensCached input $0.015

Workbench

MiniMax M3.1 Flash

What can MiniMax M3.1 Flash help with?

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

MULTIMODAL LONG-CONTEXT CHAT API

MiniMax M3.1 Flash API at a glance

MiniMax's fast multimodal model: a 1M-token window, video in the prompt, and a thinking dial from low to max.

Input context
1M
1,000,000 tokens in one request, with room for long threads and large codebases.
Reply ceiling
512K
max_tokens goes up to 524,288, and thinking is counted inside it.
Effort levels
5
low, medium, high, xhigh and max, with max as the default.
Tool definitions
128
M3.1 Flash allows up to 256 messages and 128 tool definitions in a request; images consume input tokens, so a large conversation and its media share the input budget.
Input types
3
M3.1 Flash reads image_url and video_url parts alongside text and replies in text; this endpoint does not accept audio, and video must be inline within the platform’s combined 14 MB media limit.

Results

What MiniMax M3.1 Flash is good at

  • Long context

    A million tokens without chunking

    1,000,000 tokens of input keep a large repository, a long agent trace or a stack of documents in one request. The model reads what was actually said, which matters for agents whose earlier tool results would otherwise have to be summarised and lose detail.

  • Tunable thinking

    Five effort levels on one model

    MiniMax built M3.1 Flash around thinking depth you can tune. reasoning_effort runs from low through medium, high and xhigh to max, with max as the default. Quick tool-loop steps and hard planning use the same model and the same code, with one field changed.

  • Multimodal input

    Images and video next to the instruction

    A user message can mix text with image_url and video_url parts, so a screenshot of an error, a product photo or a short screen recording can go straight into the prompt. MiniMax positions this model for multimodal coding agents and computer workflows.

  • Tools

    Function calls your application controls

    For M3.1 Flash tool loops, preserve the complete assistant response, including reasoning content and tool calls, then return execution results with the matching tool_call_id; your application remains responsible for validation and execution.

Before you run it

What to know before you run MiniMax M3.1 Flash

Chat
M3.1 Flash keeps reasoning active at low, medium, high, xhigh or max, defaulting to max; this endpoint exposes neither temperature nor top_p and does not accept none.
Chat
Budget M3.1 Flash thinking and the visible answer together in max_tokens: the default is 4,096 and the ceiling 524,288; stop supports up to four sequences of at most 32 characters.
Chat
M3.1 Flash allows up to 256 messages and 128 tool definitions in a request; images consume input tokens, so a large conversation and its media share the input budget.
Chat
For M3.1 Flash, SpicyAPI adds no separate content filter; the model determines its response, and neither multimedia input nor higher thinking effort guarantees NSFW output.

Use cases

What to build with the MiniMax M3.1 Flash API

  • Coding agents that read the screen

    Give the agent a screenshot or a short recording of the failing page together with the issue text, define tools for running commands, and let it propose the next call. Use a lower effort for routine steps and raise it when a step needs real planning.

  • Long agent traces and logs

    Keep a long tool-call history, the logs and the task description in one request instead of compressing them. Ask for the first point where the run went wrong and the evidence for it.

  • Video and image understanding

    Ask what happens in a clip, which step in a recorded workflow failed, or what a chart in an image shows. Put the clip or image first and the specific question after it.

  • High-volume classification and extraction

    Run many short requests at low effort for tagging, triage or pulling fields out of documents, and validate each result in your application. Raise effort only for the cases that come back uncertain.

Prompts

MiniMax M3.1 Flash prompt examples you can copy

Paste one into the playground as it is, then change one thing at a time.

  • Chat

    Investigate a concrete case

    Inspect an application issue report and propose the next tool calls needed to reproduce it. Work from the material I provide. Cite relevant evidence, distinguish facts from assumptions, and identify missing information before proposing changes.

    Why it works. This M3.1 Flash example asks for the next diagnostic tool calls, so review whether each proposed action follows from the supplied issue evidence.

    Try this prompt

Pricing

MiniMax M3.1 Flash API pricing

From $0.15 per million input tokens and $0.6 per million output tokens.

The playground shows the exact price for your settings before you run. Failed or timed-out tasks are usually not charged. Some models charge for content refusals as stated on their model page; check those billing terms before submitting.

See every price tier

Get started

How to use the MiniMax M3.1 Flash API in three steps

  1. Step 1

    Start at max, then lower the dial

    max is the default. Once you know the quality you need, try high or medium, and use low for short routine turns where speed matters most. none is not accepted.

  2. Step 2

    Leave room in max_tokens for thinking

    Thinking is counted inside max_tokens, which defaults to 4,096 here and goes up to 524,288. For long answers or the higher effort levels, set it well above the length you expect, or the budget can run out before the visible answer is finished.

  3. Step 3

    Label the material and ask last

    Give each document, frame or log a short label, place them early in the conversation and put the question at the end. Keep your instructions in the system message so quoted text is not mistaken for a request.

Parameter reference and code samples are in the API and Readme tabs at the top of this page.

Why SpicyAPI

Why run MiniMax M3.1 Flash on SpicyAPI

  • No filter from us

    We add no content filter of our own. What the model renders is what you get back.

  • Tested, not guessed

    Content labels come from real generations we ran and checked, with the test date on the page.

  • Pay per result, in dollars

    No subscription and no credits. Failed or timed-out tasks are usually not charged. Some models charge for content refusals as stated on their model page; check those billing terms before submitting.

  • One key for every model

    One API key and balance cover image, video, audio and chat models, so you can explore more models from the same account.

FAQ

MiniMax M3.1 Flash API FAQ

About MiniMax M3.1 Flash

MiniMax M3.1 Flash API combines a 1,000,000-token input window with image and video understanding for coding agents; reasoning_effort changes thinking depth without switching models. Budget M3.1 Flash thinking and the visible answer together in max_tokens: the default is 4,096 and the ceiling 524,288; stop supports up to four sequences of at most 32 characters. M3.1 Flash usage separates input, cached input and output; image and video processing consumes input tokens, while thinking consumes the output budget, with current rates listed on this page.

All MiniMax models17

Text models1

  • MiniMax M3.1 FlashCurrentChatin $0.15out $0.60per 1 million tokens

Video models12

Related models and next tasks