- AI image generation
- task query
- train model
- image tool
- Flux text2imagePOST
- Single Face Swap V1.0POST
- Single Face Swap V2.0POST
- instantIDPOST
- Face restorationPOST
- Super ResolutionPOST
- image descriptionPOST
- Multiple Face SwapPOST
- Face DetectionPOST
- Prompt expansionPOST
- Hairstyle changerPOST
- Object RemovalPOST
- Style recognitionPOST
- OutpaintingPOST
- CNT previewPOST
- background removePOST
- image enlargePOST
- image watermarkPOST
Super Resolution
POST
/AIGCImgOpenServ/saas/tool/enhance
Request
Header Params
X-Request-req-accessKeyId
string
optional
X-Request-req-accessKeySecret
string
optional
Body Params application/json
businessTaskId
string
Task ID
image
string
required
resizeMode
integer
optional
gfpganVisibility
number
optional
codeformerVisibility
number
optional
codeformerWeight
number
optional
upscalingResize
integer
Amplification factor
upscalingResizeW
integer
target width
upscalingResizeH
integer
target height
upscalingCrop
boolean
Crop
upscaler1
string
Main amplifier name
upscaler2
string
Secondary amplifier name
extrasUpscaler2Visibility
number
Secondary amplifier visibility
upscaleFirst
boolean
HD restoration priority
showExtrasResults
boolean
optional
callbackUrl
string
callback address
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,
"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 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
code
string
required
data
object
required
businessTaskId
string
required
outputImageUrl
string
required
status
integer
required
taskId
string
required
msg
string
required
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