Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App

Relighting API

  • Lighting-enhancement
  • Brightness-adjustment
Enhance Photo Lighting in Seconds with AI Relighting with a Single API Call

Our AI-powered API enables you to relight images, enhancing their visual appeal and quality. Whether you want to adjust brightness, contrast, or overall lighting, our API provides a simple and effective solution for image relighting.

API Reference

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

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_file 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 :
    • 1.0 credit will be charged for each processing.
  • brightness_factor

    Type : string

    Required : No

    Description :

    The brightness_factor parameter adjusts the brightness level of the output image. This can be useful when relighting results appear too dark or too bright. Use 1.0 for normal brightness, lower for darker, and higher for brighter output.

    Possible Values :
    • 1.15 (Default) - brightness adjustment.
    • 1.0 to 2.0 - The range of values for adjusting the brightness factor.
    Default Behavior :
    • If not specified, the default value is 1.15 , offering a balanced brightness level.

    Example : brightness_factor = 1.18

    Important :
    • 1.0 credit will be charged for each processing, regardless of the render factor.
    • The value has a direct impact on image brightness but not on processing speed.
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"
}