Moonshot AI · model
Kimi K2.7 Code
Agentic coding, Long context, Tool use. Called through Final Router's one OpenAI-compatible endpoint at Moonshot AI's list price, with no markup on tokens.
moonshot/kimi-k2.7-codeCall Kimi K2.7 Code in one line
Kimi K2.7 Code speaks through the same OpenAI-compatible endpoint as every other model. Point your existing client at Final Router, set the model id, and you also get automatic fallback, spend caps and usage tracking - none of which the provider gives you directly.
from openai import OpenAI
client = OpenAI(
api_key="fr_live_...", # your Final Router key
base_url="https://finalrouter.com/api/v1" # the only line you change
)
resp = client.chat.completions.create(
model="moonshot/kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Data & residency
The international API (api.moonshot.ai) is run by their Singapore entity, which states data is stored on servers in Singapore. The parent company is Beijing-based; the .cn API is a separate service we do not call.
Training: may use prompts for training on the tier we route to. Retention: Input and generated content is used to optimise their models; kept as long as needed for the purposes in their policy, with no fixed period published.
Moonshot AI's policy, read 2026-08-24 →Route it, don't pin it
Name Kimi K2.7 Code as your first choice and let a policy fall back to another model when the provider is down - your request still gets answered, and the log shows exactly what happened.
Start freeKimi K2.7 Code FAQ
- How much does Kimi K2.7 Code cost through Final Router?
- $0.95 per million input tokens and $4 per million output tokens - the provider's own list price, with no markup on tokens. A 5.5% fee applies only when you add credits.
- What is Kimi K2.7 Code's context window?
- 262,144 tokens.
- Does Kimi K2.7 Code train on my data?
- On the tier we route to, Moonshot AI may use prompts for training - check which key you connected.
- How do I call Kimi K2.7 Code?
- Point any OpenAI-compatible client at https://finalrouter.com/api/v1 with your Final Router key and set model to "moonshot/kimi-k2.7-code". Your existing code does not change.
Compare with
All comparisonsAgentic coding · Huge context · Tool use
Agentic coding · Cheap · Tool use
Reasoning · Huge context · Very cheap
Huge context · Cheap · Reasoning
kimi-k2-7-codeLatency and quality are seed figures used for routing order, not billing. Prices are what you are charged.