Experience our face swap technology in action by exploring our interactive demo on GitHub: AKool Face Swap Demo.
Important Notes
- You can get the
optsparameter (landmarks_str) through the Face Detect API - The Face Detect API returns a
landmarks_strvalue that should be used as the value ofopts - When using Face Detect API, set
single_face: trueto return only the largest face data, orfalseto return all detected faces - Ensure that the targetImage and sourceImage arrays are properly aligned and correspond to each other
Authorizations
Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
Body
application/json
A collection of faces in the original image
Replacement target image information
Modify the link address of the image
Whether facial enhancement (1 means open, 0 means close)
Available options:
0, 1 Callback url address based on HTTP request