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

Uploaded Source

Built Distribution

magic_hour-0.0.8-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_hour-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 e22cd4cff69ae21597d78fa877abdeff25c8f9e724d77771fa4ffe8a0b031562
MD5 f8a7ee7ff0621f0945a14051c0588081
BLAKE2b-256 afe17ab1440741ab67d47aa707c506ac5290ed84c1394a5406fa6a0c776af11f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magic_hour-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 53.5 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 50f20c4d70f9345ad1c7be7fa8f39632406490512caff6cfa826503c240a3b50
MD5 d845f05b19348301f08f6ecb1ada11ff
BLAKE2b-256 e1d848ca50df51b35774361f555545cabac39e875d0e0f8072a53d1fb2bef6f0

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