heygen
heygen is a Rust SDK for interacting with the HeyGen API, providing an ergonomic and type-safe way to create and manage AI-generated videos.
High level features
- Create AI-generated avatar videos with comprehensive configuration options
- Manage templates for premium HeyGen creators
- Handle webhook registrations and notifications
- List and retrieve video details and status
- Fully typed responses and error handling
- Built on top of
reqwestfor reliable HTTP communication
Usage example
use HeyGenBot;
use json;
async
Features
Video Generation
- Create avatar videos with customizable parameters
- Generate videos from templates (premium feature)
- Monitor video generation status
- List all generated videos
Template Management
- List available templates
- Retrieve template details
- Generate videos from existing templates
Webhook Management
- Register webhook endpoints
- List registered webhooks
- Update webhook configurations
- Delete webhook registrations
Avatar Management
- List all available avatars
Examples
The examples directory contains various examples showcasing different features:
To run an example use cargo run --example <example_file_name>
Getting Started
Add this to your Cargo.toml:
[]
= "0.1.0"
Documentation
For detailed documentation and API reference, check out heygen API.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in heygen by you shall be licensed as MIT, without any additional
terms or conditions.