Vercel AI Gateway exposes MiniMax M3.1 Flash through model ID minimax/minimax-m3.1-flash. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-19. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
minimax/minimax-m3.1-flash— see the documentation for request format. - 3
Code Examples
pip install openaiAI_GATEWAY_API_KEYminimax/minimax-m3.1-flashcreator/model-name e.g. kwaipilot/kat-coder-pro-v2
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="minimax/minimax-m3.1-flash",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | Free |
| Output tokens | Free |
Capabilities
About MiniMax M3.1 Flash
MiniMax M3.1 Flash (API ID MiniMax-M3.1-Flash) is MiniMax's M-series language model for agentic reasoning, tool use, coding, computer use, cybersecurity and long-context tasks. It has a 1,000,000-token context window, accepts text, image and video input, and always thinks before answering, with tunable thinking depth (effort: low, medium, high, xhigh, max; default max). Flat pay-as-you-go pricing is $0.15 / $0.60 / $0.015 per 1M input / output / cached-input tokens. It replaces MiniMax M3.1 Flash Preview. Model weights are promised later and are not on Hugging Face as of 2026-10-19.