OpenCode Adds MiniMax M4, a 2.74T Model Beating GPT-6.2 Sol
OpenCode Go adds MiniMax M4, a 2.74T-parameter multimodal MoE with 1M context, giving terminal coding agents a frontier open-weight option at flat-rate pricing.
Takeaways
- OpenCode Go adds MiniMax M4, selectable directly from its model list
- M4 is a 2.74T parameter MoE with 66B active per token and 1M context
- Pricing: $0.80 input and $3.10 output per million tokens on the direct API
- Flat-rate access via OpenCode Go starts at $15/month for 790 requests per 5 hours
- Tops the Vals Index for open-weight models, beating Kimi K3.1 Pro
- Weights are promised but not yet downloadable; no Hugging Face repo exists
OpenCode Go has added MiniMax M4 to its terminal model picker, hours after MiniMax released the model through its own API. OpenCode Go subscribers can use M4 through their existing allowance without a separate MiniMax key. Direct connections from OpenCode to MiniMax still require an M Plan API key.
A 2.74T model that activates 66B
| Specification | MiniMax M4 |
|---|---|
| Architecture | Mixture of Experts |
| Total parameters | 2.74 trillion |
| Active parameters | 66 billion per token |
| Maximum context | 1 million tokens |
| Inputs | Native multimodal support |
| Current availability | Hosted APIs and gateways |
Mixture-of-Experts routing sends each token through selected parts of the network, activating 66B parameters from the 2.74T total. This reduces per-token computation relative to running the full network, though serving still requires access to the complete weight set.
MiniMax says M4 combines MiniMax Sparse Attention 2 with MFlashKV, which manages the key-value cache used to retain attention state across long prompts. The design can move cache data from high-bandwidth accelerator memory to SSD storage while limiting added latency. MiniMax cites lower memory requirements and support for non-Nvidia hardware, including Huawei Ascend 950DT systems.
Native multimodal support allows the core model to process supported non-text inputs. The available file types still depend on the provider adapter and OpenCode client, so deployments should confirm modality support in the MiniMax model docs.
Billing determines the login
| Route | Listed price or allowance | Credential |
|---|---|---|
| OpenCode Go | $15 per month, about 790 requests per five hours | OpenCode Go account |
| OpenCode Go Plus | $60 per month, about 3,160 requests per five hours | OpenCode Go account |
| MiniMax direct API | $0.80 per million input tokens and $3.10 per million output tokens | MiniMax M Plan API key |
| Metered gateways | OpenRouter and Kilo Code list the same base token rates | Gateway account or key |
The quoted subscription allowances count requests, not tokens or compute, so their practical capacity depends on prompt length, generated output, tool calls, and retry behavior. MiniMax advertises output near 100 tokens per second through its direct service. Actual throughput varies with context length, batch size, hardware, and provider load.
Match OpenCode to the billing route
OpenCode Go subscription
- Update OpenCode to a release that lists MiniMax M4.
- Sign in through the OpenCode Go account flow.
- Open the model picker and select
MiniMax-M4.
MiniMax token plan
- Run
opencode auth login. - Select
MiniMax Token Plan (minimax.io). - Enter the MiniMax M Plan API key.
- Start OpenCode and select
MiniMax-M4.
Older OpenCode builds that do not list M4 can define the model manually in ~/.config/opencode/opencode.json. The following provider block uses MiniMax’s Anthropic-compatible endpoint:
{
"provider": {
"minimax-coding-plan": {
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "https://api.minimax.io/anthropic/v1"
},
"models": {
"MiniMax-M4": {
"name": "MiniMax-M4",
"limit": {
"context": 524288,
"output": 131072
}
}
}
}
}
}
This configuration sets a 524,288-token context limit and a 131,072-token output cap. The advertised 1 million tokens describe the model’s maximum context; clients and gateways can expose lower limits. The authentication flow should store the API key separately from this configuration file.
Benchmarks define what to test
Early leaderboard reports place M4 first among open-weight models on the Vals Index, ahead of Kimi K3.1 Pro. Separate reports claim wins over GPT-6.2 Sol on Finance Agent and Gemini 4 Neon on Design Arena. Those comparisons remain difficult to audit without complete prompt sets, tool permissions, judge settings, model versions, and run counts.
MiniMax positions M4 for workloads that combine long context, tool use, and repeated planning:
- Long-running coding and software engineering tasks
- Computer-use agents and tool-driven workflows
- Finance and business analysis
- Chip design and model-development workflows
- 3D, game, and video production pipelines
Available comparisons also place leading proprietary models ahead on some coding and agent evaluations. A production trial should measure repository-level task completion, tool-call reliability, latency, token consumption, retry rates, and output correctness against the models already used by the team.
The weights remain unpublished
MiniMax describes M4 as open-weight and says it plans to publish the weights after completing safety evaluations. At publication, no downloadable files or license are available, leaving API access as the only deployment option.
The model’s 66B active parameters reduce computation per token, not storage for the full network. Raw 2.74T-parameter weights would occupy roughly 2.74 TB at 8-bit precision or 5.48 TB at 16-bit precision before runtime overhead, cache storage, and redundancy. Self-hosting will require substantial infrastructure even after the weights and license arrive.
Choose the route by workload
- Existing OpenCode Go subscribers: Use the included M4 allowance for interactive coding and agent experiments without opening a separate MiniMax account.
- Teams needing metered automation: Connect through MiniMax or a gateway for token-based billing and service-specific limits.
- Teams requiring local deployment: Wait for the weights, license, hardware requirements, and serving instructions before planning a rollout.