Skip to content

Moondream 3 Preview [Query]

Integrate

Model id moondream3-preview/query
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/moondream3-preview/query?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

This request: ≈$0.001 1 API credit · ≈ ₽0.11 Run it on this page

Get API key
Moondream Vision #vision

Answers a free-form question about an image, with optional step-by-step reasoning output

Moondream · Text

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

Question to ask about the image.

•required image_url
Drop a file, or

URL pointing to the image for processing.

Advanced temperature · top_p · reasoning

Sampling temperature, ranging from 0 to 1; defaults to 0 when omitted. A higher value such as 0.8 increases randomness, while a lower value such as 0.2 produces more focused, deterministic output.

Probability mass for nucleus sampling, ranging from 0 to 1.

POST /run/moondream3-preview/query?wait=20 quote → $0.001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/moondream3-preview/query?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 3 Preview [Query]

Asks a question about the image in `image_url` through `prompt` and returns a text answer. The `reasoning` flag, on by default, also returns the reasoning behind the answer. Sampling can be adjusted with `temperature` and `top_p`, both between 0 and 1.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
image_urlrequired image
Typeurl · image
URL pointing to the image for processing.
promptrequired
Typestring
Question to ask about the image.
reasoningoptional
Typeboolean
Defaulttrue
Controls whether the answer includes detailed reasoning.
temperatureoptional
Typenumber | null
0 – 1
Sampling temperature, ranging from 0 to 1; defaults to 0 when omitted. A higher value such as 0.8 increases randomness, while a lower value such as 0.2 produces more focused, deterministic output.
top_poptional
Typenumber | null
0 – 1
Probability mass for nucleus sampling, ranging from 0 to 1.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moondream3-preview/query",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "finish_reason": "stop",
    "usage_info": {
      "input_tokens": 1,
      "output_tokens": 1,
      "prefill_time_ms": 1.0,
      "decode_time_ms": 1.0,
      "ttft_ms": 1.0
    },
    "output": "{\n  \"safety_measures\": [\n    \"Red hard hat\",\n    \"Safety glasses\"\n  ]\n}",
    "reasoning": "The worker is wearing a red hard hat for head protection and safety glasses for eye protection."
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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
finish_reason
stringReason that output generation ended.
usage_info
object {input_tokens, output_tokens, prefill_time_ms, decode_time_ms, ttft_ms}Request usage details.
output
stringResponse to the question about the image.
reasoning
string | nullDetailed explanation supporting the answer, when enabled.

More models: Vision

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