Image Faceswap
API Endpoints
Image Faceswap
Swap faces in images with high quality
POST
Image Faceswap
Documentation Index
Fetch the complete documentation index at: https://docs.akool.com/llms.txt
Use this file to discover all available pages before exploring further.
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
- Model Selection: To use different face swap models available on the official website, set
face_enhance: 0for Classic Model, andface_enhance: 1for HD Optimized model. For Clarity Boost and Identity Keeper models, please contact our sales and technical support team
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