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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_hour-0.0.6.tar.gz
  • Upload date:
  • Size: 16.7 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.6.tar.gz
Algorithm Hash digest
SHA256 5aa923d1b6e2e527357d1b06418199377ee11957ed93d4b2af68db1d185c6b20
MD5 1b96ed113f03b42978b4a64e6c7bfe6e
BLAKE2b-256 ee72490482b11dedd600a9ed247c23ed8f997279cc96cbc03a0b38dbe2162a02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magic_hour-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 53.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf5921f924650e4c1b8fcf7448aa2d053a54762182f1933fb8ebb9740fee07b
MD5 8c2f014be6ce933f52e0493056524573
BLAKE2b-256 b9c45addd362a21e4e528759d053b1f0e3759c7e6cdbc59ed7c862a6ac2c7704

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