コンテンツへスキップ

Moondream

統合

モデルID moondream/batched
# 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/batched?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      {
        "image_url": "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.004 4 APIクレジット このページで実行

APIキーを取得
Moondream ビジョン #multimodal#vision

プロンプトと画像URLのペアのリストを受け取り、多数の画像について1回の呼び出しで質問に回答

Moondream · データ (JSON)

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須

入力プロンプトと画像URLを含むリスト。

詳細設定 max_tokens · temperature · top_p · repetition_penalty
デフォルト 64

新たに生成するトークンの上限。

デフォルト 0.2

サンプリング温度の設定。

デフォルト 1

サンプリングのtop-P設定。

デフォルト 1

サンプリング中の反復に適用するペナルティ。

POST /run/moondream/batched?wait=20 見積もり → $0.004
# 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/batched?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      {
        "image_url": "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にのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Moondreamについて

Moondream視覚言語モデルのバッチ版です。`inputs`にプロンプトと画像URLを持つオブジェクトのリストを渡すと、生成結果のリスト、処理したファイル名、処理時間が返ります。生成は`max_tokens`(32~1024、デフォルト64)、`temperature`(0~1)、`top_p`、`repetition_penalty`(1~2)で調整します。レスポンスには結果が部分的かどうかを示すフラグも含まれます。

パラメータ

名前型 デフォルト許可される値 説明
inputs必須
型object[]
入力プロンプトと画像URLを含むリスト。
inputs[].image_url必須
型url · image
処理する画像を指すURL。
inputs[].prompt任意
型string
デフォルトDescribe this image.
画像に適用されたプロンプト。
max_tokens任意
型integer
デフォルト64
32 – 1,024
新たに生成するトークンの上限。
temperature任意
型number
デフォルト0.2
≤ 1> 0
サンプリング温度の設定。
top_p任意
型number
デフォルト1
0 – 1
サンプリングのtop-P設定。
repetition_penalty任意
型number
デフォルト1
1 – 2
サンプリング中の反復に適用するペナルティ。
必須

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moondream/batched",
  "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": 4,
    "usd": "0.004",
    "charged": 4,
    "refunded": 0
  },
  "input": {
    "inputs": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ]
  },
  "output": {
    "outputs": [
      "string"
    ],
    "partial": false,
    "timings": {},
    "filenames": [
      "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はストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
outputs
array of string生成された結果を含むリスト。
partial
boolean出力が不完全かどうかを示します。
timings
object個々の処理段階の時間計測。
filenames
array of string | null処理された画像ファイルの名前。

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/moondream/batched.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt