Skip to content

magichourhq/magic-hour-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Hour Go SDK

Go Reference

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

go get -u github.com/magichourhq/magic-hour-go

Usage

Initialize the client

import (
	sdk "github.com/magichourhq/magic-hour-go/client"
)

// generate your API Key at https://magichour.ai/developer
client := sdk.NewClient(sdk.WithBearerAuth("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