Skip to main content

Moonshot AI (Kimi)

Moonshot provides the Kimi API with OpenAI-compatible endpoints. Configure the provider and set the default model to moonshot/kimi-k2-0905-preview, or use Kimi Code with kimi-code/kimi-for-coding. Current Kimi K2 model IDs:
  • kimi-k2-0905-preview
  • kimi-k2-turbo-preview
  • kimi-k2-thinking
  • kimi-k2-thinking-turbo
Kimi Code:
Note: Moonshot and Kimi Code are separate providers. Keys are not interchangeable, endpoints differ, and model refs differ (Moonshot uses moonshot/..., Kimi Code uses kimi-code/...).

Config snippet (Moonshot API)

Kimi Code

Notes

  • Moonshot model refs use moonshot/<modelId>. Kimi Code model refs use kimi-code/<modelId>.
  • Override pricing and context metadata in models.providers if needed.
  • If Moonshot publishes different context limits for a model, adjust contextWindow accordingly.
  • Use https://api.moonshot.cn/v1 if you need the China endpoint.