Chapter 2 of 3

Genjutsu tutorial: swap a character in an AI video

verified on 9 October 2026 · 3 min

Quick answer

Add the Higgsfield plugin to Codex, then ask it to replace the person in a video with your character, giving it the video link. Codex writes the instruction for Genjutsu itself, attaches your sheet and saves the finished video in your character's folder.

By the end of this chapter, you will have a first video of your character, prepared by Codex with Genjutsu.
This chapter as a videoVideo in French

Créer un influenceur IA viral avec Higgsfield et Codex (tuto débutant)

From 5:39

Watch the tutorial

Disclosure: some links on this page are affiliate links. I may receive a commission if you subscribe through them. The results described come from our own tests.

Your character has a sheet, so it is time to put them in a video. Genjutsu, a Higgsfield tool, replaces the person on screen with your character and keeps the movement, the setting and the framing. You do not need to use it yourself, because Codex handles it.

Add the Higgsfield plugin to Codex

A plugin adds a new tool to Codex, a bit like installing an app on a phone. The Higgsfield plugin links Codex to your account, and therefore to Genjutsu. In Codex, open the plugins page, add Higgsfield and connect your account. You only do this once.

Each video uses credits, the currency of Higgsfield. Before you start, you can ask Codex how much the test will cost.

Choose the source video

Pick a short video with a single, clearly visible person and few camera cuts. A video posted on TikTok or YouTube works, and you only need to copy its link. When we ran our tests in October 2026, Genjutsu accepted videos of 4 to 30 seconds.

With no source video, Seedance 2.5, a video AI available in Higgsfield and in ElevenLabs, can create a whole scene from the sheet. It costs a lot more than a swap with Genjutsu.

One precaution: never make a video that imitates or distorts a real person. Your character stays fictional.

The request to paste into Codex

You do not need a long prompt. Go back to the Codex conversation where you created the sheet, paste the request below and replace the parts in square brackets. The word @Higgsfield at the start tells Codex to use the plugin.

code
@Higgsfield Replace [the person to replace, for example: the driver] with our character in this video: [paste the video link]. Use their sheet. Do not change the other people or the rest of the video.

Codex fetches the video, writes the detailed instruction for Genjutsu itself and attaches your sheet. It also picks the right setting, the one that replaces a single person while keeping the whole scene. The last sentence of the request stops the tool from changing the other people too, which can happen.

If several people are on screen, point out the right one by position and clothing. In one of our kitchen scenes, “the cook” was not enough because there were three of them. We wrote “the cook in the black jacket” and asked to keep the bald chef in blue and the cook in white.

The finished video

Codex saves the video in your character’s folder, with the sound of the original video. Here is Glen at the wheel of the tiny car, with his flowery shirt, his centre parting and his big chin. The car’s movement is the same as in the original video.

Watch the result on the Gekkode channel. Original captions in English.

If you do not like something, just tell Codex and it will take care of it.

Next step: keep the sound or add a voice. Back to the full guide.

ExercisePick a short video with a single person, copy its link and send our request to Codex. Then open your character's folder to watch the result.
Newsletter

New tests, tutorials and projects, by e-mail.

Reproducible tests, versioned code, dated results. Never any spam.