Peke ki ngā ihirangi

Moondream3 Preview [Segment]

Whakauru

id tauira moondream3-preview/segment
# 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/segment?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",
    "object": "fox"
  }'

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

Tēnei tono: ≈$ 0.003 3 whiwhinga API · ≈ ₽ 0.32 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Moondream Whakatika Atahanga Ngā tāuru tohutoro #mask#segmentation

Ka wehewehe i tētahi ahanoa kua whakaingoatia i roto i te atahanga, ā, ka whakahoki kanohi, pouaka rohe me te ara SVG

Moondream · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana image_url
Whakataka he kōnae,

Te URL e tohu ana ki te atahanga hei tukatuka.

•e hiahiatia ana

Ahanoa whāia mō te wehewehe i roto i te atahanga.

Arā atu preview · spatial_references · settings

Arataki mokowā mō te wehewehe, ka tukuna hei rārangi Point objects ko x me y ōna mema, hei rārangi huinga taunga rānei. Me 2 floats (x,y), 4 floats (x1,y1,x2,y2) rānei kei ia huinga.

Ngā tautuhinga tauira wehewehe hei whakahaere i te tauira.

POST /run/moondream3-preview/segment?wait=20 utu → $ 0.003
# 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/segment?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",
    "object": "fox"
  }'

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Moondream3 Preview [Segment]

Ka wehewehe i te mea kua hoatu ki `object` i roto i te atahanga i `image_url`. Ka taea e te hua he atahanga kōpare, pouaka here me ngā raraunga ara SVG; he null ēnei mēnā kāore he mea i kitea. Mā `spatial_references` e tuku ngā pūwāhi hei arataki i te wehewehenga, ā, mā `settings` e whakarite te tīpako. Tautuhia `preview` kia whiwhi kōpare ā-rua.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
image_urle hiahiatia ana image
Momourl · image
Te URL e tohu ana ki te atahanga hei tukatuka.
objecte hiahiatia ana
Momostring
Ahanoa whāia mō te wehewehe i roto i te atahanga.
spatial_referenceskōwhiringa
Momoany[]
Arataki mokowā mō te wehewehe, ka tukuna hei rārangi Point objects ko x me y ōna mema, hei rārangi huinga taunga rānei. Me 2 floats (x,y), 4 floats (x1,y1,x2,y2) rānei kei ia huinga.
settingskōwhiringa
Momoobject
Ngā tautuhinga tauira wehewehe hei whakahaere i te tauira.
settings.temperaturekōwhiringa
Momonumber
Taunoa1
0 – 1
Ka whakarite te pāmahana tauira i te taurite i waenga i te putanga aronga, ū hoki i ngā tautuhinga iti me te matapōkeretanga nui i ngā tautuhinga teitei.
settings.top_pkōwhiringa
Momonumber
Taunoa1
0 – 1
Papatipu tūponotanga mō te tauira karihi, mai i te 0 ki te 1.
settings.max_tokenskōwhiringa
Momointeger | null
≥ 1
Te rohe runga mō ngā tohu kua whakaputaina.
previewkōwhiringa
Momoboolean
Taunoafalse
Mēnā ka whakahokia te kanohi ā-rua o te atahanga me te arokite putanga.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moondream3-preview/segment",
  "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": 3,
    "usd": "0.003",
    "charged": 3,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "object": "fox"
  },
  "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
    },
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768
    },
    "path": "M.657,.996C.610,.984,.529,.938,.447,.875C.411,.848,.363,.815,.341,.802C.188,.714,.093,.623,.038,.511C.011,.455,.000,.406,.000,.340C.000,.269,.006,.234,.025,.186C.051,.123,.092,.079,.161,.042C.240,-0.000,.355,-0.011,.433,.017C.462,.027,.535,.066,.571,.091C.701,.180,.807,.265,.850,.311C.911,.379,.962,.468,.984,.545C.995,.585,.997,.601,.997,.664C.997,.765,.984,.811,.935,.879C.878,.958,.796,1.001,.705,1.000C.685,.999,.664,.998,.657,.996z",
    "bbox": {
      "x_min": 1.0,
      "y_min": 1.0,
      "x_max": 1.0,
      "y_max": 1.0
    }
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
finish_reason
stringTake i mutu ai te whakaputa putanga.
usage_info
object {input_tokens, output_tokens, prefill_time_ms, decode_time_ms, ttft_ms}Ngā taipitopito whakamahinga tono.
image
object {url, content_type, file_name, file_size, width, height} | nullHua arokite wehewehe: null mēnā kāore i tonoa te whakaputa arokite, kāore rānei i kitea e te kimi ahanoa; ki te kore, he atahanga kei roto te kanohi.
path
string | nullRaraunga ara SVG i whakahokia ina kitea he kanohi wehewehe; ki te kore, null.
bbox
object {x_min, y_min, x_max, y_max} | nullPouaka here i whakahokia mō tētahi ahanoa kua kitea, kua wehea; ki te kore, null.

Ētahi atu tauira: Whakatika Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/moondream3-preview/segment.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt