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

Uploaded Source

Built Distribution

magic_hour-0.0.4-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_hour-0.0.4.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for magic_hour-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2cf5161041c99d0d41f0b6fe32b9916ea1c8ce4f35b6eaf7de61511cd6391c2b
MD5 e2f30aa4218bf18dbbbadd163f1e696b
BLAKE2b-256 9198a91e1f8de80895892e2d031705059b9681de06b484975c9068035f6b0792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magic_hour-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for magic_hour-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6303b8b6dbea9d6b20836078a46feab216975d9103d73f7c6af7b20ca3556f0c
MD5 bd0bd178afcca5e3c5259e41164f5c77
BLAKE2b-256 c12690b9eabc9f43739ac80ff86348fd4caec6e3053ac0c3e4cf0daff0b2c180

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