Moonshot (Kimi)
Moonshot (Kimi)
Configure jambonz to use Moonshot AI’s Kimi models over its OpenAI-compatible API.
Moonshot AI serves its Kimi models (including the Kimi K2 mixture-of-experts family) behind an OpenAI-compatible API. The wire is OpenAI-compatible (chat completions, streaming, tools), so the integration is straightforward — jambonz talks to it via a base URL override.
Two endpoints are available:
- Global (default) —
https://api.moonshot.ai/v1 - China —
https://api.moonshot.cn/v1
Get credentials
- Sign in at the global console (platform.moonshot.ai) or the China console (platform.moonshot.cn).
- Open API Keys and create a key.
- Copy the value — it is shown only once.
Configure in jambonz
In the portal: Account → LLM Services → + Add LLM Service → Moonshot.
The key from Moonshot’s console.
Defaults to https://api.moonshot.ai/v1 (global). Set to https://api.moonshot.cn/v1 for the China endpoint, or to your own proxy.
Click Test to verify.
Use in an agent verb
Available models
Check GET /v1/models against your endpoint for the live list.
Quirks & errors
Global vs China: keep vendor: 'moonshot' constant — only the Base URL (in the portal credential) differs between the two regions. Keys are not interchangeable across endpoints.
401 — key revoked, copied with whitespace, or used against the wrong region’s endpoint. Regenerate in the Moonshot console and confirm the Base URL matches the console you created the key in.