Skip to main content

Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3

Workflow preview

Workflow preview
100%
Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Animate Any Face into a Video with Fal.ai Create stunning deepfake style videos automatically by swapping a face from an image onto a source video. This workflow provides a powerful, automated pipe...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.awss3, n8n-nodes-base.formtrigger, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sandeep Patharkar | www.FastTrackAiMastery.com.

Original n8n.io source

1.1 Workflow description

Title
Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3
Workflow name
Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3

Animate Any Face into a Video with Fal.ai

Create stunning deepfake-style videos automatically by swapping a face from an image onto a source video.

This workflow provides a powerful, automated pipeline to perform video face-swapping using the Fal.ai API. It's designed to handle the entire asynchronous process: accepting a source video and a target face image, uploading them to cloud storage, initiating the AI job, polling for completion, and retrieving the final, rendered video.

Services Used Features
πŸ€– Fal.ai Leverages the powerful Wan 2.2 model for high-quality face animation.
☁️ AWS S3 Uses enterprise-grade cloud storage for reliable public file hosting.
πŸ”„ Polling Loop Intelligently waits for the asynchronous AI job to complete before proceeding.
πŸ“₯ n8n Form Trigger Provides a simple UI to upload your source image and video.

How It Works βš™οΈ

  1. πŸ“₯ Get User Input: The workflow starts when you upload a source video and a face image via the n8n Form Trigger.
  2. ☁️ Upload to Cloud: Both files are automatically uploaded to a specified AWS S3 bucket to generate the publicly accessible URLs required by the AI model.
  3. πŸš€ Start AI Job: The public URLs for the video and image are sent in an HTTP Request to the Fal.ai API, which starts the asynchronous face animation process and returns a request_id.
  4. ⏳ Wait & Check: The workflow enters a polling loop. It Waits for one minute, then makes another HTTP Request to the Fal.ai status endpoint using the request_id.
  5. βœ… Check for Completion: An IF node checks if the job status is COMPLETED. If not, the workflow loops back to the Wait node.
  6. 🎬 Retrieve Final Video: Once the job is complete, the workflow makes a final HTTP Request to fetch the finished animated video.

πŸ› οΈ How to Set Up

  1. πŸ”‘ Set Up Fal.ai Credentials: Get your API Key from Fal.ai. In n8n, go to Credentials, add a new Header Auth credential, and save your key. Connect this credential to all three HTTP Request nodes in the workflow.
  2. ☁️ Configure AWS S3: Add your AWS credentials in n8n. In the two AWS S3 nodes (Upload Video1 and Upload Image1), update the Bucket Name parameter to your own S3 bucket. Ensure your bucket permissions allow for public reads.
  3. ▢️ Activate and Run: Activate the workflow. Open the Form Trigger URL from the n8n editor, upload your files, and submit. The final video will be available in the execution log of the Get Final Video node.

Requirements

  • An active Fal.ai account and API key.
  • An AWS account with an S3 bucket configured for public access.
  • Alternative Storage: For a personal setup, you can replace the AWS S3 nodes with Cloudinary nodes. Just ensure the output is a public URL.

πŸ’¬ Need Help or Want to Learn More?


Template Author: Sandeep Patharkar
Category: Content Generation / Content Marketing Difficulty: Intermediate
Estimated Setup Time: ⏱️ 20 minutes

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Fal.ai Animate Request1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 2 - Edit Fields2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Edit Fields3

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 5 - Get Video Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 6 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 7 - Get Final Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 8 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Upload Video1

Type / Role
n8n-nodes-base.awsS3 - awsS3
Config choices
Version 2

Block 10 - Upload Image1

Type / Role
n8n-nodes-base.awsS3 - awsS3
Config choices
Version 2

Block 11 - On form for S3

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3
Complexity advanced
Nodes 16
Categories Content Creation, Multimodal AI
Author Sandeep Patharkar | www.FastTrackAiMastery.com
Published 12 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9541/9541.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3 do?

Animate Any Face into a Video with Fal.ai Create stunning deepfake style videos automatically by swapping a face from an image onto a source video. This workflow provides a powerful, automated pipe...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.