Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App

Upscale API

  • 2X
  • 4X
Enhance Image Resolution with a Single API Request

Boost the quality and resolution of any image effortlessly. Our AI-driven tool enhances your images, ensuring sharper details and clarity. (Proven with portraits, landscapes, products, and more.)

API Reference

Head
  • Server URL:
    https://api.slazzer.com/v2.0
  • Request Body:
    multipart/form-data
  • Method:
    POST
  • API:
    /upscale

Authorization

  • API-KEY :
    string
  • Your API key :
    xxxx xxxx xxxx xxxx
  • Get API Key
Parameters Request body
  • source_image_file

    Type :string ($binary)

    Required :Yes (Only one of the source_image_ parameters can be used in a single request.)

    Description :

    The source_image_file parameter uploads an image for background processing. By default, the API removes the background and returns a transparent PNG. Based on additional parameters, it can replace the background with a solid color or crop the image. It must be sent as a multipart/form-data request, processing one image at a time. Transparent PNGs retain transparency unless a background color is set.

    Supported Format :PNG, JPG, JPEG.

    Examples :source_image_file = @/path/to/image.png

    Important : Only one of the source_image_ parameters can be used in a single request. If multiple source_image_ parameters are included, the request will fail.
  • scale

    Type : string

    Required : No

    Description :

    The scale parameter determines the upscaling factor of the processed image. It allows you to enlarge the image while maintaining quality.

    Possible Values :
    • 2 (Default) - The image will be upscaled twice its original size.
    • 4 - The image will be upscaled four times its original size.
    Default Behavior :
    • If not specified, the default value is 2x, meaning the image will be upscaled twice its original size.

    Example : scale = 4

    Important :
    • 0.5 credit will be charged for 2x upscaling.
    • 1 credit will be charged for 4x upscaling.
    • Using 4x upscaling results in higher-quality enlargements but consumes more credits.
Response

Success

Request processed successfully!
Your request has been processed and completed. The response contains the result data or file as requested.

Binary image data

Error

Bad Request!
The request contains invalid parameters or input format. Please check the input and try again. (No credits were deducted.)

Example :
{
    "error": "Invalid input"
}

Error

Unauthorized!
Missing or invalid API key. Please provide a valid API key. (No credits were deducted.)

Example :
{
    "error": "invalid api key"
}

Error

Credits Required!
No credits remaining. Please top up your account to continue. (No credits were deducted.)

Example :
{
    "error": "No credits remaining"
}

Error

Rate Limit Exceeded!
Api rate limit crossed (No credit deducted)

Example :
{
    "error": "Api rate limit crossed"
}