Speed
Output tokens / second
Custom pricing for production workloads
Kimi K2 Thinking on AIMLAPI.
moonshotai/kimi-k2-thinkinghttps://api.aimlapi.com/v1Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
Autonomous research workflows are a documented use case for Kimi K2 Thinking, including long-horizon research tasks and web browsing with information synthesis.
Complex coding projects are another documented use case, including coding workflows that can span hundreds of steps and autonomous execution.
Mathematical problem-solving is documented as a use case, with emphasis on extended reasoning for complex math tasks.
Tool-orchestrated task execution is also documented, where the model dynamically invokes tools to carry out multi-step actions.
See how Kimi K2 Thinking compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 10 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.6348 | 1M tokens |
| Output | $2.65 | 1M tokens |
| Cached input | $0.1587 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.6348 | $2.65 | |
| $1.9 | $8 | |
| $2 | $10 | |
| $3 | $15 | |
| $4 | $20 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "moonshotai/kimi-k2-thinking",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "moonshotai/kimi-k2-thinking",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = 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-k2-thinking",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Kimi K2 Thinking has a 262,144 tokens context window and can return up to 100,352 tokens.
Kimi K2 Thinking takes image, text as input and returns text.
Use moonshotai/kimi-k2-thinking as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Kimi K2 Thinking costs $0.6348 input and $2.65 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Kimi K2 Thinking can stream responses as they are generated.
Yes, Kimi K2 Thinking accepts image input alongside text.
Kimi K2 Thinking was built by Moonshot AI.