Run in Apifox
Multiple faces in the target image need to be detected first and displayed to the user on the front end, so that the correct face replacement correspondence can be set. This interface is to detect all faces in the picture
Request Body Params application/json
{
"businessTaskId" : "10086996" ,
"imageUrl" : "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png"
} Request Code Samples
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/face/detection' \
--header 'X-Request-req-accessKeyId: accessKeyId' \
--header 'X-Request-req-accessKeySecret: accessKeySecret' \
--header 'Content-Type: application/json' \
--data-raw '{
"businessTaskId": "10086996",
"imageUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png"
}' Responses application/json Generate Code
{
"code" : "200" ,
"data" : {
"businessTaskId" : "10086996" ,
"toolTask" : "faceDetection" ,
"faceUrls" : [
"https://aigcoss.zhiqiteai.cn/Output-Img2/tool/faceDetection/pre1717727539423845581626-0.png"
] ,
"status" : 2 ,
"taskId" : "pre1717727539423845581626"
} ,
"msg" : "success"
} Modified atΒ 2024-08-09 01:12:06