Img Open English
  1. image tool
Img Open English
  • AI image generation
    • sd text2image
      POST
    • sd Image to Image
      POST
    • sd controlnet
      POST
    • QueryModelList
      POST
    • QueryLoralList
      POST
    • QueryVaeList
      POST
    • queryEmbeddingList
      POST
  • task query
    • queryTaskInfoV1.0
      POST
    • queryTaskInfoV2.0
      POST
    • queryImageToolTaskInfo
      POST
  • train model
    • Submit training task
    • Training result query
  • image tool
    • Flux text2image
      POST
    • Single Face Swap V1.0
      POST
    • Single Face Swap V2.0
      POST
    • instantID
      POST
    • Face restoration
      POST
    • Super Resolution
      POST
    • image description
      POST
    • Multiple Face Swap
      POST
    • Face Detection
      POST
    • Prompt expansion
      POST
    • Hairstyle changer
      POST
    • Object Removal
      POST
    • Style recognition
      POST
    • Outpainting
      POST
    • CNT preview
      POST
    • background remove
      POST
    • image enlarge
      POST
    • image watermark
      POST
  1. image tool

Multiple Face Swap

POST
/AIGCImgOpenServ/saas/tool/face/fusion
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

Body Params application/json

Example
{
    "businessTaskId": "10086996",
    "sourceUrl": ["https://aigcoss.zhiqiteai.cn/Output-Img2/zjy/pic3-1.png", "https://aigcoss.zhiqiteai.cn/Input-Img/superJ/8696fa0a-6dfc-4907-97fc-a4db0c24a04a.jpeg"],
    "targetUrl": "https://aigcoss.zhiqiteai.cn/Input-Img/superJ/151b18c7-7e2b-4313-8d21-65de676ef264.jpeg"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/face/fusion' \
--header 'X-Request-req-accessKeyId: accessKeyId' \
--header 'X-Request-req-accessKeySecret: accessKeySecret' \
--header 'Content-Type: application/json' \
--data-raw '{
    "businessTaskId": "10086996",
    "sourceUrl": ["https://aigcoss.zhiqiteai.cn/Output-Img2/zjy/pic3-1.png", "https://aigcoss.zhiqiteai.cn/Input-Img/superJ/8696fa0a-6dfc-4907-97fc-a4db0c24a04a.jpeg"],
    "targetUrl": "https://aigcoss.zhiqiteai.cn/Input-Img/superJ/151b18c7-7e2b-4313-8d21-65de676ef264.jpeg"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "code": "200",
    "msg": "success",
    "data": {
        "taskId": "pre1715827520336429778183",
        "businessTaskId": "10086996",
        "toolTask": "faceFusion",
        "status": 1,
        "outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/roop/pro1703734845555845969817.png"
    }
}
Modified at 2024-08-09 01:09:39
Previous
image description
Next
Face Detection
Built with