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

Background successfully removed!
Your image has been processed, and the background is now removed. You can now download or use it as you wish.

Binary image data

Error

Background removed failed!
The request could not be processed due to invalid parameters or an unsupported image format. Ensure the input image meets the required format and size specifications, then try again. (No credits were deducted for this request.)

Example :
{
    "error": "Source image file not found"
}

Error

Background removed failed!
API-KEY missing or invalid API-KEY (No credit deducted)

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

Error

Background removed failed!
No credits remaining (No credit deducted)

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

Error

Background removed failed!
Api rate limit crossed (No credit deducted)

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

Output Formats

Easily request any one of the 2 formats via our format parameter.
Format Resolution
png
  • Upto 10 MP , Ex - 3872 x 2592
jpg
  • Upto 25 MP , Ex - 6250 x 4000

*Please note that PNG images above 10 megapixels are not supported by default. If you do not require transparency we recommend using the JPG format.

API Rate Limit

You can instantly process upto 500 images per minute via the API, but depending on the input image megapixel resolution.
Input image Megapixels Rate Limit approx
625 x 400 1 MP 500 images per minute
1200 x 800 1 MP 500 images per minute
1600 x 1200 2 MP 250 images per minute
2500 x 1600 4 MP 125 images per minute
4000 x 2500 10 MP 50 images per minute
6250 x 4000 25 MP 20 images per minute

Error code 429 will return if api rate limit exceed & no credit will be charged.

Higher api rate limits are available for enterprise customers. Contact Us