70% off Wan3.0 Standard and 50% off Wan3.0 Prime. Try Wan3.0

MiniMax M4 is live on Runware

MiniMax's new flagship, built for long-horizon coding, agents, and professional work, with MiniMax M3.1 Flash beside it for fast, low-cost tasks. Both read text, images, and video in a 1M-token context, through Runware's OpenAI- and Anthropic-compatible endpoints.

Parameters in M4, 66B active
2.74T
Token context
1M
Per 1M input tokens, M4
$0.80
Per 1M input tokens, M3.1 Flash
$0.15

Every workflow, one endpoint.

OpenAI- and Anthropic-compatible endpoints. Point your existing SDK at Runware and go.

  • Agentic coding
  • Long-horizon tasks
  • Image and video input
  • 1M-token context
  • Tool use

M4 or M3.1 Flash?

M4 is MiniMax's most capable model, for long coding and agent runs and professional work. M3.1 Flash, released in October, is the fast, low-cost model for everyday coding and high-volume agent tasks. Both think on every request, at the level you set.

ModelMiniMax M4MiniMax M3.1 Flash
Best forLong-horizon coding, agents, and professional workFast, low-cost coding and agent work
Parameters2.74T total, 66B active428B total, 23B active
Thinking levelsLow, medium, high, xhigh, max (default)Low, medium, high, xhigh, max (default)
InputText, images, videoText, images, video
Context window1M tokens1M tokens
Price per 1M tokens$0.80 in, $3.10 out$0.15 in, $0.60 out
WeightsComing after safety evaluationsOpen, MiniMax Community License
ReleasedDecember 3, 2026October 20, 2026
Model IDminimax:m4@0minimax:m3.1@flash

MiniMax M4, tested on Runware

Six tasks, sent to M4 and M3.1 Flash through Runware's endpoint at their default thinking level, max. Every reply is shown as it came back, with its time, output tokens, and cost. Where a task has a right answer, we checked it.

Illustration written as code, rendered as an image
“Create an SVG illustration of a tropical beach at golden hour: palm trees leaning over white sand, turquoise shallows fading to deep blue water, gentle waves breaking on the shore, and a sailboat on the horizon. Use viewBox="0 0 800 500". Return only the SVG code.”
  • MiniMax M4Time486 sOutput tokens59,350Cost$0.184
  • MiniMax M3.1 FlashTime184 sOutput tokens16,388Cost$0.0099
Across the six tasksMiniMax M4MiniMax M3.1 Flash
Time, all six tasks935 s371 s
Output tokens108,24853,074
Cost$0.514$0.065

MiniMax M4 on independent boards

Independent boards score models on their own tests and votes. Here's where M4 and M3.1 Flash place on Vals AI's composite index and on Arena's agent leaderboard.

Independent boardsMiniMax M4MiniMax M3.1 Flash
Vals AI61.7% (#15)51.8% (#32)
Arena, Agent#17#55

Checked December 4, 2026. Vals Index v2.2 as of December 3, and Arena's agent board as of December 3. Boards update as new models and votes arrive.

MiniMax's benchmarks

MiniMax's published results for each model, against the leading open-weight models.

Terminal-Bench 4.1Agent tasks in a real terminal: % completed
  1. Kimi K3.1 Pro68.2%
  2. MiniMax M456.6%
  3. GLM-5.340.9%
  4. DeepSeek-V4.1-Flash-101732.3%
SWE Marathon v1.2Ultra-long software engineering tasks: % resolved
  1. MiniMax M444.0%
  2. Kimi K3.1 Pro39.2%
  3. GLM-5.332.9%
  4. DeepSeek-V4.1-Flash-101729.2%
OSWorld-2.1Computer-use tasks in desktop apps, full set: % completed
  1. MiniMax M480.0%
  2. Kimi K3.1 Pro79.6%
  3. DeepSeek-V4.1-Flash-101769.3%

Not reported: GLM-5.3

Finance Agent v2Financial-analyst research tasks with tools: % correct
  1. MiniMax M466.7%
  2. GLM-5.365.0%
  3. DeepSeek-V4.1-Flash-101762.9%
  4. Kimi K3.1 Pro61.5%
Vals IndexVals AI's composite of its industry benchmarks: overall score
  1. MiniMax M461.7%
  2. Kimi K3.1 Pro60.9%
  3. DeepSeek-V4.1-Flash-101759.7%
  4. GLM-5.358.4%
BenchmarkMiniMax M4Kimi K3.1 ProDeepSeek-V4.1-Flash-1017GLM-5.3
Terminal-Bench 4.156.6%68.2%32.3%40.9%
SWE Marathon v1.244.0%39.2%29.2%32.9%
OSWorld-2.180.0%79.6%69.3%—
Finance Agent v266.7%61.5%62.9%65.0%
Vals Index61.7%60.9%59.7%58.4%

MiniMax-published figures from its M4 launch post, December 3, 2026, with M4 at max thinking. Vals Index is v2.2. Other models' figures are as MiniMax reports them. Dash: not reported.

Built for long-running work

Coding agents, tool use, long documents, and images and video, with one endpoint for all of it.

Long-horizon coding

Builds, refactors, and multi-step fixes across a whole codebase, with a 1M-token context to hold it. MiniMax built M4 for long-running coding agents.

Things made in code

Interactive websites, 3D scenes, and games written as code. Our Draw and Build tests had both models write an illustration and a full front end from one prompt.

Agents with tools

Function calling in the OpenAI tools format, including parallel calls in a single turn, with thinking between calls.

Images and video to data

Photos, screenshots, charts, and video frames read into structured output. Both models read our café menu board into exact JSON, down to the price of an order.

Long documents

Contracts, filings, and whole doc sets in one request. Both models answered four questions about 218K tokens of our docs correctly.

High-volume work

M3.1 Flash ran our six test tasks for $0.07, against $0.51 for M4. Cache hits cut its input price to $0.015 per million tokens.

MiniMax M4 pricing

Per-token pricing with no subscription. M3.1 Flash is the low-cost model at $0.15 per million input tokens. Prompt caching cuts the input price on cache hits.

Input
$0.80/1M tokens
Input on cache hits
$0.05/1M tokens
Output
$3.10/1M tokens

Thinking tokens bill as output. Same key and billing as every other model on the platform.

Get started

Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID. The stream ends with a usage chunk that includes the request's cost.

Model
import os

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["RUNWARE_API_KEY"],
    base_url="https://api.runware.ai/v1",
)

