Zum Hauptinhalt springen
DELETE
/
v1
/
videos
/
{video_id}
Delete a Video
curl --request DELETE \
  --url https://aihubmix.com/v1/videos/{video_id} \
  --header 'Authorization: Bearer <token>'
import requests

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

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

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

print(response.text)
{
  "object": "video.deleted",
  "deleted": true,
  "id": "<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 to delete.

Beispiel:

"video_123"

Antwort

Success

Confirmation payload returned after deleting a video.

object
enum<string>
Standard:video.deleted
erforderlich

The object type that signals the deletion response.

Verfügbare Optionen:
video.deleted
deleted
boolean
erforderlich

Indicates that the video resource was deleted.

id
string
erforderlich

Identifier of the deleted video.