canonical: https://jentic.com/apis/remove.bg/background-removal-api

# Remove Bg Background Removal API

Remove the background of any image. The API exposes 3 endpoints secured with apiKey authentication.

## For AI agents

Programmatically remove the background of an image, fetch credit balance and free API calls.. Covers 3 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or crm - use for media and content only.

## Capabilities

- Remove the background of an image
- Fetch credit balance and free API calls.
- Integrate Background Removal API into automated workflows
- Query and filter Background Removal API records by parameters
- Monitor Background Removal API operational status and events

## Use cases

### Media and Content Operations

Use the Background Removal API to perform media operations programmatically. The API provides 3 endpoints covering core functionality including remove the background of an image, fetch credit balance and free API calls..

Example prompt: Call POST /removebg to remove the background of an image

### Data Retrieval and Monitoring

Query Background Removal API resources on a schedule to track changes, generate alerts, or feed downstream dashboards. Agents poll relevant endpoints, compare against previous state, and trigger actions when thresholds are crossed.

Example prompt: Poll the primary Background Removal API endpoint, compare response to last known state, and alert if changed

### AI Agent Integration via Jentic

AI agents discover and call Background Removal API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'remove the background of an image', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /removebg | Remove the background of an image |
| GET | /account | Fetch credit balance and free API calls. |

## Key resources

- **Account** — Operations for account
- **Improve** — Operations for improve
- **Removebg** — Operations for removebg

## Why Jentic

- **Setup:** Wiring this Background Removal API by hand means sending its X-API-Key header to api.remove.bg and handling its image upload and account endpoints yourself. Through Jentic you install once, import it from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** This API identifies the image in the request body rather than the URL path, so limit the agent to the operations it needs, such as removing a background or checking the account. You choose the operations it may call, so account calls are not included unless you add them.
- **Credential handling:** Your remove.bg API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'remove the background of an image' or 'check account credits', and Jentic returns the matching operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Cloudinary** — Alternative media API
- **Mux** — Alternative media API

## FAQ

### What authentication does the Background Removal API use?

The Background Removal API uses an API key passed in the `X-API-Key` header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I remove the background of an image with the Background Removal API?

Yes. Use the POST /removebg endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Background Removal API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I remove the background of an image through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'remove the background of an image'. Jentic returns the matching Background Removal API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Background Removal API have?

The Background Removal API exposes 3 endpoints covering account, improve, removebg operations.

### Can I limit what my agent is allowed to do with the Background Removal API?

Yes. Because you run Jentic One yourself, your own rules decide which operations and credentials the agent may use, so you can restrict it to just the calls it needs. For example, you can allow the agent to remove backgrounds with POST /removebg while withholding the GET /account credit-balance operation, which stays out of reach unless you explicitly add it. Since the image is passed in the request body rather than the URL path, scoping happens at the operation level: the agent can only call the endpoints you grant it.
