---
canonical_url: "https://docs.composio.dev/toolkits/slazzer"
markdown_url: "https://docs.composio.dev/toolkits/slazzer.md"
product: "platform"
version: null
last_updated: null
---

# Slazzer

Slazzer provides AI-powered image background removal, enhancement, relighting, generation, and catalog image processing APIs.

- **Category:** images & design
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 9
- **Triggers:** 0
- **Slug:** `SLAZZER`
- **Version:** 00000000_00

## Tools

### Colorize Old Photo

**Slug:** `SLAZZER_COLORIZE_OLD_PHOTO`

Colorize and restore a black-and-white photo and return the result as a downloadable image. Processing costs one Slazzer credit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `render_factor` | integer | No | Detail factor from 7 to 40. Higher values may improve detail but take longer; processing costs one credit. |
| `source_image_file` | object | Yes | Black-and-white PNG or JPEG photo to colorize and restore. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Catalog Image

**Slug:** `SLAZZER_CREATE_CATALOG_IMAGE`

Create a catalog-ready grocery, food, or furniture image using the matching Slazzer scene model.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `seed` | integer | No | Seed for repeatable scene generation. |
| `padding` | string | No | One or four pixel or percent values in top, right, bottom, left order; each value may be at most 49% of the subject size. |
| `relighting` | boolean | No | Relight the product to match the generated scene. |
| `canvas_size` | string | No | Output size in WIDTHxHEIGHT form; defaults upstream to the input size. |
| `text_prompt` | string | No | Desired generated scene. Required for furniture catalogs and optional for grocery or food catalogs. |
| `catalog_type` | string ("grocery" | "food" | "furniture") | Yes | Catalog model to use: grocery, food, or furniture. |
| `scaling_mode` | string ("fit" | "fill") | Yes | Fit preserves the full aspect ratio; fill may crop the product. |
| `reference_type` | string ("subject" | "original") | No | Use the extracted subject or original image as the composition reference. |
| `background_color` | string | No | Solid catalog background in #RRGGBB form. |
| `source_image_file` | object | Yes | PNG or JPEG product image. |
| `background_image_file` | object | No | Custom catalog background image. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Edit Automobile Image

**Slug:** `SLAZZER_EDIT_AUTOMOBILE_IMAGE`

Remove or replace an automobile background, optionally add a shadow or overlay or segment its number plate, and return the processed image, mask, or ZIP.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `crop` | boolean | No | Crop transparent pixels around the automobile. |
| `scale` | string | No | Automobile scale from 10% to 100%. |
| `format` | string ("png" | "jpg" | "zip") | No | Output format. |
| `channel` | string ("rgba" | "alpha") | No | Return the color result or alpha mask. |
| `preview` | boolean | No | Return a lower-resolution preview. |
| `position` | string | No | Percentage placement; requires scale. |
| `car_shadow` | boolean | No | Add an artificial automobile shadow. |
| `crop_margin` | string | No | Pixel or percentage margins used when crop is true. |
| `background_color` | string | No | Solid replacement background in #RRGGBB form. |
| `source_image_url` | string | No | Public source image URL; provide exactly one source image input. |
| `source_image_file` | object | No | Source PNG or JPEG file; provide exactly one source image input. |
| `number_plate_image` | object | No | Image to overlay on a detected number plate. |
| `source_image_base64` | string | No | Base64 source image; provide exactly one source image input. |
| `background_image_url` | string | No | Public replacement background URL; use at most one background image input. |
| `background_image_file` | object | No | Replacement background image file; use at most one background image input. |
| `background_image_base64` | string | No | Base64 replacement background image; use at most one background image input. |
| `number_plate_segmentation` | boolean | No | Return a plate segmentation alpha mask when a plate is detected. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Enhance Image Colors

**Slug:** `SLAZZER_ENHANCE_IMAGE_COLORS`

Improve an image's color, contrast, vibrancy, and visual quality and return the result as a downloadable image. Processing consumes 1 Slazzer credit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_image_file` | object | Yes | PNG or JPEG image to enhance. Processing costs 1 Slazzer credit. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Image Shadow

**Slug:** `SLAZZER_GENERATE_IMAGE_SHADOW`

Apply an AI-generated studio shadow to a PNG or JPEG product image and return the result as a downloadable file. Processing costs 0.20 Slazzer credit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `shadow_opacity` | number | No | Shadow opacity from 0.1 to 1.0. Processing costs 0.20 credit. |
| `background_color` | string | No | Background color in 0xRRGGBB form. |
| `source_image_file` | object | Yes | PNG or JPEG product image to which the shadow will be applied. |
| `light_source_position` | string ("long" | "short" | "top" | "left") | Yes | Light direction or shadow character. This field is required because Slazzer does not apply its documented default. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Relight Image

**Slug:** `SLAZZER_RELIGHT_IMAGE`

Relight a PNG or JPEG image with a selected brightness multiplier and return the result as a downloadable image. Processing costs one Slazzer credit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `brightness_factor` | number | No | Output brightness multiplier from 1.0 to 2.0. Processing costs 1 credit. |
| `source_image_file` | object | Yes | PNG or JPEG image to relight. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Remove Image Background

**Slug:** `SLAZZER_REMOVE_IMAGE_BACKGROUND`

Remove an image background, optionally replace it, and return the processed image or alpha mask as a downloadable file.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `roi` | string | No | Four pixel or percentage coordinates defining the foreground region of interest. |
| `crop` | boolean | No | Crop transparent pixels around the subject. |
| `scale` | string | No | Subject scale from 10% to 100%. |
| `format` | string ("png" | "jpg" | "zip") | No | Output format; ZIP contains the color image and alpha matte. |
| `channel` | string ("rgba" | "alpha") | No | Return the color result or only the alpha mask. |
| `preview` | boolean | No | Return a lower-cost 0.25 MP preview. |
| `position` | string | No | One or two percentage coordinates for subject placement; requires scale. |
| `car_shadow` | boolean | No | Add an artificial shadow for a car image. |
| `crop_margin` | string | No | Margin used when crop is true, as one, two, or four CSS-like px or percent values. |
| `background_color` | string | No | Solid replacement background in #RRGGBB form. |
| `source_image_url` | string | No | Public source image URL; provide exactly one source image input. |
| `source_image_file` | object | No | Source PNG or JPEG file; provide exactly one source image input. |
| `source_image_base64` | string | No | Base64 source image, optionally as a data URI; provide exactly one source image input. |
| `background_image_url` | string | No | Public replacement background image URL; use at most one background image input. |
| `background_image_file` | object | No | Replacement background image file; use at most one background image input. |
| `background_image_base64` | string | No | Base64 replacement background image; use at most one background image input. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Replace Sky

**Slug:** `SLAZZER_REPLACE_SKY`

Replace an image's sky or background with another image or a solid color and return the processed file. Processing consumes 1 Slazzer credit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `background_color` | string | No | Replacement color in #RRGGBB form; provide this or background_image_file. |
| `source_image_file` | object | Yes | PNG or JPEG image whose sky or background should be replaced. |
| `background_image_file` | object | No | Replacement sky or background image; provide this or background_color. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Upscale Image

**Slug:** `SLAZZER_UPSCALE_IMAGE`

Upscale a PNG or JPEG image by 2x or 4x and return the result as a downloadable file.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `scale` | string ("2" | "4") | No | Upscaling factor. 2x costs 0.5 credit and 4x costs 1 credit. |
| `source_image_file` | object | Yes | PNG or JPEG image to upscale. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
