Back to Models
Kimi K2.7 Code
moonshotmoonshot/kimi-k2.7-code
How TheRouter serves this differently from the vendor
As the vendor operates it
Moonshot documents Kimi K2.7 Code as a Kimi-platform coding model with mandatory thinking, published pricing, and discussion of the wider K2.7 family including high-speed routing options.
On TheRouter
TheRouter currently publishes moonshot/kimi-k2.7-code as a text-to-text chat-completions route with 256K context, 65,536 max completion tokens, and TheRouter platform pricing from standard-models.yaml.
API guide
Chat completion
Use the standard TheRouter chat-completions endpoint for coding prompts.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"moonshot/kimi-k2.7-code","messages":[{"role":"user","content":"Review this diff for regressions."}]}'Tool calling
K2.7 Code is strongest when coding agents give it explicit tools rather than asking it to invent file state.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"moonshot/kimi-k2.7-code","messages":[{"role":"user","content":"Read src/router.ts and identify unsafe fallbacks."}],"tools":[{"type":"function","function":{"name":"read_file","description":"Read a project file","parameters":{"type":"object","properties":{"path":{"type":"string"}},"required":["path"]}}}]}'Related news
Fact ledger β every claim on this page traces here
| source | URL | retrieved | |
|---|---|---|---|
| Release date | platform.kimi.ai β | 2026-08-04 | verified |
| Architecture | platform.kimi.ai β | 2026-08-04 | verified |
| Context window | platform.kimi.ai β | 2026-08-04 | verified |
| Thinking mode | platform.kimi.ai β | 2026-08-04 | verified |
| Training data cutoff | β | β | unknown |
| License | platform.kimi.ai β | 2026-08-04 | verified |
| Kimi Code Bench v2 | platform.kimi.ai β | 2026-08-04 | verified |
| Program Bench | platform.kimi.ai β | 2026-08-04 | verified |
| MCP Mark Verified | platform.kimi.ai β | 2026-08-04 | verified |
| Kimi Claw 24/7 | platform.kimi.ai β | 2026-08-04 | verified |
| Kimi K2.7 Code API: 30% Fewer Thinking Tokens and a HighSpeed Variant Change Your Routing Policy | Kimi Open Platform β | 2026-06-17 | verified |
| Kimi K2.7 Code API: Thinking-Only Constraint Changes How You Route Coding Agents | Moonshot AI β | 2026-06-13 | verified |
| Is moonshot/kimi-k2.7-code the right default for every coding request? | platform.kimi.ai β | 2026-08-04 | to verify |
| Does this TheRouter route support image input? | platform.kimi.ai β | 2026-08-04 | to verify |
| How is K2.7 Code priced on TheRouter? | platform.kimi.ai β | 2026-08-04 | to verify |