Speed
Output tokens / second
Custom pricing for production workloads
Kimi K2 0711 on AIMLAPI.
moonshotai/kimi-k2https://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.
Designed for agentic tasks, Kimi K2 0711 is documented as well suited for tool use, code generation, and autonomous problem-solving.
It is also suited to developers building AI agents and tool-calling pipelines that need strong coding and reasoning without extended thinking overhead.
The model is documented for advanced tool use, reasoning, and code synthesis.
It is additionally described as excelling in coding tasks, including programming-related benchmarks and code generation use cases.
See how Kimi K2 0711 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.6031 | 1M tokens |
| Output | $2.43 | 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.6031 | $2.43 | |
| $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",
"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",
"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",
"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 0711 has a 131,072 tokens context window and can return up to 100,352 tokens.
Kimi K2 0711 takes image, text as input and returns text.
Use moonshotai/kimi-k2 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Kimi K2 0711 costs $0.6031 input and $2.43 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Kimi K2 0711 can stream responses as they are generated.
Yes, Kimi K2 0711 accepts image input alongside text.
Kimi K2 0711 was built by Moonshot AI.
Yes, it supports tool calling, including parallel tool calls, as part of its feature set.
It offers reasoning, function calling, structured outputs, vision input, and web search alongside standard text chat and streaming.