MiniMax M3.1 Flash on Vercel AI Gateway

MiniMax M3 · MiniMax

Serverless

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 case
Input / 1M
Free
Output / 1M
Free
Cache
read Free
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export AI_GATEWAY_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
Model ID
minimax/minimax-m3.1-flash

Request 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

ProviderInput (per 1M)Output (per 1M)
MiniMax$0.15$0.60
OpenRouterFreeFree
Vercel AI GatewayFreeFree

Pricing

TypePrice (per 1M)
Input tokensFree
Output tokensFree

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsPrompt Caching

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.

Get Started

Model Specs

Released2026-10-19
Context1M
ArchitectureDecoder Only