OpenAI compatible API. Attested gateway. Public status.

Kimi K2 Thinking API

OpenAI compatible quickstart for Kimi K2 Thinking on TrustedRouter.

Verify gateway
1 URLbase_url migration
100smodels and routes
0prompt logs by default

moonshotai/kimi-k2-thinking

API

All models

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-thinking",
    messages=[{"role": "user", "content": "Give me a one-sentence status."}],
    max_tokens=64,
)
print(response.choices[0].message.content)

Sign in

Choose a sign in method.