Long agent runs
MiniMax built M4 for multi-step workflows that call tools over many turns and check their own work. Pass function definitions in tools and send the full history with each request.
MiniMaxLLM APIFrom $0.05/1M tokens
MiniMax M4 is MiniMax's natively multimodal flagship: a 2.74-trillion-parameter mixture-of-experts model with 66 billion active per token and a 1M-token context at one flat price. Built for long tool-using agent runs and coding, with adaptive thinking at five effort levels, image input, JSON output and tool calls.

Why use MiniMax M4 on DreamTo.
MiniMax built M4 for multi-step workflows that call tools over many turns and check their own work. Pass function definitions in tools and send the full history with each request.
Thinking is always on and adapts to the task; reasoning_effort sets how much it spends, in five levels from low to max. Higher effort writes more reasoning tokens, billed as output.
Input, cache read and output cost the same at any context length, and a repeated prefix is billed at the cache-read rate.
This model is priced by the usage dimensions listed here. Prices are shown in USD. Charges depend on the model and your actual usage. Compare all pricing
| Billing item | Our priceCurrent price |
|---|---|
| Input | $0.8/1M tokens |
| Cache read | $0.05/1M tokens |
| Output | $3.1/1M tokens |
Where a chat model like MiniMax M4 is used most.
Connect Cursor, Cline, Codex or OpenCode through the OpenAI-compatible endpoint and let M4 plan, edit and run tests across a repository.
Put contracts, reports or a codebase into one request with room to spare in the 1M-token window, and ask for answers that cite the section they come from.
Send images with written expectations and ask the model to list what it sees, what differs and what it cannot verify.
Ask for a JSON object with named keys, or define functions as tools, and validate the result in your code.
These are the settings this variant accepts. The playground form and the API use the same parameters.
| Setting | What you get |
|---|---|
messagesRequired | Conversation history as a list of role and content messages. |
temperature | Sampling temperature. Lower is more focused, higher is more varied. |
top_p | Nucleus sampling threshold. |
max_tokens | Maximum number of tokens to generate. |
stop | Stop Sequences |
stream | Stream the reply as server-sent events. Default: false. |
stream_options | Stream Options |
reasoning_effort | Reasoning Effort Options: low, medium, high, xhigh, max. |
response_format | Format of the returned result, such as a URL or base64 data. |
tools | Tools |
tool_choice | Tool Choice Options: none, auto. |
Use reasoning_effort low for routine replies and raise it only for steps that fail; usage.completion_tokens_details.reasoning_tokens shows what the reasoning cost.
Keep the system prompt and shared context identical at the start of each request so repeated tokens are billed at the cache-read rate.
Reasoning tokens count toward max_tokens; a tight limit can end the reply with finish_reason length before any answer text.
Building MiniMax M4 into your own product? Endpoints, parameters, authentication and billing are in the API docs.
minimax-m4
No install, no GPU and no code to start. Sign in, fill in the prompt in the playground and generate; results are kept for 7 days.
Every model on DreamTo shares one account and one balance. Run the same brief through several and keep the best.
The request you tune in the playground is ready-to-run code in its API tab, and one API key calls every model.
MiniMax M4 is MiniMax's natively multimodal flagship: a 2.74-trillion-parameter mixture-of-experts model with 66 billion active per token and a 1M-token context at one flat price. Built for long tool-using agent runs and coding, with adaptive thinking at five effort levels, image input, JSON output and tool calls.
Send POST /v1/chat/completions with the model ID minimax-m4 and your API key. Ready-to-run samples are in the API section above.
Charges are based on the selected model, its billing method, and your actual usage.
Create one in Console → API Keys. The same key works for every model on the gateway.
Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.