Op den Inhalt sprangen

MoonDreamNext Batch

Integréieren

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

Dës Ufro: ≈0,002 $ 2 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Moondream Visioun #multimodal

Wendt ee Prompt gläichzäiteg op vill Biller un a gëtt Beschreiwungen als Lëscht an JSON-Datei zréck

Moondream · Donnéeën (JSON)

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Gemeinsame Prompt, deen op all Bild applizéiert gëtt.

•obligatoresch

Bild-URLen, déi fir d'Verschaffe geschéckt ginn, limitéiert op 32 Biller.

Erweidert max_tokens
Standard 64

Uewergrenz vun de generéierten Token.

POST /run/moondream-next/batch?wait=20 Präis → 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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer MoonDreamNext Batch

Féiert ee `prompt` iwwer eng Lëscht vun Bild-URLs aus, déi an `images_data_url` iwwermëttelt ginn, mat bis zu 32 Biller pro Ufro. `max_tokens` reecht vun 1 bis 512, Standard 64. D'Resultat ass en Array vu Beschreiwungen an e Link op eng JSON-Datei, déi Dateinimm mat Beschreiwunge verbënnt.

Parameteren

NummTyp StandardErlaabt Beschreiwung
images_data_urlobligatoresch
Typstring
Bild-URLen, déi fir d'Verschaffe geschéckt ginn, limitéiert op 32 Biller.
promptobligatoresch
Typstring
Gemeinsame Prompt, deen op all Bild applizéiert gëtt.
max_tokensoptional
Typinteger
Standard64
1 – 512
Uewergrenz vun de generéierten Token.
obligatoresch

Output

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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
captions_file
object {url, content_type, file_name, file_size}URL vun der generéierter JSON-Captions-Datei, déi Dateinimm mat Captions koppelt.
outputs
array of stringGeneréiert Captions, als Lëscht zréckginn.

Méi Modeller: Visioun

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/moondream-next/batch.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt