Use MiniMax M4 in a coding agent
MiniMax M4 (minimax/minimax-m4) was released December 3, 2026. OpenRouter's card describes an open-weight model with 66 billion active parameters and 2.74 trillion total. It takes text, images and video, returns text, and accepts tools. JSON output uses response_format without schema enforcement. The context window is 1,000,000 tokens. The completion cap is 524,288 tokens, and that cap includes reasoning.
Reasoning stays on
The card says reasoning is always on and cannot be disabled. A short tool call can still spend a long think step, and that step is billed as output. Set the completion limit for the edit you expect, with room for the trace, instead of leaving it at 524,288. Passing the previous turn's reasoning back matters on MiniMax models that ask for it. Check the current card before you drop reasoning_details on a multi-turn agent.
On December 4 the only listed host was MiniMax, marked provisional: OpenRouter said its security review was unfinished, and requests reach that host only when provisional providers are allowed. That status is OpenRouter's.
Price
The FAQ that day listed $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 for cache reads. ChromaLab bills the rate on the models page when the id is listed there.
Point Claude Code at it
Confirm the id first. A missing name 404s.
export ANTHROPIC_BASE_URL="https://chromalab.ink"
export ANTHROPIC_AUTH_TOKEN="chroma-xxxxxxxxxxx-xxxxxxxxxxx"
export ANTHROPIC_MODEL="minimax/minimax-m4"
If tool calls come back as plain text, start with the model-choice note. Full setup is in the Claude Code docs. The roleplay note, including why you should not max out the completion slider, is on Composite.