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
sourceURLretrieved
Release dateplatform.kimi.ai β†—2026-08-04verified
Architectureplatform.kimi.ai β†—2026-08-04verified
Context windowplatform.kimi.ai β†—2026-08-04verified
Thinking modeplatform.kimi.ai β†—2026-08-04verified
Training data cutoffβ€”β€”unknown
Licenseplatform.kimi.ai β†—2026-08-04verified
Kimi Code Bench v2platform.kimi.ai β†—2026-08-04verified
Program Benchplatform.kimi.ai β†—2026-08-04verified
MCP Mark Verifiedplatform.kimi.ai β†—2026-08-04verified
Kimi Claw 24/7platform.kimi.ai β†—2026-08-04verified
Kimi K2.7 Code API: 30% Fewer Thinking Tokens and a HighSpeed Variant Change Your Routing PolicyKimi Open Platform β†—2026-06-17verified
Kimi K2.7 Code API: Thinking-Only Constraint Changes How You Route Coding AgentsMoonshot AI β†—2026-06-13verified
Is moonshot/kimi-k2.7-code the right default for every coding request?platform.kimi.ai β†—2026-08-04to verify
Does this TheRouter route support image input?platform.kimi.ai β†—2026-08-04to verify
How is K2.7 Code priced on TheRouter?platform.kimi.ai β†—2026-08-04to verify
Help & contact