The Viral Character-Swap Effect, Open-Source (Honest Guide)

That effect where someone drops themselves into a movie scene as a different character, same scene, same voice, has an open-source version. A creator reverse-engineered Higgsfield's Genjutsu and put the workflow on GitHub. Here's how it actually works, and an honest read on what it costs and where the lines are.

What it actually is

The free part is an open-source workflow (Sirio Berati's "Genjustsu" project, MIT license) that chains together several AI models to swap a character into your video. The clever bit is the pipeline: it separates who's in the shot from how they move, so a generation model can replace the character while keeping your motion and scene intact.

How it works

  1. Grab the workflow off GitHub and set it up (it's designed to be installed with an AI coding agent following the repo's setup doc).
  2. Drop in your clip and a reference for the new character.
  3. It preps the shot automatically: splits your voice from the background music, builds a colored depth map, and uses segmentation to cut you out from the background. It also maps a dense face mesh (hundreds of points, the "478" in the reel is Google's MediaPipe face-landmark model) for accurate tracking, which is what makes the swap sit right on your movements.
  4. Hit generate, and Seedance does the swap, keeping your original scene, then the workflow drops your original audio back in at the end (not a generated voice).
  5. You approve a draft before the final 1080p version, so you're not paying for a result you haven't seen.

The honest read before you try it

This is a genuinely clever workflow, and it needs a few honest notes more than most, especially on cost and on where the lines are.

"Never pay for this again" isn't true — the code is free, the APIs aren't

Here's the big one. The workflow itself is free and open-source, but it runs on paid external services: Seedance access (through Enhancor) for the swap, and Replicate for the depth, segmentation, and audio models. The project's own description says it plainly, free code, external API costs apply. So you will pay per generation; what you're skipping is a monthly subscription, not the cost itself. Budget for the API usage, and lean on the draft-approval step so you only pay for finals you actually want. Going in expecting "free forever" is the mistake.

Use it on your own clips and your own likeness

Worth being straight about this, because the original project is openly framed around getting around the filters that platforms use to block copyrighted faces and music. That matters: using this to paste yourself into copyrighted movie scenes, or to put a real person's face into a video without their consent, is exactly where this kind of tool gets people into real legal and ethical trouble. Used on your own footage, with your own likeness or a character you're allowed to use, it's a brilliant creative tool. Keep it on that side and you're fine.

It's a real developer setup

The reel makes it look like a quick install, and an AI agent does help, but this is a genuine technical setup, you're creating accounts and API keys for Enhancor and Replicate, filling in a .env file, and running a local workflow. Comfortable with that? Very doable. Never handled API keys or a terminal? This is a steeper setup than most, so budget real time or pair with someone technical. It's one of the more advanced workflows out there, not a no-code app.

The draft step is the best part — actually use it