17 releases (7 breaking)
new 0.9.1 | Feb 17, 2025 |
---|---|
0.8.5 | Feb 7, 2025 |
0.7.2 | Dec 29, 2024 |
0.2.0 | Nov 30, 2024 |
#877 in Web programming
909 downloads per month
215KB
4K
SLoC
Magic Hour Rust SDK
Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI.
Webhook documentation can be found here.
If you have any questions, please reach out to us via discord.
Install
cargo add magic_hour
Usage
use magic_hour;
let client = magic_hour::Client::default()
// generate your API Key at https://magichour.ai/developer
.with_bearer_auth("my api token");
[!WARNING] Any API call that renders a video will utilize frames in your account.
Module Documentation and Snippets
v1.ai_clothes_changer
- create - AI Clothes Changer
v1.ai_headshot_generator
- create - AI Headshots
v1.ai_image_generator
- create - AI Images
v1.ai_image_upscaler
- create - AI Image Upscaler
v1.ai_photo_editor
- create - AI Photo Editor
v1.ai_qr_code_generator
- create - AI QR Code
v1.animation
- create - Animation
v1.face_swap
- create - Face Swap video
v1.face_swap_photo
- create - Face Swap Photo
v1.files.upload_urls
- create - Generate asset upload urls
v1.image_background_remover
- create - Image Background Remover
v1.image_projects
v1.image_to_video
- create - Image-to-Video
v1.lip_sync
- create - Lip Sync
v1.text_to_video
- create - Text-to-Video
v1.video_projects
v1.video_to_video
- create - Video-to-Video
Dependencies
~6–19MB
~251K SLoC