Categorygithub.com/magichourhq/magic-hour-go
repository
0.8.5
Repository: https://github.com/magichourhq/magic-hour-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

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

V1.AiClothesChanger

V1.AiHeadshotGenerator

V1.AiImageGenerator

V1.AiImageUpscaler

V1.AiPhotoEditor

V1.AiQrCodeGenerator

V1.Animation

V1.FaceSwap

V1.FaceSwapPhoto

V1.Files.UploadUrls

  • create - Generate asset upload urls

V1.ImageBackgroundRemover

  • create - Image Background Remover

V1.ImageProjects

  • delete - Delete image
  • get - Get image details

V1.ImageToVideo

V1.LipSync

V1.TextToVideo

V1.VideoProjects

  • delete - Delete video
  • get - Get video details

V1.VideoToVideo