Released Weights pending

MiniMax M4

MiniMax’s flagship model accepts text, images, and video, with a 1M-token context window for tasks such as working across a codebase or debugging from a screen recording. You can start with the official pay-as-you-go API.

Official API model ID
MiniMax-M4
Context window
1M tokens
API input / output
$0.80 / $3.10 Per 1M tokens

Release & Access

Last checked

ChannelCurrent status
MiniMax M PlanGo, Explore, Build, and Scale include M4. Sign in to MiniMax Code or use an M Plan key in a compatible coding tool.
Official APIMiniMax documents MiniMax-M4 and lists pay-as-you-go rates. Use a key from the MiniMax API platform. MiniMax official website.
Model weightsThe technical report is public. MiniMax’s official repository says the weights will follow.
DeepSeek V4 HubThe Multi-Model Coding Plan lists M4 as minimax-m4 or m4 at 10 points per token for eligible Singapore gateway keys. The Germany gateway used by Ultra excludes M4.

Compare MiniMax M4 subscriptions for plan prices, usage limits, and pay-as-you-go cost examples.

API Pricing & Quickstart

Official pay-as-you-go rates in USD per 1M tokens
ModelInputOutputCache read
MiniMax M4$0.80$3.10$0.05
MiniMax M3.1 Flash$0.15$0.60$0.015

At these rates, 100,000 uncached input tokens and 20,000 output tokens cost $0.142 on M4.

Make your first API call

Set MINIMAX_API_KEY to your MiniMax API key, then run this request in Bash or Zsh.

Anthropic-compatible API · cURL
curl https://api.minimax.io/anthropic/v1/messages \
  -H "Authorization: Bearer $MINIMAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMax-M4",
    "max_tokens": 2048,
    "output_config": { "effort": "low" },
    "messages": [
      { "role": "user", "content": "Write a Python function that deduplicates a list while preserving order." }
    ]
  }'

M4’s thinking is always enabled. Use output_config.effort to control thinking depth. Thinking tokens count toward max_tokens.

Sources: MiniMax pricing and Anthropic API reference.

Specs & Architecture

SpecificationMiniMax M4
ArchitectureMixture of experts (MoE), with 2.74T total parameters and 66B active per token.
Context window1,000,000 tokens. Useful when a task needs code, tests, and documentation in one conversation.
Supported inputsText, images, and video on the Anthropic-compatible API. Send a screenshot or short recording alongside a bug report.
ReasoningFive effort levels from low through max. The API defaults to max when omitted.

Sources: MiniMax M4 technical report and API reference.

Benchmarks & Comparisons

MiniMax’s technical report evaluates M4 on long-running coding and agent tasks. A direct ranking against M3.1 Flash and DeepSeek V4.1 Flash requires results from the same benchmark version, agent harness, and effort settings. The table compares published API rates and context windows.

Official API comparison in USD per 1M tokens
ModelContextInputOutputCache read
MiniMax M41M$0.80$3.10$0.05
MiniMax M3.1 Flash1M$0.15$0.60$0.015
DeepSeek V4.1 Flash · off-peak1M$0.15$0.60$0.003
DeepSeek V4.1 Flash · peak1M$0.30$1.20$0.006

For a multi-file change, run the same issue and tests with each model. Compare whether the tests pass, how much review the patch needs, and the cost of the full run.

Sources: MiniMax and DeepSeek API pricing. DeepSeek V4.1 Flash guide.

Latest Updates & FAQ

When was MiniMax M4 released?

MiniMax dates the release to December 3, 2026 in its model release notes.

Where do I get an API key for MiniMax M4?

Get an API key in the MiniMax API platform, then send MiniMax-M4 as the model ID. See the quickstart request.

Is MiniMax M4 open weight? Can I run it locally?

MiniMax describes M4 as an open-weight model and says the download will follow. Check its official repository for the files, license, and deployment guidance.

Does the DeepSeek V4 Hub Coding Plan include MiniMax M4?

Yes, for eligible Singapore gateway keys. Use minimax-m4 or m4. Check the Base URL and model list in your dashboard. See prices and eligible tiers.