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

Super Resolution

POST
/AIGCImgOpenServ/saas/tool/enhance
Super-resolution processing of images; anti-parameter is asynchronous interface response~

Request

Header Params

Body Params application/json

Example
{
  "businessTaskId": "100846412",
  "resizeMode": 1,
  "showExtrasResults": true,
  "gfpganVisibility": 0,
  "codeformerVisibility": 0,
  "codeformerWeight": 0,
  "upscalingResize": 2,
  "upscalingResizeW": 2048,
  "upscalingResizeH": 2048,
  "upscalingCrop": false,
  "upscaler1": "ESRGAN_4x",
  "upscaler2": "None",
  "extrasUpscaler2Visibility": 1.0,
  "upscaleFirst": true,
  "image": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/selfapi/120/text2image/2024-01-11/147f64d5-25a9-40c3-b7bb-d7fc2aadb3b6-0.png"
}

Request Code 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/enhance' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "businessTaskId": "100846412",
  "resizeMode": 1,
  "showExtrasResults": true,
  "gfpganVisibility": 0,
  "codeformerVisibility": 0,
  "codeformerWeight": 0,
  "upscalingResize": 2,
  "upscalingResizeW": 2048,
  "upscalingResizeH": 2048,
  "upscalingCrop": false,
  "upscaler1": "ESRGAN_4x",
  "upscaler2": "None",
  "extrasUpscaler2Visibility": 1.0,
  "upscaleFirst": true,
  "image": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/selfapi/120/text2image/2024-01-11/147f64d5-25a9-40c3-b7bb-d7fc2aadb3b6-0.png"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code": "200",
    "data": {
        "businessTaskId": "1008464122",
        "outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/tool/enhance/extras-images/2024-01-12/8e792c3c-b220-4264-8703-b7174a81b25a-0.png",
        "status": 1,
        "taskId": "test1705047542608738174022"
    },
    "msg": "success"
}
Modified at 2024-08-09 00:58:24
Previous
Face restoration
Next
image description
Built with