Мазмұнға өту

Moondream3 Preview [Caption]

Интеграциялау

Модель идентификаторы 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 · Мәтін

Алғашқы нәтижеңіз осында пайда болады

Төменде сұрау құрып, оны API кілтіңізбен іске қосыңыз. Шығыстар сақтау орнымызға көшіріліп, мәңгі немесе 7 күн тегін сақталады.

Сұрау жасау

Басқару элементтері модель схемасынан жасалады. Оларды өзгерткен сайын код пен баға жаңартылады.

•міндетті image_url
Файлды тастаңыз немесе

Өңделетін кескінге сілтеме жасайтын URL.

Қосымша length · temperature · top_p
length әдепкі normal

Генерацияланатын жазудың қажетті ұзақтығы.

0-ден 1-ге дейінгі сэмплинг температурасы; мән берілмесе, әдепкісі 0. Жоғары мән, мысалы 0.8, кездейсоқтықты арттырады, ал төмен мән, мысалы 0.2, неғұрлым шоғырланған, детерминирленген шығыс береді.

0-ден 1-ге дейінгі nucleus sampling ықтималдық массасы.

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"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана localStorage ішінде сақталады. API кілтін алу

Moondream3 Preview [Caption] туралы

`image_url` арқылы кескін қабылдап, мәтіндік сипаттама қайтарады. `length` параметрі short, normal немесе long мәндерінің бірін таңдайды, әдепкісі normal. 0-ден 1-ге дейінгі міндетті емес `temperature` және `top_p` сэмплингті басқарады. Шығыс сипаттаманы, аяқталу себебін және пайдалану ақпаратын қамтиды.

Параметрлер

Канондық атауды немесе төл атауды жіберіңіз, екеуін қатар жібермеңіз. Канондық атаулар

АтауыТүрі ӘдепкіРұқсат етілген Сипаттама
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
0-ден 1-ге дейінгі nucleus sampling ықтималдық массасы.
міндетті Канондық атау, бұл да қабылданады

Файл параметрлері жалпыға қолжетімді https:// URL мекенжайын, 10 MB-қа дейінгі data: URI мекенжайын немесе жүктеп салынған файлдың 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-ай үшін ақылы) немесе аккаунт параметрі не ?storage= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдей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/kk/developers/models/moondream3-preview/caption.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt