# MiniMax M4 now available on AI Gateway

> Source: <https://vercel.com/changelog/minimax-m4-now-available-on-ai-gateway>
> Published: 2026-12-03 00:00:00+00:00

**Key takeaway:** MiniMax M4 is callable as minimax/minimax-m4 on AI Gateway with a 1M-token context, always-on reasoning, tool calling and text/image input, and activates only a small share of its parameters per token to keep inference efficient.

[MiniMax M4](https://vercel.com/ai-gateway/models/minimax-m4) is now available on AI Gateway. It is MiniMax's new flagship, an open-weight multimodal reasoning model for coding and computer-use agents.

Compared with earlier MiniMax models, M4 is a much larger model and improves long-horizon coding. M4 also brings efficiency improvements. It activates only a small share of its total parameters for each token, so inference stays efficient for a model of its size. A new image encoding turns each image into fewer visual tokens, which lowers input token counts for requests with images, and a new attention design uses less memory per token across its 1M-token context window.

Reasoning is always on. Lower effort reduces latency and reasoning tokens. The model supports tool calling, accepts text and image input, and has a 1M-token context window.

Use `minimax/minimax-m4` as the model name:

To use it in Claude Code, Codex, Cursor, and more, install the latest Vercel CLI and run setup:

Then select `minimax/minimax-m4` in the agent. See the [coding agents guide](https://vercel.com/docs/ai-gateway/coding-agents) for details.

Try MiniMax M4 in the [model playground](https://vercel.com/ai-gateway/models/minimax-m4).

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in [custom reporting](https://vercel.com/changelog/custom-reporting-ai-gateway), [Zero Data Retention support](https://vercel.com/blog/zdr-on-ai-gateway), [budgets for API keys](https://vercel.com/docs/ai-gateway/authentication-and-byok/api-keys), [routing rules](https://vercel.com/docs/ai-gateway/models-and-providers/routing-rules), and more.

AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on [Bring Your Own Key](https://vercel.com/docs/ai-gateway/authentication-and-byok/byok) (BYOK) requests.

You can view [all language models](https://vercel.com/ai-gateway/models?type=text) available on AI Gateway.
