Kimi K2.7 Code · orcarouter
Kimi K2.7 Code is Moonshot AI's strongest coding model to date - a coding-focused agentic model built on Kimi K2.6, with a 1T-parameter Mixture-of-Experts architecture (32B active per pass) and a 256K-token context window. It delivers substantial gains on real-world long-horizon coding: stronger end-to-end task completion across complex software-engineering workflows, while cutting thinking-token usage by roughly 30% versus K2.6 for better token efficiency. The model is natively multimodal via the MoonViT vision encoder, accepting text, image, and video inputs with text output, and runs with thinking always on for deep agentic reasoning. It is purpose-built for autonomous coding agents and long-horizon software work - large multi-file changes, production-grade engineering tasks, and multi-step tool use - and integrates cleanly with agent harnesses and coding-agent frameworks.
Input, $/1M $0.95
Output, $/1M $4.00
Cache read $0.19
Cache write —
Context 262 144
Max output 262 144
Accepts image/bmp, image/gif, image/heic, image/heif, image/jpeg, image/png, image/webp, text, video/3gpp, video/avi, video/mov, video/mp4, video/mpeg, video/mpg, video/webm, video/wmv, video/x-flv
Last checked 04.11.2026 12:26:37 UTC
Source provider's page
Price alerts
API
OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://api.orcarouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "kimi/kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'Python
import requests
r = requests.post(
"https://api.orcarouter.ai/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "kimi/kimi-k2.7-code",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
},
)
print(r.json())JavaScript
const r = await fetch("https://api.orcarouter.ai/v1/chat/completions", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "kimi/kimi-k2.7-code",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}),
});
console.log(await r.json());Request (JSON)
{
"model": "kimi/kimi-k2.7-code",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Response (JSON)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "kimi/kimi-k2.7-code",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Aorcarouter%7Ckimi/kimi-k2.7-code, prices checked 2026-11-04; seller's page: https://orcarouter.ai/models/kimi/kimi-k2.7-code
Technical details
ID: offer:orcarouter|kimi/kimi-k2.7-code