Skip to content

magichourhq/magic-hour-node

Repository files navigation

Magic Hour Typescript SDK

NPM 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

npm install magic-hour

Usage

Initialize the client

import Client from "magic-hour";

// generate your API Key at https://magichour.ai/developer
const client = new Client({
  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