POST
/
models
/
v2
/
ahmedabdo
/
video-classifier
video-classification
curl --request POST \
  --url https://api.bytez.com/models/v2/ahmedabdo/video-classifier \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://cdn.bytez.com/model/example/meditate.mp4",
  "base64": "data:video/mp4;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"
}'
{
  "error": "<string>",
  "output": [
    {
      "score": 0.635999858379364,
      "label": "LABEL_0"
    },
    {
      "score": 0.364000141620636,
      "label": "LABEL_1"
    }
  ]
}

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for video-classification models

url
string
required
Example:

"https://cdn.bytez.com/model/example/meditate.mp4"

base64
string
Example:

"data:video/mp4;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"

Response

Successful video-classification response.

error
string | null
required

Null on success; otherwise an error message.

output
any[]
required

Successful response with video-classification scores and labels

Example:
[
{
"score": 0.635999858379364,
"label": "LABEL_0"
},
{
"score": 0.364000141620636,
"label": "LABEL_1"
}
]