Kimi K2.7 Code
State-of-the-art open-source language model purpose-built for complex coding tasks. It excels at multi-step code reasoning, tool use, and long-horizon software development.
- Input price
- per 1M tokens
- Output price
- per 1M tokens
- Context
- 262K131.1K max output
- Cost / request
- 8K in · 500 out
01Routes and pricing
02Capabilities
- Input
- text
- Output
- text
- Context
- 262K
- Max output
- 131.1K
ReasoningTool callingStructured output
03Quick start
Call it with your RProuter key
Any OpenAI-compatible SDK works. Point it at the RProuter base URL from your API keys page and use this model ID.
Catalog source: inference.baseten.co · checked 2026-09-16
const response = await client.chat.completions.create({
model: "moonshotai/Kimi-K2.7-Code",
messages: [{ role: "user", content: "A story begins…" }],
max_tokens: 500,
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}