Important Notes
- sourceImage: You need to change it to the link collection of the face you need. Pass your image through the Face Detect API to obtain the link and key point data
- targetImage: Represents the collection of faces after face detection using modifyVideo. When the original video has multiple faces, here is the image link and key point data of each face
- When using Face Detect API, set
single_face: trueto return only the largest face data, orfalseto return all detected faces - Ensure that each picture in the sourceImage is a single face, otherwise the face change may fail
- You need to ensure that sourceImage and targetImage correspond to each other in order
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
Replacement target image information. You need to change it to the link collection of the face you need.
A collection of faces in the original video. Represents the collection of faces after face detection using modifyVideo.
The original video you need to change the face
Whether facial enhancement (1 means open, 0 means close)
Available options:
0, 1 Callback url address based on HTTP request