Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App

De-oldify API

  • Image-colorization
  • Old-photo-enhancement
Colorize Black & White Images with a Single API Call

Our AI-powered API restores and enhances old black-and-white photos by adding realistic colors. Perfect for historical images, portraits, landscapes, and more.

API Reference

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

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 colorization processing. The API adds realistic colors to black-and-white images, enhancing vibrancy, contrast, and overall visual quality.

    Supported Format :PNG, JPG, JPEG.

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

    Important :
    • 0.20 credit will be charged for each processing.
  • render_factor

    Type : string

    Required : No

    Description :

    The render_factor parameter controls the quality and speed of the colorization process. Higher values produce more accurate and detailed results but may take longer to process, while lower values result in faster processing with slightly less detailed colorization.

    Possible Values :
    • 20 (Default) - Standard colorization quality and speed.
    • 7 to 40 - The range of values for adjusting the quality and processing time.
    Default Behavior :
    • If not specified, the default value is 20, offering a balance between quality and speed.

    Example : render_factor = 30

    Important :
    • 0.20 credit will be charged for each processing, regardless of the render factor.
    • Higher render_factor values result in better colorization but may increase processing time.
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"
}