Op den Inhalt sprangen

Moondream 3 Preview [Query]

Integréieren

Modell-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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro: ≈0,001 $ 1 API-Kredit Op dëser Säit ausféieren

API-Schlëssel kréien
Moondream Visioun #vision

Beäntwert eng fräi formuléiert Fro iwwer e Bild, mat optionaler Schrëtt-fir-Schrëtt-Begrënnung

Moondream · Text

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Fro iwwer d'Bild.

•obligatoresch image_url
Fichier erofzéien, oder

URL, déi op d'Bild fir d'Veraarbechtung weist.

Erweidert temperature · top_p · reasoning

Sampling-Temperatur vun 0 bis 1; Standard ass 0, wann se feelt. E méi héije Wäert wéi 0.8 erhéicht den Zoufall, e méi nidderege wéi 0.2 produzéiert méi fokusséierten, deterministeschen Output.

Wahrscheinlechkeetsmass fir Nucleus-Sampling, vun 0 bis 1.

POST /run/moondream3-preview/query?wait=20 Präis → 0,001 $
# 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/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Moondream 3 Preview [Query]

Stellt iwwer `prompt` eng Fro zum Bild an `image_url` a gëtt eng Textäntwert zréck. De Fändel `reasoning`, deen als Standard aktiv ass, gëtt och d'Begrënnung hannert der Äntwert zréck. D'Sampling kann mat `temperature` an `top_p`, allebéid tëscht 0 an 1, ugepasst ginn.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
image_urlobligatoresch image
Typurl · image
URL, déi op d'Bild fir d'Veraarbechtung weist.
promptobligatoresch
Typstring
Fro iwwer d'Bild.
reasoningoptional
Typboolean
Standardtrue
Steiert, ob d'Äntwert eng detailléiert Begrënnung enthält.
temperatureoptional
Typnumber | null
0 – 1
Sampling-Temperatur vun 0 bis 1; Standard ass 0, wann se feelt. E méi héije Wäert wéi 0.8 erhéicht den Zoufall, e méi nidderege wéi 0.2 produzéiert méi fokusséierten, deterministeschen Output.
top_poptional
Typnumber | null
0 – 1
Wahrscheinlechkeetsmass fir Nucleus-Sampling, vun 0 bis 1.
obligatoresch Kanoneschen Numm, och akzeptéiert

Fichierparameter akzeptéieren eng ëffentlech https:// URL, eng data: URI bis zu 10 MB oder de file_url vun engem Upload. Fichieren

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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
finish_reason
stringGrond, firwat d'Output-Generatioun opgehalen huet.
usage_info
object {input_tokens, output_tokens, prefill_time_ms, decode_time_ms, ttft_ms}Detailer zur Notzung vun der Ufro.
output
stringÄntwert op d'Fro iwwer d'Bild.
reasoning
string | nullDetailléiert Erklärung, déi d'Äntwert ënnerstëtzt, wann aktivéiert.

Méi Modeller: Visioun

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/moondream3-preview/query.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt