Skip to content

Moondream

Integrate

Model id moondream/batched
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/moondream/batched?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: ≈$0.004 4 API credits Run it on this page

Get API key
Moondream Vision #multimodal#vision

Answers questions about many images in one call by taking a list of prompt and image URL pairs

Moondream · Data (JSON)

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

List containing input prompts and URLs for images.

Advanced max_tokens · temperature · top_p · repetition_penalty
default 64

Upper limit on newly generated tokens.

default 0.2

Sampling temperature setting.

default 1

Sampling top-P setting.

default 1

Penalty applied to repetition during sampling.

POST /run/moondream/batched?wait=20 quote → $0.004
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/moondream/batched?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Moondream

A batch version of the Moondream vision-language model. Pass a list of objects in `inputs`, each holding a prompt and an image URL, and get back a list of generated outputs along with the processed filenames and timings. Generation is tuned with `max_tokens` (32 to 1024, default 64), `temperature` (0 to 1), `top_p` and `repetition_penalty` (1 to 2). The response also has a flag showing whether the result is partial.

Parameters

NameType DefaultAllowed Description
inputsrequired
Typeobject[]
List containing input prompts and URLs for images.
inputs[].image_urlrequired
Typeurl · image
URL pointing to the image for processing.
inputs[].promptoptional
Typestring
DefaultDescribe this image.
Prompt applied to the image.
max_tokensoptional
Typeinteger
Default64
32 – 1,024
Upper limit on newly generated tokens.
temperatureoptional
Typenumber
Default0.2
≤ 1> 0
Sampling temperature setting.
top_poptional
Typenumber
Default1
0 – 1
Sampling top-P setting.
repetition_penaltyoptional
Typenumber
Default1
1 – 2
Penalty applied to repetition during sampling.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moondream/batched",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 4,
    "usd": "0.004",
    "charged": 4,
    "refunded": 0
  },
  "input": {
    "inputs": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ]
  },
  "output": {
    "outputs": [
      "string"
    ],
    "partial": false,
    "timings": {},
    "filenames": [
      "string"
    ]
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
outputs
array of stringList containing the generated results.
partial
booleanIndicates whether the output is incomplete.
timings
objectTiming measurements for individual processing stages.
filenames
array of string | nullNames of the processed image files.

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/moondream/batched.md. All models and guides: https://doitong.com/developers/llms.txt