The client.video object allows you to process video files and extract structured data.

This feature is currently only available for our enterprise-tier customers. If you are interested in using this feature, please contact us.

Generate Predictions

from vlmrun.client import VLMRun
from vlmrun.client.types import PredictionResponse

# Initialize the client
client = VLMRun()

# Process a video file with a predefined schema
response: PredictionResponse = client.video.generate(
    video="path/to/video.mp4",
    domain="video.transcription",
)

Get Usage

from vlmrun.client.types import CreditUsage

usage: CreditUsage = response.usage
print(usage)