Extensions/comfyui-magic-hour
ComfyUI Extension

comfyui-magic-hour

A ComfyUI extension with 29 custom nodes.

By magichourhq·Created about 18 hours ago·Updated about 17 hours ago· 0
magichourhq/comfyui-magic-hour
Nodes29
On cloudLocal install
CategoryMagic Hour
Stars0
Updatedabout 17 hours ago

Nodes (29)

Magic Hour: Animation

Magic Hour: Animation

Magic Hour
Magic Hour: Audio to Video

Magic Hour: Audio to Video

Magic Hour
Magic Hour: Auto Subtitle Generator

Magic Hour: Auto Subtitle Generator

Magic Hour
Magic Hour: Background Remover

The cutout is fine. The alpha channel is where this one gets interesting

Magic Hour
Magic Hour: Body Swap

Magic Hour: Body Swap

Magic Hour
Magic Hour: Character Replace

Swap the person in a video, or animate your character with their motion

Magic Hour
Magic Hour: AI Clothes Changer

Magic Hour: AI Clothes Changer

Magic Hour
Magic Hour: Face Detection

The one node here that spends credits telling you where a face is

Magic Hour
Magic Hour: AI Face Editor

Magic Hour: AI Face Editor

Magic Hour
Magic Hour: Face Swap (Video)

Magic Hour: Face Swap (Video)

Magic Hour
Magic Hour: Face Swap (Photo)

Two images in, one out

Magic Hour
Magic Hour: AI GIF Generator

Magic Hour: AI GIF Generator

Magic Hour
Magic Hour: AI Headshot Generator

Magic Hour: AI Headshot Generator

Magic Hour
Magic Hour: Head Swap

Magic Hour: Head Swap

Magic Hour
Magic Hour: AI Image Editor

Nano Banana and friends, wired straight into your graph

Magic Hour
Magic Hour: AI Image Generator

A hosted image generator that hands you Nano Banana Pro and Seedream as a tensor

Magic Hour
Magic Hour: Image to Video

Animate anything already in your graph, rendered on someone else's GPUs

Magic Hour
Magic Hour: Lip Sync

Magic Hour: Lip Sync

Magic Hour
Magic Hour: AI Meme Generator

Magic Hour: AI Meme Generator

Magic Hour
Magic Hour: Photo Colorizer

Magic Hour: Photo Colorizer

Magic Hour
Magic Hour: AI QR Code Generator

The QR Monster you can't run locally anymore, one prompt away

Magic Hour
Magic Hour: Talking Photo

Magic Hour: Talking Photo

Magic Hour
Magic Hour: Text to Video

Sora 2 and Veo 3.1 in your ComfyUI graph, with zero GPUs

Magic Hour
Magic Hour: AI Image Upscaler

Magic Hour: AI Image Upscaler

Magic Hour
Magic Hour: AI Video Editor

Edit a Video by Typing at It — Magic Hour's AI Video Editor, in Your Graph

Magic Hour
Magic Hour: Video to Video

Magic Hour's Video to Video Node

Magic Hour
Magic Hour: AI Video Translator

Dub a Clip Into 53 Languages Without Leaving Your Workflow

Magic Hour
Magic Hour: AI Voice Cloner

Point It at a Voice Clip, Then Make That Voice Say Anything

Magic Hour
Magic Hour: AI Voice Generator

1,266 Voices in a Dropdown, and a Billing Meter Behind It

Magic Hour
Readme

Magic Hour for ComfyUI

Custom nodes that run Magic Hour generation tools inside a ComfyUI workflow, so you don't have to leave your graph or write API calls.

Video (return a VIDEO): Image to Video, Text to Video, Video to Video, Talking Photo, Lip Sync, Face Swap (Video), Character Replace, AI Video Editor, AI Video Translator, Audio to Video, Animation, Auto Subtitle Generator.

Image (return an IMAGE): AI Image Generator, AI Image Editor, AI Image Upscaler, AI Headshot Generator, AI Clothes Changer, AI Face Editor, Face Swap (Photo), Head Swap, Body Swap, Background Remover, Photo Colorizer, AI Meme Generator, AI QR Code Generator, AI GIF Generator (frames).

Other: Face Detection (returns the API's JSON as text).

Voice (return AUDIO): AI Voice Generator and AI Voice Cloner. Set MAGIC_HOUR_DISABLE_VOICE_NODES=1 before starting ComfyUI to hide them. Only clone voices you have the right to use.

That is 29 tools in total, the same set as the Magic Hour Python SDK. Long option lists (art styles, voices, meme templates, languages) are read from the installed SDK, so they stay in sync with the API.

Each node uploads its inputs, starts the job, waits for it to finish, downloads the result into ComfyUI/output/magic_hour/, and returns it with the saved file path and the credits charged.

Install

Comfy Registry / ComfyUI-Manager: search for "Magic Hour" (once published).

Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/magichourhq/comfyui-magic-hour
pip install -r comfyui-magic-hour/requirements.txt

Restart ComfyUI. The nodes appear under Magic Hour in the node menu. Requires a ComfyUI version that has the VIDEO type (any recent release).

API key

  1. Create an API key at https://magichour.ai/developer.
  2. Give it to ComfyUI before it starts, using either:
    • an environment variable: export MAGIC_HOUR_API_KEY=..., or
    • a file named api_key.txt inside this folder containing only the key (it is git-ignored).

The key is deliberately not a node field. Node field values are saved inside workflow files, so a key typed into a node would leak whenever the workflow is shared.

Credits and usage

Every run spends credits on the account that owns the key. Longer videos, higher resolutions, and premium models cost more. See https://magichour.ai/pricing and the API docs. Jobs run on Magic Hour's servers, so no GPU is needed locally.

Use the swap, clothes changer, face editor, lip sync, and voice nodes only with people's likenesses and voices you have the right to use, and follow Magic Hour's terms and content guidelines.

Example workflow: photo to talking video

  1. Load Image and Load Audio nodes.
  2. Connect them to Magic Hour: Talking Photo.
  3. Connect its video output to Save Video (or Preview).

Troubleshooting

  • "API key not found": set MAGIC_HOUR_API_KEY before launching ComfyUI, or create api_key.txt.
  • 401 Unauthorized: the key is wrong or was deleted. Create a new one.
  • Not enough credits / plan limits: the error message from Magic Hour is shown in the node. Some models and resolutions need a paid plan.
  • Slow: video generation takes from tens of seconds to several minutes. The node waits until it's done.

Development

python -m unittest discover tests   # mocked, spends no credits

License

Apache-2.0, see LICENSE.