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

Face Detection

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

Header Params
X-Request-req-accessKeyId
string 
optional
必填
Example:
accessKeyId
X-Request-req-accessKeySecret
string 
optional
必填
Example:
accessKeySecret
Body Params application/json
imageUrl
string 
Source image
required
The image url address passed by the user to provide facial information
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
Example
{
    "businessTaskId": "10086996",
    "imageUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png"
}

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/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

🟢200成功
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
taskId
string 
required
businessTaskId
string 
required
toolTask
string 
Task type
required
status
string 
Task status
required
faceUrls
array[string]
face image url
required
Example
{
    "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
Previous
Multiple Face Swap
Next
Prompt expansion
Built with