stream = client.chat.completions.create(
    model="minimax:m4@0",
    messages=[
        {"role": "user", "content": "Summarize this contract and list every deadline it sets."},
    ],
    stream=True,
    stream_options={"include_usage": True},
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        print("\n", chunk.usage)

Last stream chunk, with usage and cost

{
  "object": "chat.completion.chunk",
  "model": "minimax:m4@0",
  "choices": [],
  "usage": {
    "prompt_tokens": 51,
    "completion_tokens": 412,
    "total_tokens": 463,
    "cost": 0.001318
  }
}

Earlier MiniMax models on Runware

MiniMax M3 stays live under the same key and endpoint. Switching models means changing one ID.

Frequently asked questions

What is MiniMax M4?

MiniMax's flagship model, released on December 3, 2026. It has 2.74 trillion parameters, 66 billion of them active per token, a 1M-token context, and text, image, and video input. MiniMax built it for long-horizon coding, agents, and professional work such as finance and chip design.

Should I use M4 or M3.1 Flash?

M4 for the hardest coding, agent, and analysis work. M3.1 Flash for everyday coding and high-volume tasks: our six test tasks cost $0.07 on M3.1 Flash and $0.51 on M4.

How much does MiniMax M4 cost on Runware?

M4 costs $0.80 per million input tokens and $3.10 per million output tokens, and M3.1 Flash $0.15 and $0.60. Thinking tokens bill as output. Cache hits cut the input price to $0.05 for M4 and $0.015 for M3.1 Flash.

How does MiniMax M4 rank against other models?

On the Vals Index, M4 scores 61.7%, #15 on the board, and it's #17 of 77 on Arena's agent leaderboard. In MiniMax's own results, M4 leads Kimi K3.1 Pro, DeepSeek-V4.1-Flash-1017, and GLM-5.3 on most benchmarks.

Can MiniMax M4 understand images and video?

Yes. Send images in an image_url content part, and video in a video_url part, by URL or as a base64 data URL. In our tests, both models described a claymation clip shot by shot, camera moves included, and read a café menu board into exact JSON.

How do I set the thinking level?

Set reasoning_effort on the request: low, medium, high, xhigh, or max. MiniMax's default is max. Thinking is always on, so pick the level to fit the task: higher levels spend more thinking tokens, which bill as output.

Is MiniMax M4 open-weight?

MiniMax plans to release M4's weights after internal and third-party safety evaluations, within weeks. M3.1 Flash's weights are already on Hugging Face under the MiniMax Community License. On Runware, both run through the API with nothing to host.

How do I call MiniMax M4?

Through Runware's OpenAI-compatible Chat Completions endpoint or its Anthropic Messages endpoint, with the same API key and billing as every other model. The model IDs are minimax:m4@0 and minimax:m3.1@flash. Tools use the OpenAI format, including parallel calls in one turn.

What other MiniMax models are on Runware?

MiniMax M3, the previous flagship LLM, is still live. MiniMax H3 makes video from text, images, and audio, and MiniMax H3 Image makes and edits images. MiniMax's speech and music models are live too.

Running MiniMax M4 at scale?

Tell us what you're building and your expected volume. Our team will get back to you about rate limits and capacity.