---
last_updated: 2026-12-04
source_url: https://opper.ai/minimax/minimax-m4
title: "MiniMax M4 by MiniMax"
description: "MiniMax M4, MiniMax's natively multimodal flagship: a 2.74T-parameter Mixture-of-Experts model with 66B active parameters and a 1M-token context, built for long-horizon coding and agentic work."
---

# MiniMax M4

By [MiniMax](https://opper.ai/minimax).

Released 3 Dec 2026, 45 days after [MiniMax M3.1 Flash](https://opper.ai/minimax/minimax-m3-1-flash) · [Announcement](https://platform.minimax.io/docs/release-notes/models) · [All MiniMax releases](https://opper.ai/model-releases/minimax)

MiniMax M4 is the flagship of MiniMax's M-series and the company's most capable model to date: a Mixture-of-Experts model with 2.74 trillion total parameters, of which 66 billion are active per token. It is natively multimodal, reading text, images and video in the same conversation, and works with a context window of up to 1M tokens and up to 256K tokens of output per response.

MiniMax built M4 for long-horizon coding and agentic work, and places it at the front of open models on most of its own evaluations, spanning coding, domain expertise, computer use, finance and business tasks, chip design, and design work in 3D modeling, games and video production. Tool calls interleave with its reasoning, so the model can plan, call a tool, read the result and keep thinking within a single turn.

M4 always thinks before it answers. Thinking cannot be switched off; its depth is set with an effort level from low to max, and it runs at max when no level is given. Lower levels cut latency and output tokens on simpler tasks, while max suits multi-step engineering problems.

## Available routes

MiniMax M4 runs on 1 route through the Opper gateway. Prices are per 1M tokens. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=minimax%2Fm4.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [MiniMax](https://opper.ai/provider/minimax) | `minimax/m4` | Multi-region | Abuse monitoring | No | $0.80 | $3.10 | $0.05 |

## Key info

- Model id: `minimax/m4`
- Input: Text, Image, Video
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 1M
- Max output: 262K
- Input price: $0.80 per 1M tokens ($0.05 cache read)
- Output price: $3.10 per 1M tokens
- Released: 3 Dec 2026
- Zero data retention with abuse monitoring
- No training by default

## Data handling per route

Each route hosting MiniMax M4 has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### MiniMax — Multi-region

Zero data retention with abuse monitoring: prompts and outputs are kept for abuse monitoring only, for a window the provider does not state, and are not used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: With abuse monitoring, window not stated.
- Training: No training on customer data.
- Logging: Abuse monitoring
- Abuse monitoring: On by default, holds flagged content
- Caching: Prompt cache
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

## Best for

Where MiniMax M4 ranks among the models on Opper with a score for each use case (0 to 100).

- [Finance](https://opper.ai/models?use=finance): 53.0, #14 of 70 (Finance and accounting)
- [Legal](https://opper.ai/models?use=legal): 46.0, #20 of 70 (Legal tasks and reasoning)

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/minimax-m4)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #15 of 531 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Strong
- Output speed: 139 tok/s
- Intelligence Index: 47.0

### Coding

- FrontierCode 2.0: 33%

### Agentic & knowledge work

- AutomationBench: 71%
- GDP.pdf: 27%
- Briefcase (Elo): 1629

### Science & reasoning

- Terminal-Bench Science: 43%
- CritPt (hard): 49%
- HLE Diamond: 44%

### Knowledge

- Omniscience: 16.0
- MMMU-Pro: 81%

### By domain

- Finance & accounting: 53.0
- Legal: 46.0
- Engineering: 51.0
- Economics: 50.0
- Strategy & operations: 55.0

## Get started

Call MiniMax M4 through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

MiniMax M4 is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call MiniMax M4
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "minimax/m4",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "minimax/m4",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "minimax/m4",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/m4",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use MiniMax M4 in your apps

Pick your tool to see how to run it on MiniMax M4 through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/minimax-m4)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/minimax-m4)
- [Codex](https://opper.ai/apps/codex/minimax-m4)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/minimax-m4)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/minimax-m4)
- [Aider](https://opper.ai/apps/aider/minimax-m4)
- [Goose](https://opper.ai/apps/goose/minimax-m4)
- [Droid](https://opper.ai/apps/droid/minimax-m4)
- [OpenCode](https://opper.ai/apps/opencode/minimax-m4)
- [Pi](https://opper.ai/apps/pi/minimax-m4)
- [OpenClaw](https://opper.ai/apps/openclaw/minimax-m4)
- [Hermes](https://opper.ai/apps/hermes/minimax-m4)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/minimax-m4)
- [OmniRoute](https://opper.ai/apps/omniroute/minimax-m4)
- [Cursor](https://opper.ai/apps/cursor/minimax-m4)
- [Cline](https://opper.ai/apps/cline/minimax-m4)
- [Continue](https://opper.ai/apps/continue/minimax-m4)
- [Kilo Code](https://opper.ai/apps/kilo-code/minimax-m4)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/minimax-m4)
- [Zed](https://opper.ai/apps/zed/minimax-m4)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/minimax-m4)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/minimax-m4)
- [n8n](https://opper.ai/apps/n8n/minimax-m4)
- [LibreChat](https://opper.ai/apps/librechat/minimax-m4)
- [Open WebUI](https://opper.ai/apps/open-webui/minimax-m4)
- [See all apps](https://opper.ai/apps)

## Other models from MiniMax

- [MiniMax M3.1 Flash](https://opper.ai/minimax/minimax-m3-1-flash)
- [MiniMax M3](https://opper.ai/minimax/minimax-m3)
- [MiniMax M2.5](https://opper.ai/minimax/minimax-m2-5)
- [MiniMax M2.7](https://opper.ai/minimax/minimax-m2-7)
- [MiniMax H3](https://opper.ai/minimax/minimax-h3)
- [MiniMax Hailuo 02 Standard](https://opper.ai/minimax/hailuo-02-standard-i2v)
