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

image description

POST
/AIGCImgOpenServ/saas/tool/interrogate
iamge to text; anti-parameter is asynchronous interface response

Request

Header Params
X-Request-req-accessKeyId
string 
optional
X-Request-req-accessKeySecret
string 
optional
Body Params application/json
businessTaskId
string 
required
image
string 
image url
required
model
string 
optional
Specific usage model, current value ['clip', 'deepdanbooru']
callbackUrl
string 
required
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": "1008641511",
    "image": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/111.png",
    "model": "clip"
}

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/interrogate' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "businessTaskId": "1008641511",
    "image": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/111.png",
    "model": "clip"
}'

Responses

🟢200OK
application/json
Body
code
string 
required
data
object 
required
businessTaskId
string 
required
caption
string 
Description text
required
status
integer 
required
1: Generating 2: Success 0: Failure
taskId
string 
required
msg
string 
required
Example
{
    "code": "200",
    "data": {
        "businessTaskId": "1008464122",
        "caption": "a close up of a doll with long hair and blue eyes and a bow in her hair and a necklace, Alice Prin, realistic eyes, a photorealistic painting, gothic art",
        "status": 1,
        "taskId": "test1705047542608738174022"
    },
    "msg": "success"
}
Modified at 2024-08-09 01:02:53
Previous
Super Resolution
Next
Multiple Face Swap
Built with