Quick Start
1
Generate a video
Omit
model to use the canonical default openai/sora-2.2
Async generation
How It Works
The prompt is sent to a LiteLLM video route, and aVideoResult is returned with the video URL or job ID.
Configuration Options
The
VideoResult object exposes url, id, status, model, and metadata.
Common Patterns
Choose a specific model:Best Practices
Rely on the default model
Rely on the default model
Omit
model to use openai/sora-2, the canonical default shared by every video surface (SDK, capability, MCP, CLI). Only set model when you need a different provider route.Raise the timeout for long videos
Raise the timeout for long videos
Longer
duration values take more time to render. Increase timeout (e.g. 1200.0) to avoid premature timeouts.Use provider-prefixed routes
Use provider-prefixed routes
Always pass a full LiteLLM route such as
openai/sora-2. Bare names like sora are not valid routes and cause routing errors.Prefer async for batches
Prefer async for batches
Use
avideo_generate inside asyncio when generating multiple videos so requests do not block each other.Related
Videos CLI
Generate videos from the command line.
Video Overview
The VideoAgent SDK and providers.

