Getting started with the Hedra API is easy.
.env
in the project’s root directory and add the following line:uv
to install the required Python packages listed in pyproject.toml
:main.py
script using uv run
, providing the necessary arguments:--aspect_ratio
(Required): Aspect ratio for the video. Choices: 16:9
, 9:16
, 1:1
.* --resolution
(Required): Resolution for the video. Choices: 540p
, 720p
.* --text_prompt
(Required): Text prompt describing the desired video content (enclose in quotes if it contains spaces).* --audio_file
(Required): Path to the input audio file (e.g., .mp3
, .wav
).* --image
(Required): Path to the input image file (e.g., .png
, .jpg
).* --duration
(Optional): Desired duration for the video in seconds (float). Defaults to the length of the audio if not specified.* --seed
(Optional): Seed for the generation process (integer). Allows for reproducible results if the model and other parameters are the same.Example:asset_id.mp4
) to the project directory.