メインコンテンツへスキップ
GET
/
v1
/
videos
/
{video_id}
/
content
Download Video Content
curl --request GET \
  --url https://aihubmix.com/v1/videos/{video_id}/content \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://aihubmix.com/v1/videos/{video_id}/content"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
"<string>"
{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}
{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}
{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}
{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}
{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}
{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}

承認

Authorization
string
header
必須

Gateway-issued API key, formatted as sk-gateway-xxxxxxxx. Used by OpenAI-shaped endpoints (/v1/chat/completions, etc.).

パスパラメータ

video_id
string
必須

The identifier of the video whose media to download.

:

"video_123"

クエリパラメータ

variant
enum<string>

Which downloadable asset to return. Defaults to the MP4 video.

利用可能なオプション:
video,
thumbnail,
spritesheet

レスポンス

The video bytes or preview asset that matches the requested variant.

The response is of type file.