magic_hour 0.8.0

Rust API Client
Documentation

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_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