magic_hour

Crates.iomagic_hour
lib.rsmagic_hour
version
sourcesrc
created_at2024-11-14 05:21:42.22268
updated_at2024-12-04 23:48:49.872612
descriptionRust API Client
homepage
repository
max_upload_size
id1447432
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(magichourai-admin)

documentation

README

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_projects

  • delete - Delete image
  • get - Get image project 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
Commit count: 0

cargo fmt