Open-weights chat model from Kimi. One API key reaches this provider and every other model in the catalog.
No card required. Start with 1 million free tokens.
About Kimi K2.7 Code
Kimi K2.7 Code is an open-weights chat model published by Kimi, with a 256,000-token context window. Through TrustedRouter it runs on 1 provider, with options in the US and EU, from $0.79 per million input tokens.
- Model ID
moonshotai/kimi-k2-7-code- Publisher
- Kimi
- Modes
- chat
- Billing
- Credits
Set it up with your agent
Paste this into Claude Code, Cursor or any coding agent.
Use Kimi K2.7 Code through TrustedRouter in this project.
1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
https://api.trustedrouter.com/v1 and read the key from
TRUSTEDROUTER_API_KEY.
3. Set the model to moonshotai/kimi-k2-7-code.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.trustedrouter.com/v1",
api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="moonshotai/kimi-k2-7-code",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api.trustedrouter.com/v1/chat/completions \
-H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k2-7-code",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'
Providers
Open the row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.
| Provider | Input | Cached | Output | Cost per 1M in + out | Details |
|---|---|---|---|---|---|
|
|
$0.791 | $0.169 | $3.69 | $4.48 | |
|
Retention Verification: no verified privacy claim. Mixed model-specific posture. TrustedRouter cannot independently verify a complete chain from a live Venice endpoint through immutable source and hardware measurements to committed model weights. Venice is therefore not tracked as confidential or E2EE. Exact routes marked Private in Venice's live catalog qualify only as policy-backed ZDR through endpoint-specific records; Anonymized routes do not. Location Operator country: US Headquarters / registered office: Not verified. Inference: Inference location not verified; no country-specific residency commitment. No inference-location declaration has been verified for this provider. Region pinning through TR: No verified provider-specific location pin documented here. Weight format Unknown Price and speed Input $0.79125/1M · Cached input $0.1688/1M · Output $3.6925/1M TTFT: insufficient data Speed: insufficient data |
|||||
Questions
What model ID should I use for Kimi K2.7 Code?
Use moonshotai/kimi-k2-7-code as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.
Do you log my prompts or outputs?
No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.
Which providers serve Kimi K2.7 Code?
TrustedRouter currently lists Venice for Kimi K2.7 Code. Provider availability and routing eligibility can change as catalog and health data update.
How much does Kimi K2.7 Code cost through TrustedRouter?
The current lowest Credits input price is $0.79125/1M and the lowest Credits output price is $3.6925/1M. Prices are per one million tokens and come from the current route catalog.
How do I require zero data retention for Kimi K2.7 Code?
Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.
Kimi K2.7 Code vs other models
Start building with Kimi K2.7 Code.
No card required. Start with 1 million free tokens.
