Run in Apifox
Two pictures with human faces are passed in and are recorded as source_image and target_image respectively. The algorithm copies the face in source_image to target_image to generate a new picture. The anti-parameter is the asynchronous interface response
Request Body Params application/json
{
"sourceUrl" : "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png" ,
"targetUrl" : "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/DALL%C2%B7E%202023-11-20%2010.06.53%20-%20Photo-realistic%20illustration%20of%20Liming%20from%20image%20x1%2C%20leaving%20his%20hometown%20and%20embarking%20on%20a%20journey%20to%20the%20Xinjiang%20Production%20and%20Construction%20Corp.png" ,
"businessTaskId" : "111612"
} Request Code Samples
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/roop' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png",
"targetUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/DALL%C2%B7E%202023-11-20%2010.06.53%20-%20Photo-realistic%20illustration%20of%20Liming%20from%20image%20x1%2C%20leaving%20his%20hometown%20and%20embarking%20on%20a%20journey%20to%20the%20Xinjiang%20Production%20and%20Construction%20Corp.png",
"businessTaskId": "111612"
}' Responses application/json Generate Code
{
"code" : "200" ,
"msg" : "success" ,
"data" : {
"taskId" : "1116" ,
"toolTask" : "roop" ,
"status" : 1 ,
"outputImageUrl" : "https://aigcoss.zhiqiteai.cn/Output-Img2/roop/pro1703734845555845969817.png"
}
} Modified at 2024-08-09 00:43:34