8 releases (4 breaking)
0.4.0 | Dec 4, 2024 |
---|---|
0.3.0 | Dec 4, 2024 |
0.2.0 | Nov 30, 2024 |
0.1.0 | Nov 26, 2024 |
0.0.8 | Nov 16, 2024 |
#872 in Web programming
736 downloads per month
185KB
3.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());
Module Documentation and Snippets
v1.ai_headshot_generator
- create - Create AI Headshots
v1.ai_image_generator
- create - Create AI Images
v1.ai_image_upscaler
- create - Create Upscaled Image
v1.ai_photo_editor
- create - AI Photo Editor
v1.ai_qr_code_generator
- create - Create AI QR Code
v1.animation
- create - Create Animation
v1.face_swap
- create - Create Face Swap video
v1.face_swap_photo
- create - Create Face Swap Photo
v1.files.upload_urls
- create - Generate asset upload urls
v1.image_projects
v1.image_to_video
- create - Create Image-to-Video
v1.lip_sync
- create - Create Lip Sync video
v1.text_to_video
- create - Create Text-to-Video
v1.video_projects
v1.video_to_video
- create - Create Video-to-Video
Dependencies
~6–18MB
~250K SLoC