Neidio i'r cynnwys

Moondream3 Preview [Caption]

Integreiddio

ID y model 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"

Y cais hwn: ≈$0.002 2 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Moondream Gweledigaeth #vision

Yn ysgrifennu pennawd ar gyfer delwedd mewn hyd byr, normal neu hir

Moondream · Testun

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol image_url
Gollyngwch ffeil, neu

URL sy'n pwyntio at y ddelwedd i'w phrosesu.

Uwch length · temperature · top_p
length rhagosodedig normal

Hyd dymunol y capsiwn a gynhyrchir.

Tymheredd samplu, o 0 i 1; y rhagosodiad yw 0 pan gaiff ei hepgor. Mae gwerth uwch fel 0.8 yn cynyddu haprwydd, tra bod gwerth is fel 0.2 yn cynhyrchu allbwn mwy ffocwsog a phenderfynol.

Màs tebygolrwydd ar gyfer samplu niwclews, o 0 i 1.

POST /run/moondream3-preview/caption?wait=20 dyfynbris → $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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Moondream3 Preview [Caption]

Yn derbyn delwedd o `image_url` ac yn dychwelyd pennawd testun. Mae'r opsiwn `length` yn dewis byr, normal neu hir, gyda normal yn rhagosodiad. Mae `temperature` a `top_p` dewisol, y ddau o 0 i 1, yn rheoli samplu. Mae'r allbwn yn cynnwys y pennawd ynghyd â rheswm gorffen a gwybodaeth defnydd.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
image_urlgofynnol image
Mathurl · image
URL sy'n pwyntio at y ddelwedd i'w phrosesu.
lengthdewisol
Mathenum
Rhagosodedignormal
shortnormallong
Hyd dymunol y capsiwn a gynhyrchir.
temperaturedewisol
Mathnumber | null
0 – 1
Tymheredd samplu, o 0 i 1; y rhagosodiad yw 0 pan gaiff ei hepgor. Mae gwerth uwch fel 0.8 yn cynyddu haprwydd, tra bod gwerth is fel 0.2 yn cynhyrchu allbwn mwy ffocwsog a phenderfynol.
top_pdewisol
Mathnumber | null
0 – 1
Màs tebygolrwydd ar gyfer samplu niwclews, o 0 i 1.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
finish_reason
stringRheswm y daeth cynhyrchu allbwn i ben.
usage_info
object {input_tokens, output_tokens, prefill_time_ms, decode_time_ms, ttft_ms}Manylion defnydd y cais.
output
stringCapsiwn a gynhyrchwyd i ddisgrifio'r ddelwedd.

Mwy o fodelau: Gweledigaeth

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/moondream3-preview/caption.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt