Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App

Clothing Catalogue API

  • Model Photography
  • Visual Commerce
Generate Custom Clothing Images with AI-Powered Clothing API

Upload clothing images and describe model type, location, and background to instantly generate high-quality, customized clothing photos for your store or marketing needs.

API Reference

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

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 clothing visualization. The API processes the clothing image and places it on a virtual model in the desired environment.

    Supported Format :PNG, JPG, JPEG.

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

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

    Type :string

    Required :Yes

    Description :

    The model_type parameter specifies the type of model wearing the clothing. Choose an appropriate model based on gender and age group.

    Examples :
    • model_type = man
    • model_type = young lady
    • model_type = teenage boy
  • place

    Type :string

    Required :Yes

    Description :

    The place parameter determines the location where the virtual model wearing the clothing will be placed.

    Examples :
    • place = coffee shop
    • place = studio
    • place = fashion runway
  • background

    Type :string

    Required :No

    Description :

    The background parameter allows specifying a custom background based on the selected place. If not provided, a default background will be used.

    Examples :
    • background = warm lighting with vintage decor (for a coffee shop)
    • background = plain white backdrop with soft lighting (for a studio)
  • Important :
    • Be specific about the model type and place for accurate rendering.
    • 0.20 credit will be charged for each processing.
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"
}