Base URL, method, and required headers are rendered from the active protocol template for this model.

Kimi K3.1 Pro
Successor to K3 and flagship open-weight multimodal reasoning model for long-horizon coding and agentic knowledge work, with native image and video understanding.
Pricing
| Specification | Price |
|---|---|
| Input | $2/ M tokens |
| Output | $10/ M tokens |
| Cache read | $0.2/ M tokens |
| Cache write 5min | $2/ M tokens |
| Cache write 1h | $4/ M tokens |
Quick Start
Paste and run the sample code below. The Gate.AI API is OpenAI-compatible—most SDKs only need a new base URL. To switch models, change the model ID.
Get your API key
Sign in to the Gate.AI console and create a new key under "API Keys". Keep it safe and send it via the Authorization header on every request.
Create a key in the consoleMake a request
Send a POST request to the Chat Completions endpoint with a model ID and an array of messages to get a reply.
curl --location "https://api.gate.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "kimi-k3.1-pro",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Handle the response \\\\\& streaming
By default a full JSON response is returned. Add "stream": true to the request body to receive incremental chunks over SSE.
curl --no-buffer --location "https://api.gate.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "kimi-k3.1-pro",
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'Endpoint
Create streaming or non-streaming responses with the OpenAI Responses API.
Create messages in Anthropic Messages API format with text, images, tools, and extended thinking.
Related Models
Kimi K3A multimodal reasoning model for complex coding, knowledge work, and long-running agent tasks. It works across large codebases, calls tools, and debugs, using images, logs, and test output to refine its output.
Kimi K2.7 CodeCoding-focused variant in the Kimi K2 family. Accepts text and image inputs, with reasoning on by default. Suited for long-horizon coding and agentic workflows.
Kimi K2.6Latest multimodal model in the K2 series, built for long-horizon coding, code-driven UI/UX generation, and multi-agent orchestration.
Kimi K2.5Top Chinese-English bilingual. Strong long context.
Kimi K2 ThinkingOpen-source thinking model built for long-horizon reasoning and hundreds of sequential tool calls across autonomous research, coding, and agent workflows.
Kimi K2 InstructInstruction-tuned for agent workflows with reliable tool calling and multilingual coding.