ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

MoonDreamNext Batch

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id 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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ: ≈$0.002 2 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

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

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

MoonDreamNext Batch ਬਾਰੇ

`images_data_url` ਵਿੱਚ ਦਿੱਤੇ ਚਿੱਤਰ URL ਦੀ ਸੂਚੀ 'ਤੇ ਇੱਕੋ `prompt` ਚਲਾਉਂਦਾ ਹੈ, ਪ੍ਰਤੀ ਬੇਨਤੀ ਵੱਧ ਤੋਂ ਵੱਧ 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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
captions_file
object {url, content_type, file_name, file_size}ਸਿਰਜੀ ਗਈ JSON ਕੈਪਸ਼ਨ ਫ਼ਾਈਲ ਦਾ URL, ਜੋ ਫ਼ਾਈਲਨਾਮਾਂ ਨੂੰ ਕੈਪਸ਼ਨਾਂ ਨਾਲ ਜੋੜਦੀ ਹੈ।
outputs
array of stringਤਿਆਰ ਕੀਤੀਆਂ ਕੈਪਸ਼ਨਾਂ, ਸੂਚੀ ਵਜੋਂ ਵਾਪਸ ਕੀਤੀਆਂ।

ਹੋਰ ਮਾਡਲ: ਵਿਜ਼ਨ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/moondream-next/batch.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt