MiniMax M4 arrives on Vercel AI Gateway with a 1M-token context window
Brief
MiniMax M4 is available through Vercel AI Gateway for coding and computer-use agents. It supports a 1M-token context window, tool calling, and text and image input.
Model and access
- Use the model name
minimax/minimax-m4in supported agents, including Claude Code, Codex, and Cursor, after installing the latest Vercel CLI and running setup. - Reasoning is always on; lower effort reduces latency and reasoning tokens.
- M4 uses fewer visual tokens per image and less memory per token across its context window.
AI Gateway terms
- AI Gateway provides a unified API for model access, usage and cost tracking, retries, failover, and performance optimizations.
- Provider pricing is passed through without markup, and inference has no platform fee, including for Bring Your Own Key requests.
- Zero Data Retention for M4 will become available as more providers add support.
Generated by AI from the original article. Check the source for full details.