Kimi K2.7 Code
Provider list prices: no platform markup, pay-as-you-go. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing. Effective input at a 70% cache-hit rate:$0.418/M. Automatic caching with hit/miss pricing: cached input tokens bill at the discounted cache-hit rate, no cache management required.
Use Kimi K2.7 Code in 30 seconds
OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "kimi-k2.7-code",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "kimi-k2.7-code",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("kimi-k2.7-code")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));About Kimi K2.7 Code
Kimi K2.7 Code is Moonshot AI's coding-focused agentic model built upon Kimi K2.6, tuned for real-world software engineering.
- It keeps the 1T-parameter Mixture-of-Experts architecture with 32B activated per token and a 256K context, accepts image input alongside text, and always runs in thinking mode with reasoning content preserved across multi-turn conversations.
- Officially, it strengthens end-to-end task completion across complex software engineering workflows while using about 30% fewer thinking tokens than K2.6, and supports agentic tool use through the MCP ecosystem.
- Weights are open under a Modified MIT license.
- Access Kimi K2.7 Code on Synthorai through the OpenAI-compatible endpoint.
Specs & limits
| Max output (vendor spec) | 32,768 |
| Modalities | text + image + video → text |
| Parameters | 1T total · 32B active (MoE) |
| Features | tools · streaming · vision · reasoning |
| License | Modified-MIT ↗ |
| Notable | Coding-focused agentic model built on K2.6: 1T/32B active MoE, 256K context; thinking always on with preserved reasoning across turns; ~30% fewer thinking tokens vs K2.6. |
| Prompt caching | automatic |
FAQ
Is the Kimi K2.7 Code API free to try?
Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. At $0.95/M input tokens, that credit alone covers roughly 131 requests of ~8K tokens against Kimi K2.7 Code.
What is Kimi K2.7 Code best at?
About 30% fewer thinking tokens, plus reasoning preserved across multi-turn conversations and tuned for real-world software engineering. See the About section for the full picture from the vendor's own release notes.
How much does Kimi K2.7 Code cost?
Kimi K2.7 Code costs $0.95 per million input tokens and $4 per million output tokens on Synthorai. That is the provider's list price, with no platform markup. Cached input tokens bill at $0.19/M.
Does Kimi K2.7 Code support prompt caching?
Yes, automatically: Moonshot-served prompts cache with no code changes. Cached input tokens bill at $0.19/M vs $0.95/M uncached. Prompt caching guide →
How do I get access to Kimi K2.7 Code?
Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="kimi-k2.7-code", and you're done. One API key covers every model on the gateway.
Is Kimi K2.7 Code open source?
Yes: the weights are published under the Modified-MIT license. Or skip the GPUs: the hosted version here is pay-as-you-go with no infrastructure to run. Running open-weight models →