Skip to main content

VideoConfig

Defined in the video_agent module.
Configuration for video generation settings. Follows the Precedence Ladder pattern:
  • Instance > Config > Array > Dict > String > Bool > Default

Properties

seconds
Optional
No description available.
size
Optional
No description available.
input_reference
Optional
No description available.
timeout
int
No description available.
api_base
Optional
No description available.
api_key
Optional
No description available.
api_version
Optional
No description available.
poll_interval
int
No description available.
max_wait_time
int
No description available.
  • to_dict: Convert to dictionary for LiteLLM calls.

Usage

# Simple string (model name)
    VideoAgent(llm="openai/sora-2")
    
    # Bool (enable/disable - uses default model)
    VideoAgent(video=True)  # Uses default model
    
    # Dict
    VideoAgent(video={"seconds": "8", "size": "1280x720"})
    
    # Config instance
    VideoAgent(video=VideoConfig(seconds="16", size="720x1280"))