Moondream API
Access Moondream 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: "moondream/moondream3.1-9b-a2b"
}).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: "moondream/moondream3.1-9b-a2b"
}).then(response => {
console.log(response);
});
</script>
</body>
</html>
List of Moondream Models
Moondream 3.1
moondream/moondream3.1-9b-a2b
Moondream 3.1 is a vision language model from Moondream (M87 Labs). It is a sparse mixture-of-experts model with 9B total and 2B active parameters, built around visual tasks such as question answering, captioning, object detection, pointing, and segmentation. On Moondream's preliminary benchmarks it scores 81.46 on COCO detection (Qwen3.5 27B scores 76.75), 74.61 on Dense200, and 86.01 on ChartQA (Qwen3.5 9B scores 70.72). Qwen3.5 9B scores higher on DocVQA (92.94 vs. 88.6) and GSM8K (89.46 vs. 63), and Moondream says math is not a primary target. It accepts text and image input and returns text, with a 32,000-token context window. Tool calling is not supported. It suits developers who need detection, counting, or chart reading from images, and not general text reasoning.
ChatMoondream 3 Preview
moondream/moondream3-preview
Moondream 3 Preview is a vision-language model from Moondream (M87 Labs). It is a mixture-of-experts model with 9B total parameters and about 2B active per token, and it accepts text and image input. It is built for visual tasks beyond captioning. It handles object detection from descriptive queries, pointing, structured output such as JSON with minimal prompting, and OCR, though very small fonts remain a weakness. It is a hybrid reasoning model, and its reasoning steps are tied to regions of the image. The context window is 32K tokens, but the team says post-training does not yet make full use of it, which is why this is a preview. It suits developers who need low-cost image understanding, detection, or document extraction through an API.
Frequently Asked Questions
The Moondream API gives you access to models for AI chat. Through Puter.js, you can start using Moondream models instantly with zero setup or configuration.
Puter.js supports a variety of Moondream models, including Moondream 3.1 and Moondream 3 Preview. 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 Moondream 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.