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

Download history 277/week @ 2024-11-11 26/week @ 2024-11-18 268/week @ 2024-11-25 292/week @ 2024-12-02 32/week @ 2024-12-09 57/week @ 2024-12-23 38/week @ 2024-12-30 3/week @ 2025-01-06 772/week @ 2025-02-03 137/week @ 2025-02-10

909 downloads per month

MIT license

215KB
4K SLoC

Magic Hour Rust SDK

Crates.io Version

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

v1.ai_headshot_generator

v1.ai_image_generator

v1.ai_image_upscaler

v1.ai_photo_editor

v1.ai_qr_code_generator

v1.animation

v1.face_swap

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

v1.lip_sync

v1.text_to_video

v1.video_projects

  • delete - Delete video
  • get - Get video details

v1.video_to_video

Dependencies

~6–19MB
~251K SLoC