magic-hour-go

module
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT

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.AiFaceEditor
V1.AiGifGenerator
V1.AiHeadshotGenerator
V1.AiImageEditor
V1.AiImageGenerator
V1.AiImageUpscaler
V1.AiMemeGenerator
V1.AiPhotoEditor
V1.AiQrCodeGenerator
V1.AiTalkingPhoto
V1.AiVoiceGenerator
V1.Animation
V1.AudioProjects
  • delete - Delete audio
  • get - Get audio details
V1.AutoSubtitleGenerator
  • create - Auto Subtitle Generator
V1.FaceDetection
  • create - Face Detection
  • get - Get face detection details
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.PhotoColorizer
V1.TextToVideo
V1.VideoProjects
  • delete - Delete video
  • get - Get video details
V1.VideoToVideo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL