Using Kimi K3.1 Pro Highspeed on Vercel AI Gateway
Implementation guide · Kimi · Moonshot AI
Serverless
Vercel AI Gateway exposes Kimi K3.1 Pro Highspeed through model ID moonshotai/kimi-k3.1-pro-highspeed. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-23. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
moonshotai/kimi-k3.1-pro-highspeed— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AI_GATEWAY_API_KEYModel ID
moonshotai/kimi-k3.1-pro-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="moonshotai/kimi-k3.1-pro-highspeed",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $4.00 |
| Output tokens | $20.00 |
Capabilities
VisionMultimodalReasoningJSON / Tool useStructured OutputsPrompt Caching
About Kimi K3.1 Pro Highspeed
Kimi K3.1 Pro Highspeed is the high-speed variant of Moonshot AI's Kimi K3.1 Pro, offered on the Kimi API with the same 1,048,576-token context window. It keeps always-on reasoning with low, high and max effort, image and video input, tool calling and strict JSON Schema structured output, at double the K3.1 Pro token price. Released 2026-10-23 alongside K3.1 Pro.
Model Specs
Released2026-10-23
Context1M
ArchitectureMixture of Experts