MiniMax M4
minimax-m4reasoning dialMiniMax M4 by MiniMax is available through model.lol's OpenAI-, Anthropic- and Gemini-compatible API under the model id minimax-m4. It costs $0.32 per million input tokens and $1.2 per million output tokens ($0.02 per million cached input tokens), charged per token from a prepaid balance. That is 60% below MiniMax's official API price. Context window: 196,608 tokens. Supports the reasoning dial: append -low, -medium, -high, -thinking, -nothinking to the id.
- Input
- $0.32per 1M tokens
- Output
- $1.2per 1M tokens
- Cached input
- $0.02per 1M tokens
- Vs official price
- −60%input price
- Context window
- 197K196,608 tokens
| Vendor | MiniMax |
|---|---|
| Prompt-cache writes | $0.4 (5 min) / $0.64 (1 hour) per 1M tokens: 1.25× and 2× the input price |
| Reasoning dial | minimax-m4-low minimax-m4-medium minimax-m4-high minimax-m4-thinking minimax-m4-nothinking |
| Added to the catalog | 2026-12-04 |
| Catalog entry updated | 2026-12-05 |
Prices are what a prepaid model.lol balance is charged per token; every answer reports the exact amount in usage.cost. A refused or moderated request also carries a violation fee (see billing). Signed-in accounts in a pricing group see their group rate on /pricing.
Call it
$ curl https://api.model.lol/v1/chat/completions \ -H "Authorization: Bearer ml-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "minimax-m4", "messages": [{"role": "user", "content": "hi"}] }'
OpenAI SDKs: base_url = https://api.model.lol/v1. Anthropic SDKs and POST /v1/messages take the same id, and so does Claude Code:
export ANTHROPIC_BASE_URL=https://api.model.lol export ANTHROPIC_AUTH_TOKEN=ml-your-key claude --model minimax-m4
Gemini SDKs, the Responses API, streaming and tool calls: see the docs.