Intelligence
Index v5.0
Custom pricing for production workloads

Kimi K3.1 Pro API is Moonshot AI's most capable 3T-class open-weight model with a 1M token context window, reasoning, vision and parallel tool calling — built for full-project coding and long-horizon agentic work.
Kimi K3.1 Pro is Moonshot AI's most capable 3T-class open-weight model, a post-trained upgrade of Kimi K3 with a 1,048,576-token context window, reasoning, parallel tool calling, vision and structured outputs.
Full-project coding
Multi-file features, refactors and long-running engineering tasks across large repositories.
3D and game development
Moonshot AI positions the model for work in Blender, Unreal Engine, Unity, Godot and CAD tools.
See how Kimi K3.1 Pro compares in intelligence, generation speed, cost per task and latency.
Compare 7 models available on AI/ML API across 4 independent benchmarks.
Expert-written questions across academic subjects.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $2 | 1M tokens |
| Output | $10 | 1M tokens |
| Cached input | $0.2 | 1M tokens |
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $2 | $10 | |
| $0.95 | $4 | |
| $1.9 | $8 | |
| $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": "moonshot/kimi-k3-1-pro",
"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": "moonshot/kimi-k3-1-pro",
"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": "moonshot/kimi-k3-1-pro",
"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 K3.1 Pro is Moonshot AI's most capable 3T-class open-weight model and the first model in the K3.1 series. It is a post-trained version of Kimi K3, built for coding, research and agentic tool use, with a 1,048,576-token context window.
Kimi K3.1 Pro takes text and image input and returns text. It supports reasoning, tool calling (including parallel tool calls), vision, structured output and streaming.
Kimi K3.1 Pro has a 1,048,576-token context window, enough to keep large codebases, long documents and multi-step agent sessions in a single request.
Kimi K3.1 Pro costs $2 per 1M input tokens, $0.20 per 1M cached input tokens and $10 per 1M output tokens. Reasoning tokens are billed at the output rate.
Kimi K3.1 Pro keeps the Kimi K3 architecture (2.8T total / 104B active parameters, 1M context) and adds substantially more post-training. Moonshot AI reports gains in long-horizon coding (61.2% vs 55.95% on Kimi Code Bench 3.0 Long-horizon), financial modeling and research, and a lower price than Kimi K3.
Send a request to the OpenAI-compatible chat completions endpoint https://api.aimlapi.com/v1/chat/completions with the model ID moonshot/kimi-k3-1-pro and your AI/ML API key.