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

Kimi K2 Thinking
Open-source thinking model built for long-horizon reasoning and hundreds of sequential tool calls across autonomous research, coding, and agent workflows.
Pricing
| Specification | Price |
|---|---|
| Input | $0.6/ M tokens |
| Output | $2.5/ M tokens |
| Cache read | $0.15/ M tokens |
| Cache write | -- |
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-k2-thinking",
"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-k2-thinking",
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'Endpoint
Related Models
Kimi K3.1 ProSuccessor to K3 and flagship open-weight multimodal reasoning model for long-horizon coding and agentic knowledge work, with native image and video understanding.
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 InstructInstruction-tuned for agent workflows with reliable tool calling and multilingual coding.