# MiniMax M4

MiniMax M4 is a language model from MiniMax. It reads and writes text.

- **Model id:** `opencheap/minimax-m4`
- **Price per 1M tokens:** $0.60 input / $2.33 output
- **Cached input:** $0.037 per 1M tokens
- **Context:** 1M tokens, 500K max output

## Providers

5 providers. Prices are per 1M tokens. As of 2026-12-04 12:20 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Surplus · quantization unknown | $0.60 | $0.037 | $2.33 | 0.97 s | 74 tok/s | 100 % | 1M | 500K |
| Sandbase · quantization unknown | $0.80 | $0.05 | $3.10 | — | — | 100 % (success rate) | — | — |
| Minimax · quantization unknown | $0.84 | $0.052 | $3.25 | 2.13 s | 75 tok/s | 100 % | 1M | 524K |
| AiHubMix · quantization unknown | $0.88 | $0.055 | $3.41 | — | — | — | — | — |
| Qubax · quantization unknown | $1.21 | $0.075 | $4.68 | 1.53 s | 92 tok/s | 100 % | 1M | 500K |

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Sandbase:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Minimax:** `temperature`, `top_p`, `response_format`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **AiHubMix:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Qubax:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/minimax-m4#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/minimax-m4`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/minimax-m4", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/minimax-m4",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/minimax-m4",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About MiniMax M4

MiniMax M4 costs from $0.60 per 1M input tokens and $2.33 per 1M output tokens on OpenCheap, with cached input at $0.037 per 1M tokens. Its list price is $0.80 per 1M input tokens and $3.10 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 25 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0083, and 1,000 such requests about $8.33. Prices as of 2026-12-04 12:13 UTC.

5 providers serve MiniMax M4 on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 1M tokens (1,000,000), room for roughly 750,000 words of English in one request.

MiniMax M4 is one of [10 MiniMax models](https://opencheap.si/models/lab/minimax) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the MiniMax M4 API cost per 1M tokens?

MiniMax M4 costs from $0.60 per 1M input tokens and $2.33 per 1M output tokens on OpenCheap, with cached input at $0.037 per 1M tokens. Prices as of 2026-12-04 12:13 UTC.

### What does one MiniMax M4 request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0083, and 1,000 such requests about $8.33. Every answer reports its own cost in usage.cost.

### Is MiniMax M4 cheaper on OpenCheap than its list price?

Its list price is $0.80 per 1M input tokens and $3.10 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 25 % less here.

### Which providers serve MiniMax M4?

5 providers serve MiniMax M4 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of MiniMax M4?

Its context window is 1M tokens (1,000,000), room for roughly 750,000 words of English in one request.

### How do I call the MiniMax M4 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/minimax-m4. One OpenCheap key works for every model; the rest of your code stays the same.

## More from MiniMax

- [MiniMax M3](https://opencheap.si/models/minimax-m3) (`minimax-m3`): $0.24 / $1.01 per 1M · 1M context
- [MiniMax 01](https://opencheap.si/models/minimax-01) (`minimax-01`): $0.14 / $1.12 per 1M · 1M context
- [MiniMax Latest](https://opencheap.si/models/minimax-latest) (`minimax-latest`): $0.30 / $1.20 per 1M · 512K context
- [MiniMax M2](https://opencheap.si/models/minimax-m2) (`minimax-m2`): $0.024 / $0.096 per 1M · 196K context
- [MiniMax M2.1](https://opencheap.si/models/minimax-m2.1) (`minimax-m2.1`): $0.083 / $0.27 per 1M · 204K context
- [MiniMax M3 Preview](https://opencheap.si/models/minimax-m3-preview) (`minimax-m3-preview`): $0.36 / $1.44 per 1M · 524K context
- [MiniMax M3 Thinking](https://opencheap.si/models/minimax-m3:thinking) (`minimax-m3:thinking`): $0.30 / $1.20 per 1M · 512K context
- [MiniMax M3.1 Flash](https://opencheap.si/models/minimax-m3.1-flash) (`minimax-m3.1-flash`): $0.0075 / $0.03 per 1M · 1M context

[All 10 MiniMax models](https://opencheap.si/models/lab/minimax)

## Similar models

- [Gemini 3.8 Flash](https://opencheap.si/models/gemini-3.8-flash): Google · 1M context · $0.45 / $2.25 per 1M · [Compare with MiniMax M4](https://opencheap.si/compare/minimax-m4-vs-gemini-3.8-flash)
- [Amazon Nova 2 Lite](https://opencheap.si/models/nova-2-lite-v1): Amazon · 1M context · $0.32 / $2.63 per 1M · [Compare with MiniMax M4](https://opencheap.si/compare/minimax-m4-vs-nova-2-lite-v1)
- [mistralai/Mistral-Large-4-1T-A52B](https://opencheap.si/models/mistral-large-4-1t-a52b): Mistral · 1M context · $0.70 / $2.10 per 1M, 8 % cheaper · [Compare with MiniMax M4](https://opencheap.si/compare/minimax-m4-vs-mistral-large-4-1t-a52b)
- [Gemini 4 Argon](https://opencheap.si/models/gemini-4-argon): Google · 1M context · $0.70 / $3.50 per 1M · [Compare with MiniMax M4](https://opencheap.si/compare/minimax-m4-vs-gemini-4-argon)
- [OrcaCyber Ling 3.2 Flash](https://opencheap.si/models/orcacyber-ling-3.2-flash): OrcaRouter · 1M context · $0.60 / $1.80 per 1M, 21 % cheaper · [Compare with MiniMax M4](https://opencheap.si/compare/minimax-m4-vs-orcacyber-ling-3.2-flash)
- [GPT 4.1 Mini](https://opencheap.si/models/gpt-4.1-mini): OpenAI · 1M context · $0.40 / $1.60 per 1M, 31 % cheaper · [Compare with MiniMax M4](https://opencheap.si/compare/minimax-m4-vs-gpt-4.1-mini)

[Compare MiniMax M4 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/minimax-m4 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
