Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App
icon-ai-upscale.svg

AI Upscale makes your images sharper, clearer, and high-resolution without pixelation or blur.

AI upscale your photos, instantly Try Now
icon-ai-shadow.svg

AI Shadow adds natural, photorealistic depth, making your images look like professional studio shots.

AI generate shadows, instantly Try Now
icon-deoldify.svg

AI De-oldify restores and colorizes old photos, bringing timeless memories back to life in vivid detail.

AI deoldify your photos, instantly Try Now
icon-ai-enhance.svg

AI Enhance perfects lighting, contrast, and color automatically, letting every photo shine brighter.

AI enhance your photos, instantly Try Now
icon-sky-change.svg

AI Sky Replacement instantly swaps dull skies with stunning, realistic backdrops for picture-perfect shots.

AI replace your sky, instantly Try Now
icon-sky-change.svg

AI Relighting transforms the mood of your photos by adjusting brightness and lighting direction instantly.

AI relight your photos, instantly Try Now

AI Background API

  • Background Magic
  • AI Background Changer
Remove or Replace Backgrounds Instantly with AI Background API

Our AI-powered API allows you to remove or replace backgrounds in images quickly and effortlessly, perfect for e-commerce, marketing, and design projects.

API Reference

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

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

    Description :

    The source_image_file parameter uploads an image for background processing. The API replaces the existing background with an AI-generated background based on the provided text prompt.

    Supported Format :PNG, JPG, JPEG.

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

    Important :
    • 0.10 credit will be charged for each generated image.
  • text_prompt

    Type :string

    Required :Yes

    Description :

    The text_prompt parameter provides a textual description of the desired background. The API generates a background that matches the given description and replaces the original background of the image.

    Examples :
    • text_prompt = A beach at sunset with palm trees and ocean waves.
    Important :
    • Be specific about the background details for better results.
    • 0.10 credit will be charged for each generated Image.
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"
}