MiniMax M4 now available on AI Gateway Vercel's AI Gateway added MiniMax M4, MiniMax's new open-weight multimodal reasoning model for coding and computer-use agents, available under the model name minimax/minimax-m4. MiniMax M4 activates only a small share of its total parameters per token, uses a new image encoding that produces fewer visual tokens per image, and a new attention design that cuts memory per token across its 1M-token context window; reasoning is always on, with lower effort settings reducing latency and reasoning tokens. The model supports tool calling and text and image input, and can be selected in Claude Code, Codex and Cursor after installing the latest Vercel CLI and running setup. 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.