Léim chuig an ábhar

Moondream3 Preview [Caption]

Comhtháthú

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

An t-iarratas seo: ≈$0.002 2 chreidmheas API · ≈ ₽0.21 Rith ar an leathanach seo

Faigh eochair API
Moondream Fís #vision

Scríobhann sé fotheideal d’íomhá i bhfad gearr, gnáth nó fada

Moondream · Téacs

Beidh do chéad toradh anseo

Tóg iarratas thíos agus rith é le d’eochair API. Cóipeáiltear na haschuir chuig ár stóráil, coinnithe go deo nó ar feadh 7 lá saor in aisce.

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach image_url
Scaoil comhad, nó

URL a dhíríonn chuig an íomhá le próiseáil.

Ardleibhéal length · temperature · top_p
length réamhshocrú normal

Fad inmhianaithe don fhotheideal ginte.

Teocht samplála, idir 0 agus 1; is é 0 an réamhshocrú nuair a fhágtar ar lár é. Méadaíonn luach níos airde ar nós 0.8 randamacht, agus táirgeann luach níos ísle ar nós 0.2 aschur níos dírithe agus níos cinntithí.

Mais dóchúlachta le haghaidh sampláil núicléasa, idir 0 agus 1.

POST /run/moondream3-preview/caption?wait=20 luachan → $0.002
# 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/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Moondream3 Preview [Caption]

Glacann sé íomhá ó `image_url` agus filleann sé fotheideal téacs. Roghnaíonn an rogha `length` gearr, gnáth nó fada, agus is é gnáth an réamhshocrú. Rialaíonn `temperature` agus `top_p` roghnach, idir 0 agus 1 araon, an sampláil. Áirítear san aschur an fotheideal mar aon le cúis chríochnaithe agus eolas úsáide.

Paraiméadair

Seol an t-ainm canónach nó an t-ainm dúchasach, ní an dá cheann. Ainmneacha canónacha

AinmCineál RéamhshocrúCeadaithe Cur síos
image_urlriachtanach image
Cineálurl · image
URL a dhíríonn chuig an íomhá le próiseáil.
lengthroghnach
Cineálenum
Réamhshocrúnormal
shortnormallong
Fad inmhianaithe don fhotheideal ginte.
temperatureroghnach
Cineálnumber | null
0 – 1
Teocht samplála, idir 0 agus 1; is é 0 an réamhshocrú nuair a fhágtar ar lár é. Méadaíonn luach níos airde ar nós 0.8 randamacht, agus táirgeann luach níos ísle ar nós 0.2 aschur níos dírithe agus níos cinntithí.
top_proghnach
Cineálnumber | null
0 – 1
Mais dóchúlachta le haghaidh sampláil núicléasa, idir 0 agus 1.
riachtanach Ainm canónach, glactar leis freisin

Glacann paraiméadair chomhaid le URL poiblí https://, URI data: suas le 10 MB, nó file_url uaslódála. Comhaid

Aschur

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
finish_reason
stringCúis ar tháinig deireadh le giniúint an aschuir.
usage_info
object {input_tokens, output_tokens, prefill_time_ms, decode_time_ms, ttft_ms}Sonraí úsáide an iarratais.
output
stringFotheideal ginte chun cur síos a dhéanamh ar an íomhá.

Tuilleadh samhlacha: Fís

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/moondream3-preview/caption.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt