Vercel adds MiniMax M4 to AI Gateway; zero-retention support is still pending
Developers can connect the model to coding agents using Vercel’s setup command. Reasoning stays on, while lower effort reduces latency and reasoning-token use, Vercel says.
M4 is now callable through Vercel’s AI Gateway and AI SDK, with support for agent workflows that use tools and process text or images. MiniMax specifies 2.74 trillion total parameters and 66 billion active per token, while its published API rates are $0.80 per million input tokens and $3.10 per million output tokens. The key deployment constraint is that Vercel has not yet enabled Zero Data Retention for M4; it gives no availability date, so teams requiring that option cannot use the gateway for this model under that condition.
01
M4 has a 1-million-token context window, and reasoning is always on; lower effort settings reduce latency and reasoning-token use.
02
MiniMax lists cached input at $0.05 per million tokens; Vercel says Gateway mirrors provider rates without markup or an inference platform fee.
03
MiniMax attributes lower memory use during generation to MFlashKV, which moves most stored attention data to SSDs while retaining frequently needed blocks and indexes in high-bandwidth memory.
Vercel has added MiniMax M4 to AI Gateway under the model name minimax/minimax-m4. Developers can use it through Vercel’s AI SDK or connect it to coding agents, although Zero Data Retention support for this model is not yet available.
The December 3 availability announcement positions M4 for coding and computer-use agents: software that works through tasks and calls tools rather than only answering a prompt. Vercel describes it as MiniMax’s new flagship reasoning model, with improvements in coding work that runs across many steps.
Connecting M4 to coding tools
M4 accepts text and images and supports tool calling, which lets an application give the model access to functions it can request. Its 1-million-token context window sets the capacity for material within a request; that input limit is separate from the model’s parameter count.
Reasoning is always on. Vercel says choosing a lower effort level reduces latency and the number of reasoning tokens used. The control therefore adjusts how much reasoning the model performs, rather than offering a switch between reasoning and non-reasoning modes.
For Claude Code, Codex, Cursor and other supported agents, Vercel directs developers to install its latest command-line tool and run the setup command below. They then select minimax/minimax-m4 inside the agent. Vercel also offers a model playground for trying M4.
npx vercel ai-gateway setup
MiniMax supplies a more precise size
MiniMax’s own December 4 announcement gives a more precise specification than Vercel’s rounded description of a 3-trillion-parameter model. MiniMax lists 2.74 trillion parameters in total, with 66 billion active for each token processed. The active count describes the portion used at each step, not the full model size.
M4’s scale, as specified by MiniMax
2.74 trillionTotal parameters
MiniMax’s count for the full model.
66 billionActive per token
The portion MiniMax says is active at each processing step.
Vercel attributes M4’s efficiency partly to activating only a small share of its parameters. It also says a new image encoder represents each image with fewer visual tokens, lowering image-input token counts. A revised attention design uses less memory per token across the context window.
MiniMax’s technical explanation goes further: its MFlashKV system moves most of the model’s stored attention data to solid-state drives during output generation. It keeps frequently needed blocks and indexes in high-bandwidth memory. MiniMax says a lookahead mechanism overlaps loading with earlier computation, reducing memory use without adding overhead.
Published prices, with a retention gap
MiniMax lists its API prices at $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens. These are MiniMax’s published rates, rather than a separate M4 price table supplied in Vercel’s announcement.
Vercel says AI Gateway mirrors provider pricing without markup and charges no inference platform fee, including for Bring Your Own Key requests. The gateway supplies a shared interface for calling models, tracking usage and cost, and configuring retries, failover and routing rules.
Those gateway features do not mean every model has the same retention options. Vercel says Zero Data Retention for M4 will become available as more providers add support. It gives no date, leaving developers who require that option waiting even though model access is live.
Sources
minimax.ioMiniMax M4: The Intelligence Frontier Under Compute Constraints - MiniMax Research
vercel.comMiniMax M4 now available on AI Gateway - Vercel
Reader comments
Newest comments first. Replies stay oldest first.