Enterprise-tier only. Contact us.
Generate Predictions
from pathlib import Path
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(
file=Path("path/to/video.mp4"),
domain="video.transcription",
)
Get Usage
from vlmrun.client.types import CreditUsage
usage: CreditUsage = response.usage
print(usage)