This guide is based on Moondream's official documentation and model pages, checked on 6 December 2026. Memory figures marked as estimates are our own rough guidance, and we don't quote speed figures.
Moondream is a small vision language model from M87 Labs: you give it an image and it can caption it, answer questions about it, find objects and point to them. The current release is Moondream 3.1, and the older Moondream 2 is still available. Moondream's blog says the company was acquired by Prime Intellect in October 2026, but the open models and local tools are still published. If you'd rather start with general-purpose vision chatbots, our guide to using vision models in Ollama is a good alternative.
Which Moondream should you run?
Moondream 3.1 (9B-A2B) is a mixture-of-experts model with 9 billion parameters in total, of which about 2 billion are active at a time, according to M87 Labs. Most of its weights are stored in 8-bit FP8 format. Our estimate is that the weights alone take up roughly 10.5GB.
Moondream 2 has about 1.9 billion parameters stored at 16-bit precision, which by our estimate is roughly 3.9GB of weights. Its latest release is dated 21 June 2025.
Our Moondream 3.1 vs Moondream 2 comparison covers the differences in detail.
What you need
An NVIDIA graphics card (Ampere or newer) or an Apple Silicon Mac. Moondream's local engine, Photon, runs on NVIDIA GPUs on Windows (64-bit) or Linux, and on M-series Macs running macOS 13 or later. Moondream says any Ampere (RTX 30-series) or newer NVIDIA card should work, though its explicitly tested list is mostly data-centre and workstation cards.
Enough memory. Moondream doesn't publish a minimum for desktop graphics cards. Based on the weight sizes above, we'd plan on a 16GB card for Moondream 3.1, while Moondream 2 should fit comfortably on an 8GB card. On Macs, Moondream's own notes say a 16GB M4 Mac mini fits Moondream 2 but not Moondream 3, and list machines with 24GB or more for the larger model. Our best GPUs for Moondream guide goes into detail, and our guide to checking whether a model fits your GPU explains the maths.
Python 3.10 to 3.14.
No API key for the base models. Moondream says you only need a key from moondream.ai to run your own finetuned versions locally or to use its cloud service.
Step 1: Install Moondream with Photon
Moondream's Python package includes Photon. Install or update it with:
pip install --upgrade moondream
You may come across an older tool called Moondream Station. Moondream now marks it as deprecated and recommends Photon instead, so we'd skip it for new installs.
Step 2: Load the model
Moondream's quick-start loads Moondream 3.1 like this:
import moondream as md
from PIL import Image
model = md.photon("moondream3.1-9B-A2B")
To use the smaller model instead, replace the model name with "moondream2". The weights download from Hugging Face the first time you run it and are cached locally after that, so expect the first run to take a while. Running md.photon_models() lists the exact model names your installed version supports.
Step 3: Caption and ask questions
With an image loaded, the main skills are one line each:
image = Image.open("photo.jpg")
print(model.caption(image)["caption"])
print(model.query(image, "What's in this image?")["answer"])
Both caption and query can stream their answers word by word if you add stream=True. Moondream 3.1 can also handle text-only chat through model.chat.
Step 4: Find and point to objects
Moondream's party trick is returning structured positions rather than just text:
for obj in model.detect(image, "person")["objects"]:
print(obj)
for point in model.point(image, "person")["points"]:
print(point)
detect returns bounding boxes and point returns centre points. Photon also documents a segment skill that returns an outline as an SVG path. Not every model supports every skill, so Moondream suggests checking model.supports() before relying on one.
Easier option: Ollama
If you already use Ollama, ollama run moondream downloads a 1.7GB Moondream 2 build with a 2K context window. Be aware that the Ollama library page shows it was last updated two years ago, so it's an older version than the Hugging Face release, and the page doesn't document Moondream's detection and pointing skills. We'd use it for quick captions and questions.
Licence
Moondream 2 is Apache 2.0. Moondream 3.1 uses the Moondream Model License 1.0, which allows personal, internal and commercial use, fine-tuning and redistribution, but requires a separate licence if you offer general-purpose Moondream itself as a hosted service. Read the licence in full if you plan to build a product on it.