Image Upscaler
开发环境
开发环境
POST
/api/image/enhance/image-lossless-enlargement
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/image/enhance/image-lossless-enlargement' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'upscale_factor=""' \
--form 'mode=""' \
--form 'output_format=""' \
--form 'output_quality=""'
响应示例响应示例
{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"url": ""
}
}
请求参数
Header 参数
ailabapi-api-key
string
必需
Body 参数multipart/form-data
image
file
必需
upscale_factor
string
必需
mode
string
必需
base
: Normal mode, i.e. stable super-resolution effect.enhancement
: Enhancement mode, which has a more prominent enhancement effect than the normal mode, further improving the clarity and sharpness of the output image.output_format
string
必需
output_quality
string
必需
output_format=jpg
.