Skip to main content

generate

Method
This is a method of the VideoAgent class in the video_agent module.
Generate a video from a text prompt.

Signature

Parameters

str
required
Text description of the desired video
Optional[str]
Video duration (e.g., “8”, “16”). Defaults to config value.
Optional[str]
Video dimensions (e.g., “720x1280”). Defaults to config value.
Optional
Reference image for image-to-video generation **kwargs: Additional provider-specific parameters

Returns

Any
VideoObject with id, status, and metadata

Usage

Uses

  • to_dict
  • Progress
  • SpinnerColumn
  • TextColumn
  • progress.add_task

Used By

Source

View on GitHub

praisonaiagents/agent/video_agent.py at line 289