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 (first-frame) generation **kwargs: Additional provider-specific parameters, forwarded to LiteLLM. For Veo 3.1 interpolation/reference features, pass them here (no dedicated params are added to keep the surface lightweight): - last_frame=<image> # first + last frame (Veo 3.1 only) - reference_images=[…] # up to 3 reference images

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 303