MiniMax M4 reaches coding agents through its CLI and Vercel AI Gateway
MiniMax’s new flagship accepts text and images and has a 1-million-token context window. Here’s where developers can try it and how to tell whether the extra context pays off.


MiniMax added its M4 flagship to the model choices in mmx agent setup on December 4, and Vercel now serves it through AI Gateway as minimax/minimax-m4. Developers can evaluate the same model from a configured coding agent or an application that already uses the gateway. The particular draw for teams working across large repositories is the combination of text and image input with a 1-million-token context window. A single task can pair a screenshot of a broken interface with the code and design constraints needed to fix it. MiniMax CLI release notes · Vercel changelog

What shipped in each route
The CLI update adds M4 as a selectable model and keeps the existing default. When you select M4, reasoning is always on and the setup defaults to max effort, with low, medium, high and xhigh also available. The release lists a maximum output of 131,072 tokens alongside the 1-million-token context window. Use the output figure when planning how much a single response can return. The implementation pull request also shows how the setup represents M4 in different clients, including a MiniMax-M4[1m] entry for Claude Code and a model catalog entry for Codex. MiniMax CLI release notes · MiniMax CLI pull request
On AI Gateway, Vercel documents text and image input, tool calling and always-on reasoning. Vercel says lower effort reduces latency and reasoning-token use. It also says Zero Data Retention for M4 on Gateway will become available as more providers add support for the model. For teams that require that guarantee, use synthetic inputs for a trial until the model’s route meets your retention policy. Vercel changelog
MiniMax also lists access through its API, M Plan and MiniMax Code. Its international API rates are $0.80 per million uncached input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens. Those rates are for the MiniMax API. MiniMax plans to release the weights after internal and third-party safety evaluations, with a release date and license still unspecified. Teams evaluating self-hosting can treat the current rollout as a chance to test the model’s behavior through hosted access. MiniMax M4 specifications and pricing
How to test whether the extra context helps
Pick a task with a visual symptom and a fix that depends on information spread across the repository. For example, a settings panel might overflow only at a narrow viewport, with the relevant layout rules split between the component library, the app shell and shared design tokens. Give the agent a screenshot, viewport dimensions and a test that can reproduce the regression. Ask it to identify the relevant files, propose the smallest patch and verify the result at the failing viewport and at one wider breakpoint.
Start with the same repository snapshot, tool permissions and acceptance checks you use for your current model. Give both models the same focused bundle of files. Then try M4 with a broader bundle that includes adjacent components and the design specification. This makes it easier to see whether additional context helped the agent find a cross-package constraint or simply led it to spend more time reading. If you also want to test reasoning effort, hold that broader bundle fixed and compare two effort settings in separate runs. Automater’s guide to measuring effort per completed task
Grade each run on whether the patch passes the regression check and preserves unrelated behavior. Record how much manual correction the diff needed, how long the run took and what the provider metered, including retries. M4’s larger input budget earns its place when the broader run produces a patch you can accept with less rework. If the focused run already gets the fix right, you have a concrete reason to keep that class of task on a smaller context budget.







