שפּרינגען צו אינהאַלט

Moondream3 Preview [Caption]

אינטעגרירן

מאָדעל־id moondream3-preview/caption
# 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/caption?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"
  }'

# 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"

דער דאָזיקער ריקוועסט: ≈⁨$ 0.002⁩ 2 API־קרעדיטן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Moondream וויזיע #vision

שרײַבט אַ קאַפּשאַן פֿאַר אַ בילד אין קורצער, נאָרמאַלער אָדער לאַנגער לענג

Moondream · טעקסט

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט image_url
לייגט אַרײַן אַ טעקע, אָדער

URL וואָס ווײַזט צו דעם בילד פֿאַר פּראַסעסירן.

פֿאָרגעשריטן length · temperature · top_p
length סטאַנדאַרט normal

געווינשטע לענג פֿונעם גענערירטן קאַפּשן.

סאַמפּלינג־טעמפּעראַטור, פֿון 0 ביז 1; סטאַנדאַרט איז 0 ווען אויסגעלאָזט. אַ העכערע ווערט ווי 0.8 פֿאַרגרעסערט צופֿעליקייט, בשעת אַ נידעריקערע ווערט ווי 0.2 גיט מער פֿאָקוסירטן, דיטערמיניסטישן רעזולטאַט.

מסתּברקייט־מאַסע פֿאַר nucleus־סאַמפּלינג, פֿון 0 ביז 1.

POST /run/moondream3-preview/caption?wait=20 פּרײַז → ⁨$ 0.002⁩
# 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/caption?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"
  }'

# 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"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (localStorage) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Moondream3 Preview [Caption]

נעמט אַ בילד פֿון `image_url` און גיט אַרויס אַ טעקסט־קאַפּשאַן. די `length` אָפּציע קלײַבט קורץ, נאָרמאַל אָדער לאַנג, מיט נאָרמאַל ווי סטאַנדאַרט. אָפּציאָנעלע `temperature` און `top_p`, ביידע פֿון 0 ביז 1, קאָנטראָלירן סאַמפּלינג. דער רעזולטאַט נעמט אַרײַן די קאַפּשאַן פּלוס אַן ענד־סיבה און באַניץ־אינפֿאָרמאַציע.

פּאַראַמעטערס

שיקט אָדער דעם קאַנאָנישן נאָמען אָדער דעם נאַטיוון נאָמען, נישט ביידע. קאַנאָנישע נעמען

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
image_urlפארלאנגט image
טיפּurl · image
URL וואָס ווײַזט צו דעם בילד פֿאַר פּראַסעסירן.
lengthאָפּציאָנעל
טיפּenum
סטאַנדאַרטnormal
shortnormallong
געווינשטע לענג פֿונעם גענערירטן קאַפּשן.
temperatureאָפּציאָנעל
טיפּnumber | null
0 – 1
סאַמפּלינג־טעמפּעראַטור, פֿון 0 ביז 1; סטאַנדאַרט איז 0 ווען אויסגעלאָזט. אַ העכערע ווערט ווי 0.8 פֿאַרגרעסערט צופֿעליקייט, בשעת אַ נידעריקערע ווערט ווי 0.2 גיט מער פֿאָקוסירטן, דיטערמיניסטישן רעזולטאַט.
top_pאָפּציאָנעל
טיפּnumber | null
0 – 1
מסתּברקייט־מאַסע פֿאַר nucleus־סאַמפּלינג, פֿון 0 ביז 1.
פארלאנגט קאַנאָנישער נאָמען, אויך אַקצעפּטירט

טעקע־פּאַראַמעטערס נעמען אַן עפֿנטלעכע https:// URL, אַ data: URI ביז 10 MB, אָדער דעם file_url פֿון אַן אַרויפֿלאָד. טעקעס

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moondream3-preview/caption",
  "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": 2,
    "usd": "0.002",
    "charged": 2,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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": "A hedgehog is captured in a close-up shot, focusing on its face and nose. The hedgehog's spines are visible along its back, and its nose is dark and wet-looking. A gold ring with a small diamond is positioned on the grass in front of the hedgehog, partially obscured by its nose. The background is a blurred green grassy field, with small white flowers scattered throughout the grass."
  },
  "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"
  }
}
אייער טעקעס, אייער ברירהיעדער outputs[].url איז אַ קאַפּיע אין אונדזער סטאָרידזש: געהאַלטן אויף אייביק (באַצאָלט פּער GB־חודש) אָדער 7 טעג אומזיסט, לויט אײַער חשבון־באַשטעטיקונג אָדער ?storage=.
דער זעלבער פֿאָרעם בײַ יעדן מאָדעלtype, url, content_type, width, height און duration, סײַ פֿאַר בילדער, ווידעאָ און אַודיאָ. output איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
finish_reason
stringסיבה פֿאַר וואָס די רעזולטאַט־גענערירונג האָט זיך געענדיקט.
usage_info
object {input_tokens, output_tokens, prefill_time_ms, decode_time_ms, ttft_ms}דעטאַלן וועגן דעם באַניץ פֿון דער בקשה.
output
stringקאַפּשן גענערירט צו באַשרײַבן דאָס בילד.

מער מאָדעלן: וויזיע

פֿאַר AI־אַגענטן: דער בלאַט ווי Markdown געפֿינט זיך בײַ https://doitong.com/yi/developers/models/moondream3-preview/caption.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt