easel/advanced-face-swap 🖼️❓ → 🖼️

⭐ Official ▶️ 67.4K runs 📅 Mar 2025 ⚙️ Cog 0.14.0-alpha1 ⚖️ License
image-editing image-face-swap

About

Face swap one or two people into a target image

Example Output

Output

Example output

Performance Metrics

5.91s Prediction Time
5.92s Total Time
All Input Parameters
{
  "upscale": true,
  "detailer": false,
  "swap_image": "https://replicate.delivery/pbxt/Mb44Wp0W7Xfa1Pp91zcxDzSSQQz8GusUmXQXi3GGzRxDvoCI/0_1.webp",
  "hair_source": "target",
  "user_gender": "a woman",
  "target_image": "https://replicate.delivery/pbxt/Mb44XIUHkUrmyyH1OP5K1WmFN7SNN0eUSU16A8rBtuXe7eYV/cyberpunk_80s_example.png",
  "user_b_gender": "a woman"
}
Input Parameters
swap_image (required) Type: string
The face image to swap from
hair_source Default: user
Choose whose hairstyle to preserve: 'user' preserves hairstyle from face image, 'target' preserves from target image
user_gender Default: default
Optional description of user gender ('a man', 'a woman', 'nonbinary person'), used for multi-user swaps
swap_image_b Type: string
Optional second face image to swap from
target_image (required) Type: string
The image to swap onto
user_b_gender Default: default
Optional description of second user's gender for multi-user swaps
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Running faceswap prediction...
✅ Loaded target_image: 2008673 bytes
✅ Loaded swap_image: 396760 bytes
✅ Execution completed
Version Details
Version ID
602d8c526aca9e5081f0515649ff8998e058cf7e6b9ff32717d25327f18c5145
Version Created
March 6, 2025
Run on Replicate →