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

queryTaskInfoV1.0

POST
/AIGCImgOpenServ/saas/sd/queryTaskInfo
Query task information based on business ID

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 
task_id
required
Example
{
    "businessTaskId": "string"
}

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

Responses

🟢200OK
application/json
Body
code
string 
required
200 Success 400 Failure 402 Task does not exist
msg
string 
required
data
object 
required
task_id
string 
required
status
integer 
required
0 means generating, 1 means success, 2 means failure.
desc
string 
required
differentialImageRspList
array [object {5}] 
image information
required
Example
{
    "code": "200",
    "msg": "success",
    "data": {
        "task_id": "20000051",
        "status": 2,
        "desc": "success",
        "differentialImageRspList": [
            {
                "img_audit": [
                    {
                        "confidence": null,
                        "label": "nonLabel"
                    }
                ],
                "img_audit_status": true,
                "image_status": 1,
                "image_url": "https://aigcoss.dobestai.com/api/outputs/txt2img-images/2023-06-13/05470-3247563571.png",
                "seed": 3247563571
            }
        ]
    }
}
Modified at 2024-08-08 11:48:20
Previous
queryEmbeddingList
Next
queryTaskInfoV2.0
Built with