9 releases (5 breaking)

0.7.2 Dec 29, 2024
0.4.0 Dec 4, 2024
0.3.0 Dec 4, 2024
0.2.0 Nov 30, 2024
0.0.8 Nov 16, 2024

#912 in Web programming

Download history 284/week @ 2024-11-12 19/week @ 2024-11-19 274/week @ 2024-11-26 287/week @ 2024-12-03 31/week @ 2024-12-10 81/week @ 2024-12-24 14/week @ 2024-12-31

127 downloads per month

MIT license

205KB
4K 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

v1.ai_image_upscaler

  • create - Create Upscaled Image

v1.ai_photo_editor

v1.ai_qr_code_generator

v1.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_background_remover

  • create - Image Background Remover

v1.image_projects

  • delete - Delete image
  • get - Get image details

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

  • delete - Delete video
  • get - Get video details

v1.video_to_video

  • create - Create Video-to-Video

Dependencies

~6–18MB
~252K SLoC