Skip to main content
Every magichour.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Account

get

account.get Get the account’s credit balance and subscription details Risk: read
Input: empty object Output

Audio

voiceCloner

audio.voiceCloner Clone a voice from an audio sample and generate speech Risk: write
Input
Output

voiceGenerator

audio.voiceGenerator Generate speech audio from text using a preset voice Risk: write
Input
Output

Audio Projects

delete

audioProjects.delete Permanently delete rendered audio file(s) [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output: void

getDetails

audioProjects.getDetails Check the progress, status, and downloads of an audio project Risk: read
Input Output

Face Detection

detect

faceDetection.detect Detect faces in an image or video Risk: write
Input
Output

getDetails

faceDetection.getDetails Get the details and detected faces of a face detection task Risk: read
Input Output

Files

generateUploadUrls

files.generateUploadUrls Generate pre-signed URLs for uploading video, audio, or image assets Risk: write
Input
Output

savedItemsList

files.savedItemsList List saved items (characters, references, voices, moodboards, brand kits) Risk: read
Input Output

Image Projects

delete

imageProjects.delete Permanently delete rendered image(s) [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output: void

getDetails

imageProjects.getDetails Check the progress, status, and downloads of an image project Risk: read
Input Output

Images

backgroundRemover

images.backgroundRemover Remove or replace an image background Risk: write
Input
Output

bodySwap

images.bodySwap Place a person into a scene image Risk: write
Input
Output

clothesChanger

images.clothesChanger Change outfits in a photo using a garment reference Risk: write
Input
Output

faceEditor

images.faceEditor Edit facial features of an image Risk: write
Input
Output

faceSwapPhoto

images.faceSwapPhoto Swap faces in a photo Risk: write
Input
Output

gifGenerator

images.gifGenerator Generate an animated GIF from a prompt Risk: write
Input
Output

headshotGenerator

images.headshotGenerator Generate a professional headshot from a photo Risk: write
Input
Output

headSwap

images.headSwap Swap a head onto a body image Risk: write
Input
Output

imageEditor

images.imageEditor Edit an image with a prompt-driven AI model Risk: write
Input
Output

imageGenerator

images.imageGenerator Generate images from a text prompt Risk: write
Input
Output

imageUpscaler

images.imageUpscaler Upscale an image 2x or 4x with AI Risk: write
Input
Output

memeGenerator

images.memeGenerator Generate a meme from a topic and template Risk: write
Input
Output

photoColorizer

images.photoColorizer Colorize a black-and-white photo Risk: write
Input
Output

qrCodeGenerator

images.qrCodeGenerator Generate an artistic QR code Risk: write
Input
Output

Video Projects

delete

videoProjects.delete Permanently delete a rendered video [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output: void

getDetails

videoProjects.getDetails Check the progress, status, and downloads of a video project Risk: read
Input Output

Videos

animation

videos.animation Create a stylized animation video from an image and audio Risk: write
Input
Output

audioToVideo

videos.audioToVideo Create a video from an audio track Risk: write
Input
Output

autoSubtitleGenerator

videos.autoSubtitleGenerator Generate styled subtitles for a video Risk: write
Input
Output

characterReplace

videos.characterReplace Replace or animate a character in a video Risk: write
Input
Output

faceSwap

videos.faceSwap Swap faces in a video using a reference face image Risk: write
Input
Output

imageToVideo

videos.imageToVideo Animate a still image into a video Risk: write
Input
Output

lipSync

videos.lipSync Sync a video’s lip movement to an audio track Risk: write
Input
Output

talkingPhoto

videos.talkingPhoto Create a talking photo video from an image and an audio file Risk: write
Input
Output

textToVideo

videos.textToVideo Generate a video from a text prompt Risk: write
Input
Output

ugcAd

videos.ugcAd Create a spoken UGC ad video from an image and a script Risk: write
Input
Output

videoEditor

videos.videoEditor Edit a video with a prompt-driven AI model Risk: write
Input
Output

videoToVideo

videos.videoToVideo Restyle an existing video with a new art style Risk: write
Input
Output

videoTranslator

videos.videoTranslator Translate the speech in a video into another language Risk: write
Input
Output