MiniMax · Model
MiniMax M4 API
MiniMax M4 answers at api.apmix.ai under the id below — one key and one monthly plan, on the OpenAI and Anthropic wire formats your tools already speak. No separate MiniMax account, no per-provider bill.
Model id
minimax/minimax-m4StarterProMaxAt a glance
- Provider
- MiniMax
- Included in
- Starter, Pro, Max — from $4.99/month
- Weighted-token cost
- 0.8× — a 1,000-token exchange costs 800 weighted tokens
- What a month buys
- Starter: 75M tokens · Pro: 250M tokens · Max: 625M tokens
- Context window
- 1M tokens
- Max output
- 131.1K tokens
- Reasoning
- Yes — thinks before it answers
- Image input
- Supported
- Tool calling
- Supported
- On apmix since
- December 4, 2026
Call MiniMax M4
Set the model to minimax-m4 in any OpenAI- or Anthropic-compatible client. Both base URLs accept the same apmix key.
OpenAI-compatible · Chat Completions
curl https://api.apmix.ai/v1/chat/completions \
-H "Authorization: Bearer apx_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "minimax-m4", "messages": [{"role": "user", "content": "Hello"}]}'Anthropic-compatible · Messages
curl https://api.apmix.ai/v1/messages \
-H "x-api-key: apx_live_YOUR_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "minimax-m4", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'Questions about MiniMax M4
- Which plan includes MiniMax M4?
- Starter, Pro, Max. Each plan is a monthly allowance of weighted tokens shared across every model and every key; MiniMax M4 counts at 0.8× per token.
- How do I use MiniMax M4 in Claude Code, Codex CLI or Grok Build?
- Point the tool at apmix — https://api.apmix.ai/v1 for OpenAI-compatible clients, https://api.apmix.ai for Anthropic-compatible ones — with your apmix key, and set the model to minimax-m4. The Docs page has copy-paste setup for each tool.