- 256K context
- Reasoning
- Responses 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.
- 256K context
- Tools
- Reasoning · on by default
- Streaming
- JSON Schema output
You pay · input / output per 1M
$0.6712 / $3.35
At list price
same rates as OpenRouter
Pricing comparison ($/1M tokens)
Bar length = price relative to the list price
| Provider | Input | Output | vs QSP |
|---|---|---|---|
| QuickSilver Pro | $0.6712 | $3.35 | — |
| OpenRouter(moonshotai/kimi-k2.7-code) | $0.6712 | $3.35 | same |
OpenRouter list source: openrouter.ai/api/v1/models/moonshotai/kimi-k2.7-code/endpoints
At a glance
- Context
- 256K tokens
- Input / 1M
- $0.6712
- Output / 1M
- $3.35
- Thinks by default
- Yes
- Latency · live
- —
Long-horizon agentic coding — Moonshot's coding-tuned K2 with leaner reasoning-token overhead than K2.6.
When is Kimi K2.7 Code the right call?
Curated from catalog capabilities and published prices, not a benchmark.
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.
- Long documents and codebases, up to 256K tokens of context
- Agents that call tools, with strict JSON Schema output
- Multi-step reasoning, on by default
- Responses API clients as well as Chat Completions
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.
- Output price matters mostKimi K2.6 costs 0.582× this model’s output price and keeps the 256K context.Kimi K2.6 $0.45 / $1.95 · 256K
- You need image inputKimi K3.1 Pro accepts image input, at 2.985× the output price.Kimi K3.1 Pro $2.00 / $10.00 · 1M
- You need a longer contextKimi K3 accepts 1M tokens, at 3.806× the output price.Kimi K3 $2.55 / $12.75 · 1M
Quickstart (curl)
Get an API key →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!"}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.quicksilverpro.io/v1",
api_key=os.environ["QSP_KEY"],
)
response = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.quicksilverpro.io/v1",
apiKey: process.env.QSP_KEY,
});
const response = await client.chat.completions.create({
model: "kimi-k2.7-code",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);curl https://api.quicksilverpro.io/v1/responses \
-H "Authorization: Bearer $QSP_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"input": "Hello!"
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.quicksilverpro.io/v1",
api_key=os.environ["QSP_KEY"],
)
response = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)OpenAI-compatible. One-line migration via base_url.
Gateway behavior
Compatibility notes for this model.
prompt- Prompts up to 256K tokens.
- /v1/chat/completions: Supported
- /v1/responses: Supported
- streaming: Supported
- tools: Supported
- image input: Not listed for this model
- JSON Schema: Supported
- reasoning: Supported
Where the price comes from
- Provider reference
- $0.6712 / $3.35openrouter.ai/api/v1/models/moonshotai/kimi-k2.7-code/endpoints
- Catalog verified
- Prompt cache · not compared
- $0.18 read
usage.cost = prompt_tokens × $0.6712/1M + completion_tokens × $3.35/1M
FAQ
Common questions
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.