MiniMaxLLM APIFrom $0.05/1M tokens

MiniMax M4 API

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.

Long agent runs and coding

3 things MiniMax M4 does well

Why use MiniMax M4 on DreamTo.

01

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.

02

Effort you can dial

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.

03

One price across 1M tokens

Input, cache read and output cost the same at any context length, and a repeated prefix is billed at the cache-read rate.

Pricing

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 itemOur priceCurrent price
Input$0.8/1M tokens
Cache read$0.05/1M tokens
Output$3.1/1M tokens

Where MiniMax M4 earns its place

Where a chat model like MiniMax M4 is used most.

Coding agents in your editor

Connect Cursor, Cline, Codex or OpenCode through the OpenAI-compatible endpoint and let M4 plan, edit and run tests across a repository.

Long-document analysis

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.

Screenshot and chart review

Send images with written expectations and ask the model to list what it sees, what differs and what it cannot verify.

Structured extraction for pipelines

Ask for a JSON object with named keys, or define functions as tools, and validate the result in your code.

What MiniMax M4 supports

These are the settings this variant accepts. The playground form and the API use the same parameters.

SettingWhat you get
messagesRequiredConversation history as a list of role and content messages.
temperatureSampling temperature. Lower is more focused, higher is more varied.
top_pNucleus sampling threshold.
max_tokensMaximum number of tokens to generate.
stopStop Sequences
streamStream the reply as server-sent events. Default: false.
stream_optionsStream Options
reasoning_effortReasoning Effort Options: low, medium, high, xhigh, max.
response_formatFormat of the returned result, such as a URL or base64 data.
toolsTools
tool_choiceTool Choice Options: none, auto.

3 tips that save a retry

01

Start at low effort

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.

02

Reuse a stable prefix

Keep the system prompt and shared context identical at the start of each request so repeated tokens are billed at the cache-read rate.

03

Leave room for reasoning

Reasoning tokens count toward max_tokens; a tight limit can end the reply with finish_reason length before any answer text.

Docs and API

Building MiniMax M4 into your own product? Endpoints, parameters, authentication and billing are in the API docs.

minimax-m4

Why run MiniMax M4 on DreamTo

Runs in the browser

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, one account

Every model on DreamTo shares one account and one balance. Run the same brief through several and keep the best.

From playground to API

The request you tune in the playground is ready-to-run code in its API tab, and one API key calls every model.

FAQ

What is MiniMax M4?

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.

How do I call the MiniMax M4 API?

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.

How is billing calculated?

Charges are based on the selected model, its billing method, and your actual usage.

Where do I get an API key?

Create one in Console → API Keys. The same key works for every model on the gateway.

Can I use the output commercially?

Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.