MiniMax M4 on OpenRouter — paid only at $0.80/M input and $3.10/M output, 1M context, OpenAI-compatible chat completions.
MiniMax M4 is MiniMax's new flagship open-weight multimodal reasoning model, with 66B active parameters out of 2.74T total. OpenRouter lists it as text, image and video in, text out, with a 1M-token context window and up to 524,288 completion tokens. It targets demanding agentic workloads such as complex software engineering and long-horizon reasoning.
There is no free tier for M4. OpenRouter bills $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens — the same as MiniMax's own pay-as-you-go price. Add credits to your OpenRouter account before calling it.
The endpoint below goes through OpenRouter's OpenAI-compatible chat completions API, so any OpenAI SDK works by pointing base_url at https://openrouter.ai/api/v1 and using the model id minimax/minimax-m4.
OpenRouter exposes M4 through the standard OpenAI-compatible chat completions endpoint, so any OpenAI SDK works by pointing base_url at https://openrouter.ai/api/v1 and using the model id minimax/minimax-m4.
M4 has no free tier. OpenRouter bills $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens. Add credits to your OpenRouter account before calling it.
The context window is 1M tokens and a single completion can return up to 524,288 tokens. Input accepts text, images and video; output is text only.
Chat with free AI models right in your browser — multi-turn conversations, switch models mid-chat, and your API key stays in this browser.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/minimax-m4",
"messages": [
{ "role": "user", "content": "Explain the difference between a mutex and a semaphore." }
]
}'
Community Feedback
Comments are tied to your GitHub account — sign in to join the discussion.