Magic Hour
  • Pricing
  • API
Magic Hour
  • Create New
  • Pricing
  • API
Try Magic HourLogin
Video

Create your first video in under 60 seconds

Generate or edit video, image, and audio - free to start.
Start Creating Free
No credit card requiredFree daily creditsNo signup required
Join the Discord
Video
Company
PricingAboutBlogAPIAll ToolsTemplatesAI ModelsPrivacy PolicyTerms of ServiceRefund Policy
Video Products
AI UGC Ad GeneratorAI Video EditorAI Video ExpanderAI Video ExtenderAI Video TranslatorAI Video UpscalerAnimationAudio-to-VideoCharacter ReplaceFace Swap VideoImage-to-VideoLip SyncMusic Video GeneratorSubtitle GeneratorTalking PhotoText-to-VideoVideo ColorizerVideo-to-Video
Image Products
AI Clothes ChangerAI Face EditorAI GIF GeneratorAI Headshot GeneratorAI Image EditorAI Image ExpanderAI Image GeneratorAI Image UpscalerAI Influencer GeneratorAI Meme GeneratorAI Selfie GeneratorAI Storyboard GeneratorBackground RemoverBody SwapFace Swap PhotoHead SwapPhoto ColorizerQR Code GeneratorCharactersMoodboards
Audio Products
AI Music GeneratorVideo-to-AudioVoice ChangerVoice ClonerVoice Generator
Support
CommunityFAQContact UsStatus
Social
Instagram
X
TikTok
Facebook
YouTube
LinkedIn
support@magichour.ai
Backed byCombinator

© 2026 Magic Hour AI, Inc.

Back to Blog
  1. Blog
  2. Face Swap
  3. Face Swap Photos AI Automation in n8n
Face SwapGuides

Face Swap Photos AI Automation in n8n

Runbo Li
Runbo Li
·
CEO of Magic Hour
Sep 13, 2025
(Updated Oct 13, 2025)
· 6 min read
AI Summary:
ChatGPTClaudeGeminiPerplexity
N8n

Contents

Introduction

Connecting Magic Hour AI with n8n

Welcome! In this post, we’ll show you how to integrate Magic Hour AI with n8n to automate face swap images. Whether you're a seasoned automation expert or just starting your journey with no-code tools and APIs, this guide is designed to help you seamlessly connect Magic Hour AI's powerful video generation capabilities with your n8n workflows.

What to Expect

This guide will walk you through the entire process, from setting up your Magic Hour AI account and obtaining your API key to building and testing various API requests within n8n

How to Best Use This Guide

This document is structured to allow you to quickly find the information most relevant to your needs.

  • For a complete overview: Start from the beginning and follow the steps sequentially to understand the foundational setup and connection process.
  • Troubleshooting: Throughout the guide, you'll find important tips and common error messages to help you troubleshoot any issues you might encounter.

By the end of this guide, you'll be able to leverage the power of Magic Hour AI directly within your n8n workflows, automating creative tasks and bringing your ideas to life!

Some tips when connecting Magic Hour and n8n

  • Try to keep your Magic Hour API_KEY in n8n variables to use it more easily.
Magic Hour AI x N8n 1 imageMagic Hour AI x N8n 2 image
  • Before you dive into using any Magic Hour API to create videos or images, you'll want to check out their documentation (docs.magichour.ai). It'll tell you all the fields you need to fill in. For example, if you're using the Image Background Remover API, you'll first need to figure out what parameters it requires.


Just to give you an idea, the image_file_path field would be a must-have. If you don't provide that, you'll end up with a server error.

{"message": ”Missing Request Body”}

Magic Hour AI x N8n 3 image


Create an Account on Magic Hour AI and Obtain API Key

  1. Create an account

    Go to Magic Hour AI and sign up
Magic Hour AI x N8n 4 image

Magic Hour AI

Create Your Automation Now

Sign Up now
  1. Get your API Key
  • After logging in, go to the Developer Hub
Magic Hour AI x N8n 4 image
  • Go to  API KEYS and click on Create API Key (you can name it anything).
Magic Hour AI x N8n 5 image
  • Copy the key and save it somewhere safe (it won’t be shown again).

3. Always open documentation where you copy curL request from , so you can see the proper fields and usage of api.

Magic Hour AI x N8n 6 image

Face Swap Photo

  • POST Request 
    • Go to the docs .
    • Copy the curL request.
Magic Hour AI x N8n
  • Go to n8n , add a HTTP Request and import the curL you copied from doc.
Prepare your workflow in n8n
  • Open n8n and start a new workflow.
  • Choose a trigger (something that starts the workflow, e.g., manual or scheduled trigger), I am choosing manual.
Magic Hour AI x N8n 9 image
Add the API request
  • In the workflow, add a new node from Core → HTTP Request (or cURL request).    
Magic Hour AI x N8n 10 imageMagic Hour AI x N8n 11 image
  • Paste the cURL code you copied earlier into the import curl box.
  • Replace <token> with your Magic Hour API key (add it as: Bearer YOUR_API_KEY).
Magic Hour AI x N8n 12 image

Add Wait Node after POST request

  • Go to node panel -> core -> Wait ( 300 seconds )
  • Tip : If you are using materials from internet check their extensions ( jpeg,mp4,mp3 ) only these gets allowed.
  • Add 30 seconds wait after it from node panel
Magic Hour AI x N8nMagic Hour AI x N8n 13 image

GET the image

  • Go to Get image details .
  • Copy the curL request.
Magic Hour AI x N8n
  • Now , go to n8n node panel and add GET request from HTTP Request ( after wait ) 
Magic Hour AI x N8n
  • Add your magic hour api key into Bearer <token>
Magic Hour AI x N8n 14 image
  • Click on Execute/Trigger to test if its returning url or not .
  • After get has runned , make a new GET Request node and paste this in url ( {{ $json.downloads[0].url }} ).
Magic Hour AI x N8n 15 imageMagic Hour AI x N8n 3 image
  • And now you can see your generated Video

Basic Workflow

Magic Hour AI x N8n image


Runbo Li
Runbo Li is the Co-founder and CEO of Magic Hour, where he builds AI video and image tools for content creation. He is a Y Combinator W24 founder and former Data Scientist at Meta, where he worked on 0-1 consumer social products in New Product Experimentation. He writes about AI video generation, AI image creation, creative workflows, and creator tools.
See all articles
Magic Hour
Create content faster with AI.
Trusted by 3M+ creators and teams

Related Posts

How to Use FaceFusion 3.6.0
Face Swap
How to Use FaceFusion 3.6.0: Complete Setup, Settings, and Best Results Guide
Jan 20, 2025
jalen2
Videos
How to Create a Viral AI Sports Highlight Using Video-to-Video
May 18, 2024
reve
Images
Reve AI Image Generator Review 2026: Reve 2.1, Pricing, and How It Compares
Mar 25, 2025
video editing software
Videos
The Best Free Video Editing Software in 2025
Feb 05, 2025
Top Face Swap Apps Cover
Face Swap
5 Best Free Face Swap Tools for Swapping Faces
Jul 06, 2024
Lip Sync Example
Videos
How to Lip Sync a Video with AI
Feb 02, 2025