### Install Dependencies with uv Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Use the 'uv sync' command to install all required Python packages listed in pyproject.toml. This command also handles virtual environment creation if needed. ```bash uv sync ``` -------------------------------- ### Clone Repository and Navigate Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Clone the Hedra API starter kit repository and change into the project directory. ```bash git clone cd hedra-api-starter ``` -------------------------------- ### Run Video Generation with Audio File Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Execute the main script with required arguments for aspect ratio, resolution, text prompt, an audio file, and an image. ```bash uv run main.py \ --aspect_ratio 9:16 \ --resolution 540p \ --text_prompt "A woman talking at the camera" \ --audio_file assets/audio.wav \ --image assets/9_16.jpg ``` -------------------------------- ### Run Video Generation with Text-to-Speech Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Generate a video using text-to-speech by providing a voice ID and the text to be spoken, along with other required parameters. ```bash uv run main.py \ --aspect_ratio 9:16 \ --resolution 540p \ --text_prompt "A woman talking at the camera" \ --voice_id "f412c62f-e94f-41c0-bfc6-97f63289941c" \ --voice_text "Hello! This is a demonstration of text-to-speech video generation." \ --image assets/9_16.jpg ``` -------------------------------- ### List Available Voices Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Before generating a video with text-to-speech, use this command to list all available voice IDs. ```bash uv run main.py --list_voices ``` -------------------------------- ### Configure Hedra API Key via .env File Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Alternatively, set your Hedra API key in a .env file in the project root. Ensure this file is added to .gitignore to prevent accidental commits. ```dotenv HEDRA_API_KEY=your_actual_api_key ``` -------------------------------- ### Set Hedra API Key via Environment Variable Source: https://github.com/hedra-labs/hedra-api-starter/blob/main/README.md Configure your Hedra API key by exporting it as an environment variable. This is one of the methods to authenticate with the API. ```bash export HEDRA_API_KEY='your_actual_api_key' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.