Back to feed
Dev.to
Dev.to
7/28/2026
Moonshot API Complete Guide: From Kimi K2 to K3 and Beyond

Moonshot API Complete Guide: From Kimi K2 to K3 and Beyond

Short summary

A comprehensive guide to the Moonshot API ecosystem covering the evolution from Kimi K2 through K3, with code examples in Python and Node.js. K3 is a 2.8-trillion-parameter open-weight model with a 1M-token context window that leads on agentic benchmarks. The API is OpenAI-compatible but requires a Chinese phone number and Chinese payment methods for direct access, creating friction for international developers.

  • Kimi K3 is a 2.8T-parameter open-weight model with 1M context, leading on agentic benchmarks
  • Moonshot API is OpenAI-compatible — swap base URL to use existing SDKs
  • Direct API access requires Chinese phone number and payment methods, creating friction for non-Chinese developers

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more