Interface VideoAnalyzeRequest

Request payload for video analysis / understanding.

Passed to IVideoAnalyzer.analyzeVideo.

interface VideoAnalyzeRequest {
    videoUrl?: string;
    videoBuffer?: Buffer<ArrayBufferLike>;
    prompt?: string;
    modelId?: string;
    maxFrames?: number;
    providerOptions?: Record<string, unknown>;
}

Properties

videoUrl?: string

URL of the video to analyse. Mutually exclusive with videoBuffer.

videoBuffer?: Buffer<ArrayBufferLike>

Raw video bytes. Mutually exclusive with videoUrl.

prompt?: string

Text prompt / question to guide the analysis.

modelId?: string

Model identifier to use for analysis.

maxFrames?: number

Maximum number of frames to sample for analysis.

providerOptions?: Record<string, unknown>

Arbitrary provider-specific options.