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

Single Face Swap V1.0

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

Header Params
X-Request-req-accessKeyId
string 
optional
X-Request-req-accessKeySecret
string 
optional
Body Params application/json
sourceUrl
string 
源图片
required
The image url address passed by the user to provide facial information
targetUrl
string 
目标图片
required
The image url address passed by the user to accept facial information
businessTaskId
string 
任务ID
required
business id
Example
{
    "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 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/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

🟢200OK
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
taskId
string 
required
toolTask
string 
required
status
integer 
required
1: Success 2: Failure
outputImageUrl
string 
required
Example
{
    "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
Previous
Flux text2image
Next
Single Face Swap V2.0
Built with