Home/Models/Kimi K2.7 Code
256K contextReasoningResponses API

Kimi K2.7 Code on QuickSilver Pro

Kimi K2.7 Code is Moonshot's coding-tuned K2 — the same trillion-parameter architecture (32B active, 256K context) as K2.6, retuned for long-horizon agentic coding. On QuickSilver Pro it is $0.6712 input / $3.35 output per million tokens, at parity with the OpenRouter endpoint selected by this route, with no markup or discount. Moonshot reports it uses ~30% fewer reasoning tokens per task than K2.6 while scoring higher on coding evals.

$0.6712 input · $3.35 output per 1M tokens
ByRaullen Chai·Updated

At a glance

Context
256K tokens
Input / 1M
$0.6712
Output / 1M
$3.35
Thinks by default
Yes

Long-horizon agentic coding — Moonshot's coding-tuned K2 with leaner reasoning-token overhead than K2.6.

Pricing comparison ($/1M tokens)

ProviderInputOutputvs QSP
QuickSilver Pro$0.6712$3.35—
OpenRouter (moonshotai/kimi-k2.7-code)$0.6712$3.35same

When to use

Reach for K2.7 Code as the engine behind a coding agent (opencode, Cline, Aider, and Claude-Code-style loops): multi-step refactors, repo-wide changes, and plan-then-act agents that coordinate many tool calls across a 256K-token working set. It's tuned for exactly the long-horizon agentic-coding trajectory where verbose reasoning gets re-read every turn — Moonshot reports higher coding-eval scores at ~30% fewer reasoning tokens than K2.6.

When to use something else

For routine chat, short-context codegen, or non-agentic single-shot tasks, the per-token price is overkill — DeepSeek V4 Flash ($0.06/$0.18) or V4 Pro ($0.70/$2.10) land most of those for less. For pure mathematical reasoning, DeepSeek V4 Pro. For general (non-coding) Opus-class agentic planning, Kimi K2.6 is the sibling to A/B against.

Quickstart (curl)

curl https://api.quicksilverpro.io/v1/chat/completions \
  -H "Authorization: Bearer $QSP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

OpenAI-compatible. One-line migration via base_url.

FAQ

Same K2 architecture — a trillion parameters, 32B active, 256K context — but K2.7 Code is retuned specifically for long-horizon agentic coding. Moonshot's published numbers show higher coding-eval scores (Kimi Code Bench v2, Program Bench, MLS Bench Lite) while emitting ~30% fewer reasoning tokens per task than K2.6. In agent loops the reasoning from each turn is re-read as input on the next, so fewer reasoning tokens means lower cost per completed task, not just per call. K2.6 is still the better pick for general (non-coding) agentic planning; A/B the two on your workload.

Yes — K2.7 Code is an OpenAI-compatible chat completions endpoint. Point your agent at base_url=https://api.quicksilverpro.io/v1, paste your QSP key, and set model="kimi-k2.7-code". Streaming, tool calling, and json_schema strict mode all work, and `usage.cost` is reported per response so you can watch cost-per-task directly.

$0.6712 input / $3.35 output and $0.18 cache read per million tokens, matching the route-selected OpenRouter endpoint (inceptron int4) with no markup or discount. The route uses its pinned provider order or the cheapest eligible endpoint under sort: price and its quantization filters; the /models headline can differ. More expensive fallback hosts do not change your price. Use base_url=https://api.quicksilverpro.io/v1 and model="kimi-k2.7-code".

No. K2.7 Code is always-thinking: `reasoning: { enabled: false }` is rejected. Omit sampling overrides unless they match Moonshot's fixed values: temperature=1.0, top_p=0.95, n=1, presence_penalty=0, and frequency_penalty=0. tool_choice supports `auto` or `none`.

Try Kimi K2.7 Code with double credits — up to $50 in bonus credits

Get API Key