MiniMax M4
1M · $0.40/1M tokens
minimax-m4Turn code, issue reports and screenshots into implementation plans, patches and technical explanations. MiniMax M3.1 Flash combines a 1M-token working context with reasoning and tool calling for iterative engineering tasks.
set up https://beatapi.io/SKILL.mdGive this to your agent
Chat with MiniMax M3.1 Flash here. Every message is a real request, billed to your balance at the same price as the API.
Charges use the rates below and your actual usage.
| Model | Specifications and pricing | beatapi |
|---|---|---|
| MiniMax M3.1 Flash | MiniMax M3.1 FlashInput · per 1M tokens | $0.06 / 1M tokens |
| MiniMax M3.1 Flash | MiniMax M3.1 FlashCached input · per 1M tokens | $0.006 / 1M tokens |
| MiniMax M3.1 Flash | MiniMax M3.1 FlashOutput · per 1M tokens | $0.24 / 1M tokens |
Compare context specifications and published pricing, with links to model details and API documentation.
1M · $0.40/1M tokens
minimax-m41M · $0.06/1M tokens
MiniMax-M3.1-Flash1M · $0.12/1M tokens
MiniMax-M3MiniMax
| Comparison | MiniMax M4 | MiniMax M3.1 Flash | MiniMax M3 |
|---|---|---|---|
| Context window | 1M | 1M | 1M |
| Inputs | Text · Image | Text · Image | Text |
| Price from | $0.40/1M tokens | $0.06/1M tokens | $0.12/1M tokens |
M3.1 Flash works with code, images and tool results in the same conversation. Its 1M-token context can accommodate related modules and test feedback as an engineering task develops.
A bug can involve a caller, a shared type and a test fixture. Give M3.1 Flash those files with the bug report. The model can trace their dependencies, propose changes across the files and explain the new behavior.
Send a screenshot with the relevant UI code. M3.1 Flash can connect a clipped label or misplaced control to that code. It returns a written diagnosis or a proposed code change.
Return compiler errors, failed assertions and command output to M3.1 Flash. The model uses those results to revise its diagnosis or patch. Your application executes tool calls, sets permissions and decides when to stop.
Give M3.1 Flash the requirements, existing tests and proposed patch. The model can draft edge-case tests and explain each assertion. Use those tests to check the patch against the requirements. Your application runs the tests.
| Benchmark | MiniMax M3.1 Flash | DeepSeek-V4.1-Flash-1017 | DeepSeek-V4.1-Flash | Kimi-K3 | GLM-5.3 | GPT-5.6 Sol | Opus 5 |
|---|---|---|---|---|---|---|---|
| Automation-Bench v1.0.6 | 62.8 | 60.5 | 54.8 | 46.7 | 48.8 | 45.8 | 50.3 |
| BankerToolBench | 76.2 | — | 73.7 | 69.1 | 74.5 | 74.6 | 76.2 |
| GDP.pdf AA | 20.8 | — | 12.8 | 22.0 | 11.2 | 27.2 | 21.6 |
| Terminal Bench 4.0 | 38.1 | 42.3 | 31.2 | 12.6 | 37.9 | 39.9 | 51.8 |
| LOCA-Bench 256K | 60.3 | — | — | 49.7 | 50.3 | 60.0 | 53.7 |
| Agents' Last Exam | 29.6 | — | — | 28.3 | — | 30.6 | 32.2 |
| OSWorld 2.0 | 61.7 | — | 54.3 | 58.3 | — | 65.7 | 70.6 |
| PostTrain Bench v1.1 | 39.3 | — | 30.5 | 36.6 | 37.5 | 36.2 | 40.4 |
| DeepSWE v1.1 | 73.7 | 77.0 | 74.2 | 67.5 | 66.9 | 73.0 | 74.0 |
| NL2Repo-Bench | 61.2 | 68.2 | 65.4 | 58.0 | 58.0 | 56.8 | 75.3 |
| SWE Refactor Bench | 23.0 | — | 11.8 | 19.5 | 10.4 | 28.5 | 31.0 |
| CyberGym | 82.2 | — | — | 80.0 | 84.5 | 83.6 | — |
| BabyVision (w/tools) | 91.0 | 92.5 | 89.6 | 85.7 | — | 88.9 | 94.1 |
| HLE (w/o tools) | 43.4 | 44.0 | 39.2 | 43.5 | 42.3 | 49.5 | 55.6 |
| CharXiv RQ | 82.5 | — | 69.0 | 84.8 | — | 85.2 | 83.7 |
M3.1 Flash scores 73.7 on DeepSWE v1.1 and 62.8 on AutomationBench v1.0.6 in MiniMax's October 19, 2026 evaluation. DeepSWE uses mini-SWE-agent 2.4.5 with a 512K context limit. AutomationBench covers 600 public tasks. Blank cells mean no reported result, not zero.
Supply the failing test, reproduction steps and relevant code. M3.1 Flash can draft a focused patch, explain the cause and add a regression test. Return the test results so the model can revise any remaining failures.
Send component code and browser profiling results. M3.1 Flash can identify a likely cause, such as repeated rendering or duplicate requests. It can propose a code change and measurements to check. Run those measurements in your browser to confirm the result.
Provide the release requirements, code diff and test summaries. M3.1 Flash can review the changes for regressions and missing tests. Ask for file references and an explanation of the affected behavior with each finding.
Supply an endpoint specification, the current client code and representative responses. M3.1 Flash can draft the client changes and tests for successful and failed requests. Review the result against the contract before connecting it to a live service.
Compare published specifications and evaluate output quality on your own workload.
| Comparison | MiniMax M3.1 Flash | GLM 5.3 Flash | MiMo V2.6 Flash |
|---|---|---|---|
| Context window | 1M | 1M | 1M |
| Inputs | Text · Image | Text · Image · Video | Text |
| Price from | $0.06/1M tokens | $0.06/1M tokens | $0.056/1M tokens |
Set the model ID to MiniMax-M3.1-Flash. Open the API tab for SDK examples, request fields and response formats.
Sign up or sign in to open the Dashboard. Check your balance and open the credits page if you need to add funds.
Open DashboardA practical option for coding agents that repeatedly read context, reason, call tools and revise their work.
Flash keeps the same token rates across prompt lengths. MiniMax M3 raises whole-request rates above 512K input tokens; Flash does not. You can estimate a larger request using the same input, cache and output rates.
Choose a lower reasoning effort for a focused edit or a higher effort for a complex investigation. Reasoning stays enabled at every setting. The output budget must cover reasoning tokens and the final code or explanation.
An agent may send the same instructions and source files across several turns. Reported cache hits use Flash's lower cached-input rate. Check the usage returned by each request: repeated text alone does not guarantee a cache hit.
A cross-module bug needs more context than one function. Flash's 1M-token window gives you room for the issue, related source files and test results. Include the files needed to trace the problem, rather than the entire repository.
Public model ID, token pricing, context window, compatible formats, and account behavior.
MiniMax M3.1 Flash is a reasoning and multimodal model for coding and agent tasks. BeatAPI provides it as MiniMax-M3.1-Flash through the Text API, with a 1M-token context window, image input and tool calling. It returns text, including code and structured task results.
They are separate selectable text models. M3.1 Flash uses always-on reasoning with adjustable depth and flat token rates across prompt lengths. MiniMax M3 has a whole-request rate increase above 512,000 input tokens. Compare both current price tables and evaluate the same task before switching an established workflow.
Send MiniMax-M3.1-Flash exactly, including capitalization and punctuation. Do not substitute MiniMax-M3, a provider-prefixed ID or a Preview name. Use the API tab to start from the documented request.
Set reasoning_effort from low to high in Chat Completions to adjust reasoning depth; reasoning remains enabled. Reserve output tokens for both reasoning and the final answer. A short visible response can still include substantial billable reasoning output.
M3.1 Flash accepts images for understanding, not video generation. Send an inline base64 data URL in an image_url content part alongside your text. The response is text or code. Use the separate MiniMax H3 Video API when the deliverable is a generated clip.
Input, cached input and output are charged per token at the current price-table rates. Flash has no 512K long-context surcharge. Cache pricing applies to reported cache hits, not all repeated text; reasoning is billed as output. Sum usage across tool turns and retries for a task-level budget.
No. Your application defines and executes tools, then returns their results to the model. Provide a sandbox, permissions and approval checkpoints for commands or external changes. A model response is not a hosted browser, repository checkout or completed test run.
A reasoning model can consume the output budget before producing its final answer. Inspect finish_reason and usage; length indicates the token budget was exhausted. Increase the budget within supported limits and check account balance rather than treating HTTP 200 as a complete deliverable.
Compare MiniMax M3 for an existing MiniMax workload, and GLM 5.3 Flash or MiMo V2.6 Flash for other coding-agent options. Use the same repository task, input material and tool permissions. Compare accepted changes and total input, cache and output usage, not just the context-window label.
Connect MiniMax M3.1 Flash with other production-ready APIs in the BeatAPI catalog.
Guides and practical notes to help you get more from MiniMax M3.1 Flash.