Moonshot AI

Moonshot AI API

Access Moonshot AI instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.chat("Explain AI like I'm five!", {
    model: "moonshotai/kimi-k2"
}).then(response => {
    console.log(response);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain AI like I'm five!", {
            model: "moonshotai/kimi-k2"
        }).then(response => {
            console.log(response);
        });
    </script>
</body>
</html>

List of Moonshot AI Models

Chat

MoonshotAI: Kimi K2.5

moonshotai/kimi-k2.5

Kimi K2.5 is an open-source native multimodal model from Moonshot AI, built on Kimi K2 with ~15 trillion mixed visual and text tokens. It excels at visual coding (generating code from UI designs and video workflows), cross-modal reasoning, and features an innovative 'agent swarm' capability that decomposes complex tasks into parallel sub-tasks executed by dynamically instantiated agents.

Chat

MoonshotAI: Kimi K2 0905

moonshotai/kimi-k2-0905

Kimi K2 0905 is the September 2025 update to Kimi K2, extending context length from 128K to 256K tokens. It improves agentic coding accuracy, scaffold generalization, and frontend coding for web and 3D tasks while maintaining the same 1T parameter MoE architecture.

Chat

MoonshotAI: Kimi K2 Thinking

moonshotai/kimi-k2-thinking

Kimi K2 Thinking is Moonshot AI's most advanced open-source reasoning model, built on the 1T parameter MoE architecture with step-by-step chain-of-thought reasoning and dynamic tool invocation. It sets state-of-the-art records on HLE (44.9%) and BrowseComp (60.2%), maintaining stable behavior across 200-300 sequential tool calls.

Chat

MoonshotAI: Kimi K2 0711

moonshotai/kimi-k2

Kimi K2 is Moonshot AI's flagship 1-trillion-parameter mixture-of-experts (MoE) model with 32 billion active parameters, optimized for agentic capabilities including tool use, reasoning, and coding. It achieves state-of-the-art performance among non-thinking models on knowledge, math, and coding benchmarks with 128K context support.

Chat

MoonshotAI: Kimi Dev 72B

moonshotai/kimi-dev-72b

Kimi Dev 72B is a 72-billion-parameter open-source coding LLM by Moonshot AI, built on Qwen 2.5-72B and optimized via reinforcement learning for software engineering tasks like bug fixing and code generation. It achieves state-of-the-art 60.4% on SWE-bench Verified among open-source models, using a BugFixer and TestWriter dual-component framework.

Frequently Asked Questions

What is this Moonshot AI API about?

The Moonshot AI API gives you access to models for AI chat. Through Puter.js, you can start using Moonshot AI models instantly with zero setup or configuration.

Which Moonshot AI models can I use?

Puter.js supports a variety of Moonshot AI models, including MoonshotAI: Kimi K2.5, MoonshotAI: Kimi K2 0905, MoonshotAI: Kimi K2 Thinking, and more. Find all AI models supported by Puter.js in the AI model list.

How much does it cost?

With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.

What is Puter.js?

Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.

Does this work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Moonshot AI API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.