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
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.
ChatMoonshotAI: 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.
ChatMoonshotAI: 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.
ChatMoonshotAI: 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.
ChatMoonshotAI: 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
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.
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.
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.
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.
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.