Img Open English
  1. task query
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
      POST
    • Training result query
      POST
  • 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. task query

queryTaskInfoV2.0

POST
/AIGCImgOpenServ/saas/sd/v2/queryTaskInfo
img
The real-time status of the task can be queried (percentage/progress bar/intermediate picture); archived data query is not supported, only the current month is queried

Request

Header Params
X-Request-req-accessKeyId
string 
required
Example:
accessKeyId
X-Request-req-accessKeySecret
string 
required
Example:
accessKeySecret
Body Params application/json
businessTaskId
string 
required
Example
{
  "businessTaskId": "test10086555513"
}

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/sd/v2/queryTaskInfo' \
--header 'X-Request-req-accessKeyId: accessKeyId' \
--header 'X-Request-req-accessKeySecret: accessKeySecret' \
--header 'Content-Type: application/json' \
--data-raw '{
  "businessTaskId": "test10086555513"
}'

Responses

🟢200OK
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
id_task
string 
required
status
integer 
required
1: Generating 2: Success 0: Failure 3: Queuing 5: Task uploading
desc
string 
required
Details
temporaryImageDto
object  | null 
optional
Task generates intermediate state
differentialImageRspList
array [object {5}]  | null 
optional
Task result picture information
Example
{
    "code": "200",
    "msg": "success",
    "data": {
        "id_task": "test10086555513",
        "status": 2,
        "desc": "Success",
        "temporaryImageDto": null,
        "differentialImageRspList": [
            {
                "img_audit": [
                    {
                        "confidence": null,
                        "label": "nonLabel"
                    }
                ],
                "img_audit_status": true,
                "image_status": 1,
                "image_url": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/selfapi/8883/text2image/2023-10-11/1e682ad6-5b5c-470b-86c7-c88abdba6d00-0.png",
                "seed": 1063029203
            }
        ]
    }
}
Modified at 2024-08-08 11:51:54
Previous
queryTaskInfoV1.0
Next
queryImageToolTaskInfo
Built with