تخطّي إلى المحتوى

MoonDreamNext Batch

التكامل

معرّف النموذج moondream-next/batch
# 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/moondream-next/batch?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

هذا الطلب: ≈⁨‏0.002 $⁩ 2 رصيدا API · ≈ ⁨‏0.21 ₽⁩ تشغيله في هذه الصفحة

الحصول على مفتاح API
Moondream الرؤية #multimodal

تطبيق مطالبة واحدة على صور عديدة دفعة واحدة وإرجاع التعليقات التوضيحية كقائمة وملف JSON

Moondream · بيانات (JSON)

ستظهر نتيجتك الأولى هنا

أنشئ طلبًا أدناه وشغّله باستخدام مفتاح API الخاص بك. تُنسخ المخرجات إلى تخزيننا، وتُحفظ إلى الأبد أو لمدة 7 أيام مجانًا.

إنشاء طلب

تُنشأ عناصر التحكم من مخطط النموذج. يتحدّث الرمز والسعر عند تغييرها.

•مطلوب

موجّه مشترك يُطبّق على كل صورة.

•مطلوب

عناوين URL للصور المقدمة للمعالجة، بحد أقصى 32 صورة.

متقدم max_tokens
الافتراضي 64

الحد الأقصى للرموز المُنشأة.

POST /run/moondream-next/batch?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.ru/v1/run/moondream-next/batch?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

تشغيل هذا الطلب

يبقى مفتاحك في هذا المتصفح: لا يُرسل إلا إلى Doitong API ويُحفظ في localStorage فقط إذا فعّلت خيار التذكّر. الحصول على مفتاح API

حول MoonDreamNext Batch

يشغّل `prompt` واحدًا على قائمة من عناوين URL للصور المرسلة في `images_data_url`، بحد أقصى 32 صورة لكل طلب. تتراوح `max_tokens` من 1 إلى 512، والافتراضي 64. النتيجة مصفوفة من التعليقات التوضيحية ورابط إلى ملف JSON يربط أسماء الملفات بالتعليقات.

المعاملات

الاسمالنوع الافتراضيمسموح الوصف
images_data_urlمطلوب
النوعstring
عناوين URL للصور المقدمة للمعالجة، بحد أقصى 32 صورة.
promptمطلوب
النوعstring
موجّه مشترك يُطبّق على كل صورة.
max_tokensاختياري
النوعinteger
الافتراضي64
1 – 512
الحد الأقصى للرموز المُنشأة.
مطلوب

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moondream-next/batch",
  "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": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "captions_file": {
      "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
    },
    "outputs": [
      "string"
    ]
  },
  "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"
  }
}
ملفاتك، خيارككل outputs[].url هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
captions_file
object {url, content_type, file_name, file_size}عنوان URL لملف JSON للتعليقات التوضيحية المُولّدة، الذي يقرن أسماء الملفات بالتعليقات.
outputs
array of stringالتعليقات التوضيحية المُنتجة، وتُعاد في قائمة.

مزيد من النماذج: الرؤية

لوكلاء الذكاء الاصطناعي: تتوفر هذه الصفحة بصيغة Markdown على https://doitong.com/ar/developers/models/moondream-next/batch.md. جميع النماذج والأدلة: https://doitong.com/developers/llms.txt