Background texture

GET /v1/queue/{model}/requests/{requestID}/content/{index}

GET/v1/queue/{model}/requests/{requestID}/content/{index}

生成された動画をバイナリストリームとしてダウンロードします。url 値は キュー結果 レスポンスで返されます。

リクエスト

パスパラメーター

パラメーター説明
modelstring動画モデル ID(例: veo-3)。
requestIDstring結果の data[].url に含まれるコンテンツ専用 ID。
indexinteger動画の 0 始まりインデックス。

ヘッダー

ヘッダー
AuthorizationBearer {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)`);