Kimi K3.1 Pro on Vercel AI Gateway

Kimi · Moonshot AI

Serverless

Last refreshed 2026-10-23. Next refresh: weekly.

Why use Kimi K3.1 Pro on Vercel AI Gateway?

Vercel AI Gateway offers Kimi K3.1 Pro with pay-as-you-go pricing at $2.00/1M input tokens. 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 Kimi K3.1 Pro across 2 providers to find the best fit for your use case
Input / 1M
$2.00
Output / 1M
$10.00
Cache
read $0.20
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
moonshotai/kimi-k3.1-pro

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="moonshotai/kimi-k3.1-pro",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "moonshotai/kimi-k3.1-pro", not the LLMReference slug "kimi-k3-1-pro".
  • 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 Kimi K3.1 Pro Across Providers

ProviderInput (per 1M)Output (per 1M)
Moonshot AI Kimi$2.00$10.00
Vercel AI Gateway$2.00$10.00

Pricing

TypePrice (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.

Get Started

Model Specs

Released2026-10-23
Parameters2800B total; 104B active
Context1M
ArchitectureMixture of Experts

Related Models on Vercel AI Gateway