- CV任务状态码信息附录
- 绘图信息
- 绘图任务
- 模型训练
- 绘图工具
- 图片检测
- 视频工具
- 音频工具
- 翻译
超分辨
POST
/AIGCImgOpenServ/saas/tool/enhance
请求参数
Header 参数
X-Request-req-accessKeyId
string
可选
X-Request-req-accessKeySecret
string
可选
Body 参数application/json
businessTaskId
string
任务ID
image
string
图片地址
resizeMode
integer
resize 模式 {0,1}
gfpganVisibility
number
[0, 1]
codeformerVisibility
number
[0, 1]
codeformerWeight
number
[0, 1]
upscalingResize
integer
放大系数
upscalingResizeW
integer
目标宽度
upscalingResizeH
integer
目标高度
upscalingCrop
boolean
裁剪
upscaler1
string
主要放大器名称
upscaler2
string
次要放大器名称
extrasUpscaler2Visibility
number
次要放大器的visibility
upscaleFirst
boolean
高清修复优先
showExtrasResults
boolean
可选
callbackUrl
string
回调地址
示例
{
"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"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
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"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
data
object
必需
businessTaskId
string
业务方任务ID
outputImageUrl
string
超分图片
status
integer
状态码
taskId
string
任务ID
msg
string
必需
示例
{
"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"
}
修改于 2024-06-15 02:17:36