Agentic. LLM. Provider. Moonshot
(agentic v0.4.0)
Copy Markdown
Moonshot AI direct API provider — serves the Kimi K2 family.
OpenAI-compatible (POST {base_url}/chat/completions), so this reuses
the OpenAI Chat Completions transport. This is the direct API path
to Kimi's coding models, as an alternative to the :kimi CLI/ACP
wrapper (Agentic.LLM.Provider.Kimi) and the Anthropic-compatible
coding endpoint (Agentic.LLM.Provider.KimiCoding).
Endpoint
- Global:
https://api.moonshot.ai/v1 - China:
https://api.moonshot.cn/v1(override viaMOONSHOT_BASE_URL)
Auth: MOONSHOT_API_KEY (Authorization: Bearer <KEY>).
Models
The coding-optimised models are kimi-k2.7-code and
kimi-k2.7-code-highspeed. Thinking is always-on for the -code
variants — the model enables it internally; we do not send a
thinking parameter.
Quirks (from the pi reference implementation)
tool_choicemust be"auto"or"none"— never"required".max_tokensfield (notmax_completion_tokens).- No
strictmode on tool definitions. - Temperature is fixed per-model (e.g. 1.0 for k2.7-code); sending other values is rejected. Omit temperature unless overridden.
Model pricing per 1M tokens (USD) — see default_models/0.