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"))

SDK Usage

See SDK Examples for example usage of all SDK functionality

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.0.7.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

magic_hour-0.0.7-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_hour-0.0.7.tar.gz
  • Upload date:
  • Size: 17.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.0.7.tar.gz
Algorithm Hash digest
SHA256 65fe8142b63c3996c3d3b8461146d6e140858c3e133ae077e597648547522c71
MD5 29f481884f8824d51b45d3ab3167977c
BLAKE2b-256 d584a28939aa2d5a303d8bd831948868687748042100d31cf11065fefe172a49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magic_hour-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 53.4 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.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a74965f8c655b8d2ea457ac301f98ef23d00ee4d54363fbe194e77e3245a2feb
MD5 aeb62105c13d6fa06d2d82e6938b60c5
BLAKE2b-256 25202673fd983fdc8fe1f84b8d2760f87ce24e305a0107afe5f118378347ab7b

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