Supports users to upload two original pictures and one target picture. The target picture is similar to a photo of two people. Based on this interface, the face of the original picture can be replaced into the target picture.
Request
Header Params
X-Request-req-accessKeyId
string
optional
必填
Example:
accessKeyId
X-Request-req-accessKeySecret
string
optional
必填
Example:
accessKeySecret
Body Params application/json
sourceUrl
array[string]
Source image
required
The image url address passed by the user to provide facial information
>= 1 items<= 2 items
targetUrl
string
target image
required
The image url address passed by the user to accept facial information
faceIdx
integer
optional
Used when changing one face among multiple faces The faces in the source need to be replaced with the specific serial numbers of the multiple faces in the target. The order of faces is from left to right according to their position in the image; if there are three faces in the tager image, the value range of face_idx is [1, 3]
businessTaskId
string
required
callbackUrl
string
optional
Some of the interfaces used to return drawing results from the server are asynchronous interfaces. Please check the remarks. Only when the json string code = 200 received in the response will we mark the request as successful, such as {"code":"200"} and the ladder interval to retry 3. , 5, 15, 30, 60, 600, 3600 seconds, retry up to 10 times