# Remove.bg

remove_bg is an API that allows developers to automatically remove backgrounds from images using AI technology.

- **Category:** images & design
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 4
- **Triggers:** 0
- **Slug:** `REMOVE_BG`
- **Version:** 20260307_00

## Tools

### Remove Background

**Slug:** `REMOVE_BG`

Tool to remove background from an image. Use when you need a transparent or custom background for product or profile photos.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `roi` | string | No | Region of interest in pixels as 'left,top,width,height'. |
| `crop` | boolean | No | Crop to ROI if true. |
| `size` | string ("auto" | "preview" | "full") | No | Output image size. One of 'auto', 'preview', 'full'. |
| `type` | string ("auto" | "person" | "product") | No | Image category. One of 'auto', 'person', 'product'. |
| `scale` | number | No | Scale factor between 0.1 and 10.0. |
| `format` | string ("auto" | "png" | "jpg") | No | Output image format. One of 'auto', 'png', 'jpg'. |
| `bg_color` | string | No | Hex color '#RRGGBB' to fill background instead of transparency. |
| `channels` | string | No | Output channels. Only 'rgba' supported. |
| `position` | string ("center" | "original") | No | Position of subject: 'center' or 'original'. |
| `image_url` | string | No | URL of the image to process. Required if `image_file` is not provided. |
| `image_file` | string | No | Raw bytes of the image file to upload (multipart/form-data). Required if `image_url` is not provided. |
| `bg_image_url` | string | No | Background image URL to composite behind subject. |
| `bg_image_file` | string | No | Background image file bytes to composite behind subject. |

#### 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 |

### Get Account

**Slug:** `REMOVE_BG_GET_ACCOUNT`

Tool to retrieve account information, including current credit balance. Use when you need to know your remove.bg account's credit and usage details.

#### 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 |

### Submit Improvement

**Slug:** `REMOVE_BG_SUBMIT_IMPROVEMENT`

Tool to submit an image to the remove.bg Improvement program. Use when you want to contribute images that remove.bg cannot process properly to help improve the AI. By submitting images you agree to the Improvement Program Conditions. Limited to 100 files per day, max 22MB file size, up to 50 megapixels resolution.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tag` | string | No | Tag to group related images together. Images with the same tag are grouped. |
| `image_url` | string | No | URL of the image to submit. Required if `image_file` and `image_file_b64` are not provided. Only one image source parameter can be specified. |
| `image_file` | object | No | Image file to upload. Required if `image_file_b64` and `image_url` are not provided. Only one image source parameter can be specified. |
| `image_file_b64` | string | No | Base64-encoded image file string. Required if `image_file` and `image_url` are not provided. Only one image source parameter can be specified. |
| `image_filename` | string | No | Filename of the image. If not provided, it will be autodetected from the submitted data. |

#### 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 |
