We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Moondream: Moondream 3.1

moondream/moondream3.1-9b-a2b
TextInput: text · imageReasoning32KAdded Oct 15, 2026

Try Moondream: Moondream 3.1 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Moondream: Moondream 3.1 at a glance

  • Input price is 33% lower than the median of 434 Text models.
  • Context window of 32,000 tokens, enough for long documents and multi-turn conversations.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.00542.

About Moondream: Moondream 3.1

Moondream: Moondream 3.1 is a vision-language model from Moondream, the same team behind the earlier Moondream releases. It is the successor to Moondream 3 Preview, and it uses a mixture-of-experts design with 9B total parameters and 2B active parameters. That combination means the model carries a large overall capacity while only activating a smaller slice of it per request, which is a common way to keep inference efficient without shrinking the model's knowledge. It sits in the text category on api14, but its defining trait is that it reads images as well as text.

On the input side, Moondream 3.1 accepts both text and images, and it produces text only. Its context window is 32,000 tokens, and the maximum output length is 4,096 tokens. The provider describes the model as covering visual question answering, captioning, and OCR, among other tasks. Those are the core vision-language behaviours: answering questions about what is in an image, generating a written description of an image, and extracting text that appears inside an image. Because the context window is shared between the image input and the text prompt, larger or more numerous images leave less room for instructions and conversation history.

The practical use cases follow directly from those capabilities. Visual question answering suits interactive tools where a user uploads a photo or screenshot and asks about its contents. Captioning fits pipelines that need alt text, media descriptions, or short summaries of image assets. OCR is useful for pulling text out of scans, screenshots, forms, or photographs of documents, and for feeding that text into later steps. Because the model also takes ordinary text, it can handle a mixed prompt where the instruction and the image arrive together, which keeps integration simple for document and image review workflows.

You call it through api14's OpenAI-compatible API using the model id "moondream/moondream3.1-9b-a2b". The supported request parameters are include_reasoning, max_completion_tokens, max_tokens, reasoning, temperature, and top_p. Temperature and top_p control sampling, while the token parameters cap the length of the generated response. The reasoning and include_reasoning parameters relate to exposing the model's reasoning behaviour, so check how your client handles them if you do not need that output. Since the interface is OpenAI-compatible, existing SDKs and chat-style request shapes generally work without changes beyond the model id and the image content in the message.

Keep the limits in mind when choosing this model. The 32,000 token context and 4,096 token output ceiling are the hard boundaries, so very long documents or long multi-turn image conversations may need chunking or trimming. The output is text only, so it will not generate or edit images. If your task is purely text and does not involve images, a text-only model may be a simpler fit; Moondream 3.1 is most valuable when the request actually contains an image to interpret.

How to call the Moondream: Moondream 3.1 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "moondream/moondream3.1-9b-a2b".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "moondream/moondream3.1-9b-a2b",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoningmax_completion_tokensmax_tokensreasoningtemperaturetop_p

Specifications

Context length
32,000
Max output
4,096
Input
text, image
Output
text

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Moondream: Moondream 3.1: frequently asked questions

How much does the Moondream: Moondream 3.1 API cost?
Moondream: Moondream 3.1 costs Input $1.05 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Moondream: Moondream 3.1?
Moondream: Moondream 3.1 reads up to 32,000 tokens per request: prompt, history and documents together. It writes up to 4,096 output tokens per response.
What can Moondream: Moondream 3.1 do?
Moondream: Moondream 3.1 accepts text, image and returns text. It supports reasoning effort control.
How do I call Moondream: Moondream 3.1 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "moondream/moondream3.1-9b-a2b". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Moondream: Moondream 3.1?
Comparable Text models at a similar price: Moondream: Moondream 3 Preview, Google: Gemini 3.5 Flash Lite, Amazon: Nova 2 Lite. Each runs through the same API key, so switching is one string.

Moondream: Moondream 3.1 community

New topic

This community has no topics yet. Open the first one about Moondream: Moondream 3.1.