Skip to content

magichourhq/magic-hour-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

152eeeb · Feb 20, 2025

History

40 Commits
Feb 3, 2025
Feb 20, 2025
Feb 5, 2025
Feb 3, 2025
Feb 20, 2025
Feb 18, 2025
Feb 17, 2025
Dec 17, 2024
Feb 20, 2025
Feb 3, 2025
Feb 5, 2025
Feb 20, 2025
Nov 9, 2024

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