Kimi K2.7 Code
A coding model for tracing changes across a repository, calling development tools, and revising patches from test results.
Benchmarks
Artificial Analysis
- Terminal codingTerminal-Bench 4.1
- 1.0%
- Tool useAutomationBench-AA
- 24.5%
- Instruction followingIFBench
- 63.1%
- ReasoningHumanity’s Last Exam
- 35.0%
- Long contextAA-LCR v1.1
- 79.3%
Capabilities
- Tool Calling (supported)
- JSON Mode (not supported)
- Function Calling (supported)
- Vision (not supported)
- Streaming (supported)
- Reasoning (supported)
Model details
- Model size
- 1T parameters32B active per token
- Context window
- 262k
- Precision
- INT4
- Modalities
- Text Generation
Pricing
Per hour / month
Pay by the GPU-hour or reserve dedicated capacity by the month.
Mixlayer can tailor a deployment of Kimi K2.7 Code to your throughput targets, peak concurrency, privacy needs, and availability requirements.
Availability
Available for dedicated deployments only.
- Private deployment
- By request
- On-prem Enterprise
- By request
- Reserved capacity
- By request
Overview
Moonshot AI built Kimi K2.7 Code on Kimi K2.6 for software work that takes several rounds of investigation and editing. Its context window can hold an issue, the relevant source files, and the output from successive test runs, so the model can refer back to the original failure as it works.
On a dedicated Mixlayer deployment, a coding assistant can give Kimi tools to search a checkout, read a file, or run a test. Mixlayer streams Kimi’s function calls with their IDs. Your application runs each tool and returns its result, which gives Kimi evidence for its next edit.
Mixlayer serves this model with a context window of 262,144 tokens shared by the input and generated output.
Reasoning controls
Kimi reasons on every request. Its output budget covers both the reasoning and the final answer.
Read the model guideUse Cases
Performance engineering
Investigate a backend slowdown using profiler output, the affected source, and a repeatable benchmark. Kimi can work through changes with your test tools and return a patch with before-and-after measurements. Moonshot includes performance engineering in its coding evaluation.
Behavior-compatible software ports
Port an internal command-line tool to a new language while preserving what downstream scripts observe. Use the documentation and sample inputs to compare output files, error messages, and exit codes against the original. Moonshot evaluates this kind of reimplementation on Program Bench.
Machine-learning experiments
Compare two ways of augmenting images for a defect classifier. With access to the training scripts and evaluation tools, Kimi can implement each variation and report held-out accuracy against the same baseline. Moonshot evaluates experimental ML work on MLS-Bench Lite.
Quick Start
Once your dedicated deployment is active, create an API key and export it as MIXLAYER_API_KEY to send a request. Replace YOUR_DEPLOYMENT_MODEL with the model ID supplied with your deployment.
curl https://mixlayer.ai/v1/chat/completions \
-H "Authorization: Bearer $MIXLAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_DEPLOYMENT_MODEL",
"messages": [{"role": "user", "content": "Hello!"}]
}'FAQ
Should I use Chat Completions or Responses for a multi-turn conversation?
Use Chat Completions if your app already keeps the transcript. Send the earlier messages with each new turn. Use Responses if you want Mixlayer to carry the conversation forward. When your organization allows storage, set store to true and pass the resulting ID as previous_response_id on the next request. Compare conversation handling
Why did the reply stop before it finished?
Input and generated output share a context window of 262,144 tokens. Chat history and tool results use part of that space. On reasoning models, thinking also uses the output allowance, so a short visible answer can still exhaust it. If Chat Completions reports length in finish_reason, check both limits before retrying. Trim earlier messages or raise the output cap if there is room. How reasoning uses the output budget
How is Kimi K2.7 Code billed?
This model is available for dedicated deployments only. You pay for GPU capacity by the hour or reserve it by the month. Mixlayer sizes the deployment for the throughput, privacy, and availability you need. Mixlayer pricing
Can I look up the original input later to investigate a bad result?
By default, Mixlayer processes the input in memory and discards it and the result after inference. Keep the examples you need for evaluation in your own application. Your organization can also enforce zero retention for features that offer optional storage. Mixlayer’s retention controls
What should I compare if I already use Kimi K2.6 for coding?
Moonshot reports that K2.7 Code used about 30% fewer thinking tokens on its long-running coding tasks. To see whether that helps your agent, give both versions the same issue, tools, and test suite. Compare the patches that pass, then compare the thinking tokens and tool calls each one took. Moonshot’s K2.7 Code evaluation
When can my coding agent execute a tool call from a Kimi stream?
Mixlayer decodes Kimi’s tool calls into the Chat Completions format. While streaming, collect each call’s argument fragments by index and keep its ID. Once finish_reason is tool_calls, parse the completed arguments, run each tool, and return its result with the matching tool_call_id. Streaming tool calls
Can I size a dedicated Kimi deployment as if it were a 32B model?
Kimi activates about 32B parameters for each token. The deployment needs the weights for the full one-trillion-parameter model. When discussing capacity, include the lengths of your coding sessions and how many agents need to run at once. Both affect the memory needed to serve those conversations. Kimi’s model architecture