Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/deepfake/multiple_face_swap' \

Body

json
{  
    "key": "enterprise_api_key",  
    "init_image":"https://i.pinimg.com/564x/4c/6a/d0/4c6ad0f74a3a251344cb115699a9a7c9.jpg",  
    "target_image":"https://i.pinimg.com/564x/11/ac/0d/11ac0ddaf6962e395f30abc61043393e.jpg",  
    "base64":false,
    "webhook": null,  
    "track_id": null
}

Body Attributes

key
string
required
Your API Key used for request authorization.
init_image
string
required
The first image containing a face to be swapped. (URL string)
target_image
string
required
The second image containing a face to replace the first image. (URL string)
base64
boolean
default:"false"
If provided init_image is in base64 format or if you want generated images as base64 string, set to true. Default: false.
webhook
string
Set a URL to receive a POST API call once the image generation is complete.
track_id
string
This ID is returned in the response to the webhook API call. Used to identify the webhook request.