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/single_face_swap' \

Body

json
{    
    "key":"enterprise_api_key",    
    "init_image":" https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/DTs2zg3HELltVoQElpO3ec0f9BsAtS-metaNzExMTY5My1zYWxtYW4ta2hhbi1zaGFocnVraC1raGFuLTJbMV0ucG5n-.png",    
    "target_image":"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/jznUIJy6FoM1nUkXZBCvhyrlbetau1-metabGljZW5zZWQtaW1hZ2UuanBn-.jpg",    
    "reference_image":"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/9Mhbi9i0r9ADMfTpwTOqmyEQQyb6AK-metaSEQtd2FsbHBhcGVyLXNoYWhydWtoLWtoYW4tc3JrLWFjdG9yLWhlcm9bMV0uanBn-.jpg",    
    "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 the face to be swapped. (URL string)
target_image
string
required
The second image containing the face to replace the face in the initial image. (URL string)
reference_image
string
required
The reference image of the particular face you want to swap from the init image. (URL string)
watermark
bool
default:"true"
Whether the generated result should have a watermark. Available options: true, false
webhook
string
Provide a URL to receive a POST API call once the image generation is complete.
track_id
string
This ID is included in the webhook API call to identify the request.