Skip to content
FluxCDNFluxCDN
esc

Moondream: Moondream 3.1

Moondream 3.1 is a vision-language model from Moondream, the successor to Moondream 3 Preview, with 9B total parameters and 2B active (mixture-of-experts).

Input
109,312 Toman/M tokens
Output
901,824 Toman/M tokens
Context
32K
Max output
4K
Published
Oct 15, 2026
Maker
Moondream

Free plan prices, in Toman at today's rate. Plans and prices

Price by plan

Toman per million tokens at today's rate. A plan lowers the price of your usage up to a limit each period.

PlanInputOutput
Free109,312901,824
Pro104,832864,864
Max100,352827,904

Capabilities

  • Text
  • Vision
  • Reasoning

What it takes and gives

Accepts
  • Text
  • Image
Creates
  • Text

Every input listed here works through the API and the playground: images and PDFs as data URLs or https links, audio as base64, video as a data URL or a link the model supports.

Call it

Pass moondream/moondream3.1-9b-a2b as the model name, or let router/auto choose for you.

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://ai.fluxcdn.cloud/api/v1",
    api_key=os.environ["FLUXCDN_API_KEY"],
)

resp = client.chat.completions.create(
    model="router/auto",
    messages=[{"role": "user", "content": "Hello"}],
)

print(resp.choices[0].message.content)