Skip to content

magichourhq/magic-hour-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Hour Python SDK

PyPI - Version

Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI.

Webhook documentation can be found here.

If you have any questions, please reach out to us via discord.

Install

pip install magic_hour

Usage

Initialize the client

Synchronous Client

from magic_hour import Client

# generate your API Key at https://magichour.ai/developer
client = Client(token="my api key")

Asynchronous Client

from magic_hour import AsyncClient

# generate your API Key at https://magichour.ai/developer
client = AsyncClient(token="my api key")

Warning

Any API call that renders a video will utilize frames in your account.

Module Documentation and Snippets

  • create - Generate asset upload urls
  • create - Image Background Remover
  • delete - Delete image
  • get - Get image details
  • delete - Delete video
  • get - Get video details