4 releases
new 0.0.8 | Nov 16, 2024 |
---|---|
0.0.7 | Nov 15, 2024 |
0.0.6 | Nov 15, 2024 |
0.0.5 | Nov 14, 2024 |
#634 in Web programming
277 downloads per month
120KB
2.5K
SLoC
Magic Hour API Rust SDK
Overview
Introduction
Magic Hour provides an API (beta) that can be integrated into your own application to generate videos using AI.
Webhook documentation can be found here.
If you have any questions, please reach out to us via discord.
Authentication
Every request requires an API key.
To get started, first generate your API key here.
Then, add the Authorization
header to the request.
Key | Value |
---|---|
Authorization | Bearer mhk_live_apikey |
Warning: any API call that renders a video will utilize frames in your account.
Example Client Initialization
let client = magic_hour::Client::default()
.with_bearer_auth(&std::env::var("API_TOKEN").unwrap());
SDK Usage
See SDK Examples for example usage of all SDK functionality
Dependencies
~7–18MB
~249K SLoC