GET /v1/queue/{model}/requests/{requestID}/content/{index}
GET
/v1/queue/{model}/requests/{requestID}/content/{index}生成された動画をバイナリストリームとしてダウンロードします。url 値は キュー結果 レスポンスで返されます。
リクエスト
パスパラメーター
| パラメーター | 型 | 説明 |
|---|---|---|
model | string | 動画モデル ID(例: veo-3)。 |
requestID | string | 結果の data[].url に含まれるコンテンツ専用 ID。 |
index | integer | 動画の 0 始まりインデックス。 |
ヘッダー
| ヘッダー | 値 |
|---|---|
Authorization | Bearer {api_key} |
このエンドポイントの requestID は、ステータス/結果エンドポイントで使用するものとは異なります。結果エンドポイントが返す data[].url に埋め込まれたコンテンツ専用 ID です。基本的には url 値をそのまま使用してください。
レスポンス
ヘッダー:
Content-Type: video/mp4
Content-Disposition: inline; filename="video-0.mp4"
ボディ: 生のバイナリ動画データ(MP4)。
ステータスコード
| ステータス | 説明 |
|---|---|
200 | 成功 — バイナリ動画ストリーム |
400 | 不正なリクエスト ID または content index |
401 | 認証なし |
502 | 上流プロバイダーからのダウンロードに失敗 |
例
# Use the url from the result response directly
curl -o video.mp4 \
"https://api.modelmax.io/v1/queue/veo-3/requests/{content_id}/content/0" \
-H "Authorization: Bearer $MODELMAX_API_KEY"
import requests
BASE = "https://api.modelmax.io"
headers = {"Authorization": "Bearer your-key"}
# result["data"][0]["url"] contains the full relative path
video_resp = requests.get(
f"{BASE}{result['data'][0]['url']}",
headers=headers,
)
with open("video.mp4", "wb") as f:
f.write(video_resp.content)
print(f"Saved video.mp4 ({len(video_resp.content)} bytes)")
import { writeFile } from "fs/promises";
const videoResp = await fetch(`${BASE_URL}${result.data[0].url}`, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
const buffer = Buffer.from(await videoResp.arrayBuffer());
await writeFile("video.mp4", buffer);
console.log(`Saved video.mp4 (${buffer.length} bytes)`);
