Vercel AI Gateway exposes Kimi K3.1 Pro through model ID moonshotai/kimi-k3.1-pro. 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— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AI_GATEWAY_API_KEYModel ID
moonshotai/kimi-k3.1-procreator/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",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $2.00 |
| Output tokens | $10.00 |
Capabilities
VisionMultimodalReasoningJSON / Tool useStructured OutputsPrompt Caching
About Kimi K3.1 Pro
Kimi K3.1 Pro is the first model in Moonshot AI's K3.1 series, a post-trained version of Kimi K3. It has a 1,048,576-token context window, always-on reasoning with low, high and max effort, image and video input, tool calling and strict JSON Schema structured output. Released 2026-10-23 on Kimi.ai, Kimi Work, Kimi Code and the Kimi API; Moonshot says full weights will follow by 2026-11-04.
Model Specs
Released2026-10-23
Parameters2800B total; 104B active
Context1M
ArchitectureMixture of Experts