Skip to main content
POST
Image Upscaler

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required
  • Image format: JPEG JPG PNG BMP.
  • Image size: No more than 3 MB.
  • Image resolution: Larger than 32x32px and smaller than 1920x1080px.
upscale_factor
enum<integer>
default:2

Magnification.

Available options:
2,
3,
4
mode
enum<string>
default:base

Image output mode.

  • 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.
Available options:
base,
enhancement
output_format
enum<string>
default:png

Output image format. If the input image is in RGBA format, the output is forced to png to preserve the RGBA format and alpha channel accuracy. If the output image resolution exceeds 3840x2160, the output format is automatically set to jpg.

Available options:
png,
jpg,
bmp
output_quality
integer
default:95

Quality factor of the output image, where a higher value corresponds to higher quality. Only applicable when output_format=jpg.

Required range: 30 <= x <= 100

Response

200 - application/json

Success

request_id
string
required

Request ID for debugging.

log_id
string
required

Log ID for debugging.

error_detail
object
required
data
object

The content of the result data returned.