Moonshot AI

Moonshot AI API

Add AI to your application with Moonshot AI.
Access Moonshot AI through a single API with puter.js.

Get Started View Tutorial

AI Chat API

Top-Tier Coding Performance

Kimi K2 and Kimi-Dev-72B are specifically optimized for software engineering tasks. They rank among the best on coding benchmarks like SWE-Bench, excelling at code generation, debugging, and complex programming workflows.

Massive 128K Context Window

Handle long codebases, extensive documentation, or multi-file projects in a single prompt. Great for understanding large repositories or lengthy technical documents.

Built-In Reasoning (Thinking Mode)

Kimi-K2-Thinking offers chain-of-thought reasoning that "thinks through" complex problems step-by-step before responding—ideal for math, logic, and multi-step coding challenges.

MoE Architecture for Speed

Kimi K2 uses a Mixture-of-Experts (MoE) architecture with 1 trillion total parameters but only 32B active per token, delivering powerful performance with fast inference speeds.

Agentic & Tool Use Ready

Strong instruction-following and function-calling capabilities make Kimi models well-suited for building AI agents that can take actions, use tools, and handle multi-step workflows.

Multilingual Support

Strong performance across English, Chinese, and other languages—ideal for building global applications or working with multilingual codebases and documentation.

Moonshot AI Models

Access all Moonshot AI models through a single API.

Kimi K2

Flagship model with balanced performance for general tasks and multilingual support.

moonshotai/kimi-k2

Kimi K2 Thinking

Extended reasoning mode with chain-of-thought for complex problem-solving.

moonshotai/kimi-k2-thinking

Kimi Dev 72B

Specialized for software engineering, code generation, and debugging tasks.

moonshotai/kimi-dev-72b

Kimi K2 (Free)

Free tier access to Kimi K2 capabilities for getting started.

moonshotai/kimi-k2:free

Kimi K2 0905

September 2025 release with refined capabilities and performance improvements.

moonshotai/kimi-k2-0905

Kimi Linear 48B

Optimized for high performance and cost efficiency at scale.

moonshotai/kimi-linear-48b-a3b-instruct

Add AI Chat in Seconds

Add Moonshot AI to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum entanglement in simple terms", {
            model: "moonshotai/kimi-k2"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →