Skip to main content
Turn a text prompt into a video with a single function call.

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 a VideoResult 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:
Portrait orientation with a longer duration:
Give large videos more time:

Best Practices

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.
Longer duration values take more time to render. Increase timeout (e.g. 1200.0) to avoid premature timeouts.
Always pass a full LiteLLM route such as openai/sora-2. Bare names like sora are not valid routes and cause routing errors.
Use avideo_generate inside asyncio when generating multiple videos so requests do not block each other.

Videos CLI

Generate videos from the command line.

Video Overview

The VideoAgent SDK and providers.