> ## Documentation Index
> Fetch the complete documentation index at: https://magicads.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Faceswap

> Seamlessly swap faces in your images with Faceswap Extension

<Warning>This is a **Paid** extension that you need to first purchase via **Marketplace**</Warning>

## Extension Configuration

To be able to use Faceswap feature, follow these steps to setup Faceswap Extension.

<Steps>
  <Step title="Step 1">
    Go to the **Marketplace** in **Admin Panel** and install **Faceswap** extension after successfully purchasing it first.

    <img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/extensions/faceswap/swap-1.png?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=aceccca7de873b9f4cc25f541e120205" width="402" height="261" data-path="images/extensions/faceswap/swap-1.png" />
  </Step>

  <Step title="Step 2">
    After installation is completed, go to **AI Settings** page in Admin Panel and click on **Extensions** tab there. Click on **Faceswap** there.

    <img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/extensions/faceswap/swap-2.png?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=514020b31be5de7ff2d15da4117f2b09" width="542" height="103" data-path="images/extensions/faceswap/swap-2.png" />
  </Step>

  <Step title="Step 3">
    Go to <a href="https://piapi.ai/" target="_blank">piapi.ai</a> website, sign up with them and get your **API Key** on your profile page after you successfully complete the registration process on their website.
    <Note>Store your API key securely and never share it publicly. The key provides direct access to your account.</Note>
  </Step>

  <Step title="Step 4">
    To control the settings of **Faceswap** exension, return to **AI Settings** page in Admin Panel and click on the **Extensions** tab, and select **Faceswap** extension.

    1. Enter your **Faceswap API Key**.
    2. Turn on the checkboxes for **Faceswap  Feature** and **Faceswap  Free Tier Access**
       <Note>If you don't turn on Faceswap Free Tier Access, then users who did not subscribe to any subscription plan where you have Faceswap feature enabled, will not have any access to this feature</Note>
    3. Under the **Media credits per task** section, set how much media credits each task will require. Davinci AI gives you full control on how you want to charge your users based on media tasks.
    4. After you are done with configuration, click on the **Save** button.

    <img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/extensions/faceswap/swap-3.png?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=d4379d6672d2c5205cf1d24a478f175f" width="802" height="766" data-path="images/extensions/faceswap/swap-3.png" />
  </Step>

  <Step title="Step 5">
    You now have completed the Faceswap extension configuration. Proceed to the section below on how to use it.
  </Step>
</Steps>

## How to Use

Using Faceswap extension is very easy and straightforward.

1. Go to **AI Faceswap** in User panel.
2. Provide **Title** for your task if needed
3. Upload **Target Image**, must be in **PNG or JPEG** formats. It is the image you want to use for replacing the face image there.
4. Upload **Swap Image**, must be in **PNG or JPEG** formats. It is the face image that you will see in the final result.
5. Click **Swap Faces** button and that is it.

<img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/extensions/faceswap/swap-4.png?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=27ae281c24b7c03a82194d2fd3513d24" width="1087" height="732" data-path="images/extensions/faceswap/swap-4.png" />

<img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/extensions/faceswap/swap.webp?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=bf3eb8206ce3ab66eb6c60436ea4bdec" width="520" height="530" data-path="images/extensions/faceswap/swap.webp" />

<Check>
  You have successfully comleted the setup process of this extension.
</Check>
