Model detail
Kimi K2.7 Code
MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts architecture that accepts text, image and video input, and it always operates in a thinking mode, preserving full reasoning content across multi-turn conversations. With a 256K-token context window, it targets long-horizon coding, agentic task decomposition, and multi-turn dialogue. The model activates 32B parameters out of roughly 1T total.
Model specs
- Model ID
-
kimi-k2.7-code
- Context length
- 262.144K
- Max output
- 16.384K
- I/O modalities
- Released
- 2026-06
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
OpenAI-compatible
/v1/chat/completionsPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$0.9500 /1M Tokens
Completion
$4.0000 /1M Tokens
Cache read
$0.1900 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
Coding model for coding and agentic tasks
Kimi K2.7 Code: Kimi's dedicated coding model. It follows instructions more reliably in long contexts, completes coding tasks with higher success rates. Context 256k. 256,000-token context.
What should you check before using it?
256,000 context, 16,384 output, text, image, video
Moonshot model. Supports tool calling and structured outputs. Knowledge cutoff: 2025-01.
Why use it through MixRoute?
Drop-in via OpenAI-compatible endpoint on MixRoute
Set the model parameter to "kimi-k2.7-code" and use your MixRoute API key.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Tool calling
Kimi K2.7 Code supports function and tool calls.
tools definition; the response returns tool_calls to execute and feed results back.
Structured output
Kimi K2.7 Code can produce JSON-formatted output on demand.
response_format: { type: "json_schema" } forces valid JSON output.
Streaming
Kimi K2.7 Code supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
Kimi K2.7 Code supports prompt caching under supported routing conditions.
Vision input
Kimi K2.7 Code can process image inputs alongside text.
image_url content part alongside text messages.
OpenAI SDK
Call Kimi K2.7 Code through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
Share of the same prefix read repeatedly, up to 100%
09
FAQ
MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI’s Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.