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

Uploaded Source

Built Distribution

magic_hour-0.0.1-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_hour-0.0.1.tar.gz
  • Upload date:
  • Size: 15.1 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.1.tar.gz
Algorithm Hash digest
SHA256 f51a62e911560a6a217d2253437665cee58199ae8e25b71eea5ab633f9393c53
MD5 70f44f5feb91cdf4f9ad581b554b167d
BLAKE2b-256 abfcd75a5d81f86e536d3e15cd2c49f18487d6de13dae4d06f4976e5d77ff5e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magic_hour-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 44.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4917be8ccc93ccfab74b0cb198afc789e299c2f439bd8b5a9e592e805288d62e
MD5 f263c8c664a4f7d7ca9373562ba50e55
BLAKE2b-256 d0a792f9e463351f966034934d9daf72feb4c69c4a6caab7d83bab5f2507ac5d

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