Zum Hauptinhalt springen
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>"
  }
}

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

video_id
string
erforderlich

The identifier of the video whose media to download.

Beispiel:

"video_123"

Abfrageparameter

variant
enum<string>

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

Verfügbare Optionen:
video,
thumbnail,
spritesheet

Antwort

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

The response is of type file.