メインコンテンツへスキップ
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>"
  }
}

承認

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 to delete.

:

"video_123"

レスポンス

Success

Confirmation payload returned after deleting a video.

object
enum<string>
デフォルト:video.deleted
必須

The object type that signals the deletion response.

利用可能なオプション:
video.deleted
deleted
boolean
必須

Indicates that the video resource was deleted.

id
string
必須

Identifier of the deleted video.