# Background Remover API

> Background Remover is an image background removal API. Upload a photo or send its URL and it returns a PNG with the background made transparent, or replaced with a solid color you choose.

**Endpoint:** `POST https://api.apiverve.com/v1/backgroundremover`  
**Category:** Images  
**Cost:** 40 credits per call  
**Canonical page:** https://apiverve.com/marketplace/backgroundremover

## Overview

Background Remover runs the U2-Net salient object segmentation model on our own infrastructure, so your images are never sent to a third-party AI provider. It works best on photos with one clear subject, such as products, people, pets and vehicles, and returns a download URL for the finished PNG.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/backgroundremover" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@photo.jpg" \
  -F "bgColor=#ffffff"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | string | Yes | Image file upload (JPG, PNG, GIF, WebP, BMP, HEIC supported, max 10MB) |
| `bgColor` | string | No | Optional hex color to fill the background with (e.g. #ffffff). Omit for a transparent background.. hexColor |

## Response fields

- `id` — string · Unique identifier for the generated image file
- `width` — number · Width of the output image in pixels (same as the input)
- `height` — number · Height of the output image in pixels (same as the input)
- `background` — string · Background applied: "transparent" or the hex color used
- `foregroundRatio` — number · Share of the image kept as foreground, from 0 to 1 · (premium)
- `outputSize` — number · File size in bytes of the output PNG · (premium)
- `mimeType` — string · MIME type of the output file (always image/png)
- `expires` — number · Unix timestamp in milliseconds when the download URL expires
- `downloadURL` — string · Direct URL to download the output PNG

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "id": "3f6c2a91-7d4e-4b8a-9c21-5e0d8b7a6f13",
    "width": 700,
    "height": 577,
    "background": "transparent",
    "foregroundRatio": 0.3778,
    "outputSize": 806519,
    "mimeType": "image/png",
    "expires": 1761000000000,
    "downloadURL": "https://storage.googleapis.com/apiverve/backgroundremover/3f6c2a91-7d4e-4b8a-9c21-5e0d8b7a6f13.png"
  },
  "code": 200
}
```

## Use cases

- **Marketplace Product Listings** — Sellers upload phone photos of items and the listing tool swaps the cluttered background for plain white before the product page goes live.
- **Profile Photo Cleanup** — Team directories cut employees out of casual snapshots and place them on a consistent brand color so every profile card matches.
- **Sticker and Design Tools** — Design apps let users drop a photo onto a canvas and get the subject back as a transparent PNG they can layer, resize and recolor.
- **Catalog Image Pipelines** — Retail catalog jobs batch-process supplier photos into transparent cutouts so merchandisers can composite them onto seasonal banners.

## More

- Full reference: https://docs.apiverve.com/ref/backgroundremover
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
