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.
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.
import Client from "magic-hour";
const client = new Client({ token: process.env["API_TOKEN"]!! });
- create - Create AI Headshots
- create - Create AI Images
- create - Create Upscaled Image
- create - AI Photo Editor
- create - Create AI QR Code
- create - Create Animation
- create - Create Face Swap video
- create - Create Face Swap Photo
- create - Generate asset upload urls
- create - Image Background Remover
- create - Create Image-to-Video
- create - Create Lip Sync video
- create - Create Text-to-Video
- create - Create Video-to-Video