Skip to main content
POST
Video classification

Body

application/json

Request schema for video classification pipelines.

inputs
required

Video URL or local path (single or list). Required.

top_k
integer
default:5

Number of top labels to return.

num_frames
integer
default:16

Number of frames sampled from the video to run inference on.

frame_sampling_rate
integer
default:1

Sampling rate used to select frames from the video.

function_to_apply
enum<string>
default:softmax

Function to apply to raw model outputs to obtain scores.

Available options:
sigmoid,
softmax,
none

Response

200 - application/json

Video classification results

label
string

Predicted label name.

score
number

Confidence score (probability-like) for the label.