Last refreshed 2026-10-19. Next refresh: weekly.
Why use MiniMax M3.1 Flash on Vercel AI Gateway?
Vercel AI Gateway offers MiniMax M3.1 Flash with free input token pricing. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.
Compare MiniMax M3.1 Flash across 3 providers to find the best fit for your use caseSetup recipe
Python + curlpip install openaiexport AI_GATEWAY_API_KEY=...import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],minimax/minimax-m3.1-flashRequest example
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)Gotchas
- Use provider model ID "minimax/minimax-m3.1-flash", not the LLMReference slug "minimax-m3-1-flash".
- creator/model-name e.g. kwaipilot/kat-coder-pro-v2
- The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.
Compare MiniMax M3.1 Flash Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| MiniMax | $0.15 | $0.60 |
| OpenRouter | Free | Free |
| Vercel AI Gateway | Free | Free |
Pricing
| 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.