AILabTools API - Image Upscaler - API


  • URL:
  • Method: POST
  • Content-Type: multipart/form-data

Image requirements

  • Image format: JPEG JPG PNG BMP
  • Image size: No more than 3 MB.
  • Image resolution: Larger than 32x32px, smaller than 1920x1080px.
Field Required Type Description
ailabapi-api-key YES string Application API KEY.


Field Required Type Scope Defaults Description
image YES file
upscale_factor NO integer
  • 2
  • 3
  • 4
  • 2 Magnification.
    mode NO string
  • base
  • enhancement
  • 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.
  • Response


    Field Type Description
    error_code integer Status Code.
    error_code_str string Error Code.
    error_msg string Error Message.
    request_id string Request ID.
    log_id string Log ID.
    data object The content of the result data returned.
    +url string URL address of the image after resolution enlargement, image format is PNG.

    [!NOTE|style:flat] The URL address is a temporary address, valid for 24 hours, and will not be accessible after it expires. If you need to save the file for a long time or permanently, please visit the URL address within 24 hours and download the file to your own storage space.


      "error_code": 0,
      "error_code_str": "",
      "error_msg": "",
      "request_id": "",
      "log_id": "",
      "data": {
        "url": ""

    Code example

    Copyright © 2023 AILabTools all right reservedFile Modify: 2023-06-13

    results matching ""

      No results matching ""