Skip to main content
Create an agent that generates videos using the Replicate API with the HunyuanVideo model.

Code

generate_video_using_replicate.py

Usage

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

Set both Replicate variables to the same value. The toolkit reads REPLICATE_API_KEY while the replicate client authenticates with REPLICATE_API_TOKEN.
4

Run Agent