# How to Do a Face Swap on Midjourney: A Step-by-Step Guide

This time, I'm exploring the fascinating world of AI, stepping away from my usual focus on iOS development. There's so much more to share about AI, and I can't wait to dive into it with you! If you'd like to follow along and receive regular updates, be sure to subscribe to the [newsletter](https://namitgupta.com/newsletter).

Face swapping has become a trending activity, allowing people to see how their faces would look in different scenarios, characters, or even combined with other people's features.

With the introduction of AI-based platforms like Midjourney, face swapping is now accessible to almost anyone. Here's a step-by-step guide to performing a face swap on Midjourney using [InsightFace](https://insightface.ai/).

### 1\. **Invite Insight Face Bot to Your Server**

You'll need to [invite the Insight Face Bot](https://discord.com/oauth2/authorize?client_id=1090660574196674713&permissions=274877945856&scope=bot) to your server to begin the process.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690960969584/6965973f-e10f-40a2-b32f-9b682f5a5179.png?width=500 align="center")

Once added, the bot should appear in the online list on your server.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690960618066/9a5eb3c6-cd0d-46af-8b28-c4821bf80739.png?width=300 align="center")

Detailed instructions on creating your server can be found [**here**](https://support.discord.com/hc/en-us/articles/204849977-How-do-I-create-a-server-) and how to invite MidJourney to your server [here](https://docs.midjourney.com/docs/invite-the-bot).

### 2\. **Register the Identity with "/saveid" Command**

Upload an image and register the Identity with the command `/saveid` for subsequent facial replacement and editing.

Front-view, high-quality ID photos without glasses or heavy bangs are preferred.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690963629493/1a1a89a9-c2d6-4a7c-99d4-8c4ba6a2c190.png?width=500 align="center")

For example, you could take a photo of Leonardo Decaprio and register it with the id "him".

### 3\. **Create a Portrait with Midjourney**

Create a portrait using Midjourney and choose one that you like.

Enlarge the selected image with the "U buttons."

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690963752138/88500330-ce75-429e-a758-50974d286c76.png align="center")

### 4\. **Utilize the "INSwapper"**

Right-click on the image, then select "Apps — INSwapper" from the dropdown menu.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690963787637/fbe16ef8-0c9b-452e-bf05-a5e871cff73b.png align="center")

The swapping process is typically completed quickly.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690963827698/ce055d0e-4c2f-4256-9e7d-a6a3d71b145b.png align="center")

### 5\. **Use Locally Stored Images (Optional)**

Insight Face can also process locally stored images using the `/swapid` command.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690963929373/5469dbe6-1549-4a5f-8308-61f0e561ff5f.png?width=500 align="center")

Hit enter to complete.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690966569034/f5aa74d5-5afb-4592-bee4-2e7941543dc1.png?width=400 align="center")

### **Major Commands You'll Need**

* **/saveid** name upload-ID-image:  
    Upload an image and register the ID.
    
* **/setid** name(s):  
    Set the identity name(s) for image generation.
    
* **/swapid** name(s) upload-ID-image:  
    Replace the face on the target image.
    
* **/listid**:  
    List all registered identity names (up to 20).
    
* **/delid name**:  
    Delete a specific identity name.
    
* **/delall**:  
    Delete all registered names.
    

### **Conclusion**

Face swapping on Midjourney using InsightFace is an exciting way to explore your creativity, create personalized portraits, or even blend identities for unique effects.

With just a few simple steps, you can generate impressive outcomes. This technology opens new doors for artists, designers, and casual users alike, offering a novel way to explore facial features and create captivating visual experiences.

I hope you enjoyed this article, and if you have any questions, comments, or feedback, then feel free to comment here or reach out via [**Twitter**](https://twitter.com/iamnamitg).

Thanks for reading!
