Kimi K2.7 Code

kimi/kimi-k2.7-code
Featured
VisionToolsJSONReasoning
by MoonshotAI · 2026-06-12

Kimi K2.7 Code is Moonshot AI's strongest coding model to date - a coding-focused agentic model built on Kimi K2.6, with a 1T-parameter Mixture-of-Experts architecture (32B active per pass) and a 256K-token context window. It delivers substantial gains on real-world long-horizon coding: stronger end-to-end task completion across complex software-engineering workflows, while cutting thinking-token usage by roughly 30% versus K2.6 for better token efficiency. The model is natively multimodal via the MoonViT vision encoder, accepting text, image, and video inputs with text output, and runs with thinking always on for deep agentic reasoning. It is purpose-built for autonomous coding agents and long-horizon software work - large multi-file changes, production-grade engineering tasks, and multi-step tool use - and integrates cleanly with agent harnesses and coding-agent frameworks.

ctx262.1K tokens
Max output262.1K
Inputtext + image + video
Outputtext
p50 TTFT4.54 s
INPUT$0.95/ 1M tokens
OUTPUT$4.00/ 1M tokens
p50 TTFT4.54 s7d
p95 TTFT10.00 s7d
TRAFFIC1.8Mtokens / 7d

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="kimi/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

  • frequency_penalty
  • logit_bias
  • logprobs
  • max_tokens
  • presence_penalty
  • reasoning
  • response_format
  • seed
  • stop
  • stream
  • structured_outputs
  • temperature
  • tool_choice
  • tools
  • top_logprobs
  • top_p

Pricing

Input / 1M tokens$0.950
Output / 1M tokens$4.00
Cache read / 1M$0.190
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $18.65 · With prompt caching $15.99

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.002019

Estimate only — actual token counts depend on the provider's tokenizer.

Performance

p50 TTFT
4.54 s
Output speed
52.4 tok/s
p95 TTFT
10.00 s
Error rate
0%

Public benchmarks

57.4
AA Coding
Better than 84% of models compared
#17 of 106
57.4
AA Intelligence
Better than 82% of models compared
#20 of 110
61.4
AA Math
Better than 47% of models compared
#43 of 81
GPQA Diamond
56.4 index
Kimi Claw 24/7 Bench
46.9
Kimi Code Bench v2
62.0
MCP Atlas
76.0
MCP Mark Verified
81.1
MLS Bench Lite
35.1
MMLU-Pro
66.4 index
Program Bench
53.6
τ²-Bench
51.4 index
Source: artificialanalysis.ai, moonshotai

How it compares

Kimi K2.7 CodeKimi K3kimi/kimi-k2.6kimi/kimi-k2.5
Input $/M$0.95$3.00$0.95$0.60
Output $/M$4.00$15.00$4.00$3.00
Context262K1.0M262K262K
Quality8/109/108/107/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

How much does MoonshotAI: Kimi K2.7 Code cost on OrcaRouter?
MoonshotAI: Kimi K2.7 Code is priced at $0.95 per 1M input tokens and $4.00 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is MoonshotAI: Kimi K2.7 Code's context window?
MoonshotAI: Kimi K2.7 Code supports a context window of 262K tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call MoonshotAI: Kimi K2.7 Code via the OpenAI SDK?
Set OpenAI base_url to https://api.orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="kimi/kimi-k2.7-code" in the chat.completions.create call.
Does OrcaRouter rate-limit MoonshotAI: Kimi K2.7 Code?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.

Embed this badge

MoonshotAI: Kimi K2.7 Code$0.95/M in4538ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/kimi/kimi-k2.7-code" target="_blank"> <img src="https://www.orcarouter.ai/embed/kimi/kimi-k2.7-code.svg" alt="MoonshotAI: Kimi K2.7 Code on OrcaRouter" /> </a>
Markdown [![MoonshotAI: Kimi K2.7 Code](https://www.orcarouter.ai/embed/kimi/kimi-k2.7-code.svg)](https://www.orcarouter.ai/models/kimi/kimi-k2.7-code)

Model card as data

GET /api/public/models/kimi/kimi-k2.7-codeOpen
Machine-readable:/llms.txt/llms-full.txt