Kimi K3 API

Kimi K3 API is Moonshot AI's multimodal model with a 1M token context window, vision, reasoning, tool calling, and web search — built for long-context and agentic workflows.
Context
1M tokens
Input
$3.9 / 1M
Output
$19.5 / 1M
Released
Jul 16, 2026

How to use Kimi K3 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to moonshotai/kimi-k3-thinking.

import requests

r = requests.post(
   "https://api.aimlapi.com/v1/chat/completions",
   headers={"Authorization": "Bearer " + AIMLAPI_KEY},
   json={
     "model": "moonshotai/kimi-k3-thinking",
     "messages": [
       {
         "role": "user",
         "content": "Hello!"
       }
     ]
   },
)
print(r.json())

const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
 method: "POST",
 headers: {
   Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
   "Content-Type": "application/json",
 },
 body: JSON.stringify({
   "model": "moonshotai/kimi-k3-thinking",
   "messages": [
     {
       "role": "user",
       "content": "Hello!"
     }
   ]
 }),
});
console.log(await r.json());

curl -X POST https://api.aimlapi.com/v1/chat/completions \
 -H "Authorization: Bearer $AIMLAPI_KEY" \
 -H "Content-Type: application/json" \
 -d '{"model":"moonshotai/kimi-k3-thinking","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Kimi K3 API Pricing

TypePrice
Input
$3.9 / 1M tokens
Output
$19.5 / 1M tokens

Kimi K3 vs other models

ModelInputOutputContextBest for
Kimi K3
This page
$3.9 / 1M
$19.5 / 1M
1M tokens
Long-context, multimodal & agentic workflows
$1.235 / 1M
$5.2 / 1M
262K tokens
Coding + agents
$0.39 / 1M
$1.56 / 1M
524K tokens
Coding + agents
$2.6 / 1M
$7.8 / 1M
1M tokens
Reasoning + agents
$0.5655 / 1M
$1.131 / 1M
1M tokens
Reasoning + agents

Start building with Kimi K3

Get API Key
1000+ models, one API.