OpenAI compatible API · Attested · Public status
Kimi-K2.7-Code API
OpenAI compatible quickstart for Kimi-K2.7-Code on TrustedRouter.
Onebase URL to migrate
100sof models and routes
Noneprompt logs by default
moonshotai/Kimi-K2.7-Code
open weights
API
AI IQ
IQ 118
#22 public AI IQ rank for kimi-k2.7-code
View AI IQ profile
Use the same OpenAI compatible clients you already use. Only the base URL and model change.
from openai import OpenAI
client = OpenAI(
base_url="https://api.trustedrouter.com/v1",
api_key="sk-tr-v1-..."
)
response = client.chat.completions.create(
model="moonshotai/Kimi-K2.7-Code",
messages=[{"role": "user", "content": "Give me a one-sentence status."}],
max_tokens=64,
)
print(response.choices[0].message.content)
Endpoint metadata: https://api.trustedrouter.com/v1/models/moonshotai/Kimi-K2.7-Code/endpoints