Using MiniMax M2.5 Highspeed on Vercel AI Gateway
Implementation guide · MiniMax M2 · MiniMax
Vercel AI Gateway exposes MiniMax M2.5 Highspeed through model ID minimax/minimax-m2.5-highspeed. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-06-29. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
minimax/minimax-m2.5-highspeed— see the documentation for request format. - 3
Code Examples
pip install openaiAI_GATEWAY_API_KEYminimax/minimax-m2.5-highspeedcreator/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-m2.5-highspeed",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.60 |
| Output tokens | $2.40 |
Capabilities
About MiniMax M2.5 Highspeed
MiniMax M2.5 Highspeed is MiniMax's inference-optimized variant of M2.5, released simultaneously in February 2026. It delivers identical intelligence and outputs to standard M2.5 through a specialized inference engine at lower latency. The model supports a 204,800-token context window, 131,072-token max output, function calling, structured output, and reasoning. API model ID: MiniMax-M2.5-highspeed. It is designed for latency-sensitive interactive applications and automated agent pipelines.