Interface AnalyzeVideoResult

The result returned by analyzeVideo.

Extends the core VideoAnalysis with optional rich scene data when scene detection and description are enabled.

interface AnalyzeVideoResult {
    description: string;
    scenes?: SceneDescription[];
    objects?: string[];
    text?: string[];
    durationSec?: number;
    model?: string;
    provider?: string;
    fullTranscript?: string;
    ragChunkIds?: string[];
    providerMetadata?: Record<string, unknown>;
}

Properties

description: string

Free-form textual description / answer from the analyser.

scenes?: SceneDescription[]

Detected scene segments with timestamps.

objects?: string[]

Detected objects / entities across the video.

text?: string[]

Detected on-screen or spoken text (OCR / ASR).

durationSec?: number

Overall duration of the analysed video in seconds.

model?: string

Model that produced the analysis.

provider?: string

Provider that produced the analysis.

fullTranscript?: string

Full transcript when audio transcription was enabled.

ragChunkIds?: string[]

IDs of RAG chunks created, when indexForRAG was enabled.

providerMetadata?: Record<string, unknown>

Provider-specific metadata.