Skip to main content

No project description provided

Project description

Magic Hour API Python 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.

Synchronous Client

from magic_hour import Client
from os import getenv

client = Client(token=getenv("API_TOKEN"))

Asynchronous Client

from magic_hour import AsyncClient
from os import getenv

client = AsyncClient(token=getenv("API_TOKEN"))

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_qr_code_generator

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

  • 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

  • get - Get video project details

v1.video_to_video

  • create - Create Video-to-Video

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magic_hour-0.1.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

magic_hour-0.1.0-py3-none-any.whl (68.1 kB view details)

Uploaded Python 3

File details

Details for the file magic_hour-0.1.0.tar.gz.

File metadata

  • Download URL: magic_hour-0.1.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for magic_hour-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6fd583f34cc52e117f6cfe333aed9e6be5d33bf972273e3afd91d5ffba82ccc
MD5 55bb0ab1be64f5bcf7c7ca90b50d8f6b
BLAKE2b-256 048cef50a3e007929f50c3c6ee652be5a040c5cd7c2f6355bdb0f5b263e43d38

See more details on using hashes here.

File details

Details for the file magic_hour-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: magic_hour-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 68.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for magic_hour-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f11aa50e300ed361404204f0caf1c38ead15ee6fc75d14bb0940acda5b83127
MD5 bc0fdf86f4234a64106046ed8f944ad6
BLAKE2b-256 bcf6ed6fa261d33535ebd13565bed03b7e9dc816bcddc0826b1ee6d12ecf7bcc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page