Upscale
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/upscale
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/upscale' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"image": "{{base64 encoded image}}",
"upscaler_1": "R-ESRGAN 4x+",
"resize_mode": 1,
"upscaling_resize": null,
"upscaling_resize_w": 1024,
"upscaling_resize_h": 1024,
"upscaling_crop": true,
"upscaler_2": "R-ESRGAN 4x+",
"extras_upscaler_2_visibility": 0.5,
"gfpgan_visibility": 0.5,
"codeformer_visibility": 0.5,
"codeformer_weight": 0.5,
"img_expire_ttl": null
}'
响应示例响应示例
{
"code": null,
"msg": "",
"data": {
"task_id": "",
"warn": ""
}
}
请求参数
Header 参数
Authorization
string
必需
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-02-06 06:18:05