---
title: Remove Background from Images API
slug: remove-background-from-images
url: https://apyhub.com/apyhub/service/remove-background-from-images
provider: ApyHub
tags: [background-removal, image-cutout, image-processing, transparent-png, image-url]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 4
atoms: 1000
mcp: true
alias: image-processor-remove-background
---

# Remove Background from Images API

Remove image backgrounds from uploaded files or image URLs. Returns a PNG download or a signed URI for clean, transparent cutouts.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/remove-background-from-images/multi-part/download` | What it does Removes the background from the uploaded raster image and returns the processed result… | 1000 |
| POST | `https://api.eu.apyhub.com/apyhub/remove-background-from-images/multi-part/link` | What it does Removes the background from an uploaded image sent as multipart form data and returns… | 1000 |
| POST | `https://api.eu.apyhub.com/apyhub/remove-background-from-images/url/download` | What it does Fetches an image from the URL you provide, removes its background, and returns the res… | 1000 |
| POST | `https://api.eu.apyhub.com/apyhub/remove-background-from-images/url/link` | What it does Fetches an image from the imageurl provided in the request body, removes its backgroun… | 1000 |

## Endpoint reference

### Remove image background

`POST https://api.eu.apyhub.com/apyhub/remove-background-from-images/multi-part/download` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image` | body | string (binary) | yes | Input raster image. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Upload an image to remove its background and download the result.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/remove-background-from-images/multi-part/download" \
  -H "apy-token: $APY_TOKEN" \
  -F "image=@/path/to/image.jpg"
```

#### What you'll get back

Returns a binary file (`string` with `format: binary`) containing the processed image.

### Remove image background

`POST https://api.eu.apyhub.com/apyhub/remove-background-from-images/multi-part/link` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image` | body | string (binary) | yes |  |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Upload an image URL to remove its background and return the result link.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/remove-background-from-images/multi-part/link" \
  -H "apy-token: $APY_TOKEN" \
  -F "image=@/path/to/image.jpg"
```

#### What you'll get back

Returns a JSON object with a `data` string field containing a URI to the processed image.

```json
{
  "data": "https://example.com/processed-image.png"
}
```

### Remove image background 

`POST https://api.eu.apyhub.com/apyhub/remove-background-from-images/url/download` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image_url` | body | string (uri) | yes | Source image URL. Example: `https://assets.apyhub.com/samples/background-sample.jpeg`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Send the source image URL to remove its background and download the result.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/remove-background-from-images/url/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://assets.apyhub.com/samples/background-sample.jpeg"}'
```

#### What you'll get back

Returns a binary file response (`string` with `format: binary`) containing the processed image.

### Remove image background 

`POST https://api.eu.apyhub.com/apyhub/remove-background-from-images/url/link` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image_url` | body | string (uri) | yes | Source image URL. Example: `https://assets.apyhub.com/samples/background-sample.jpeg`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Remove the background from an image by sending its source URL.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/remove-background-from-images/url/link" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://assets.apyhub.com/samples/background-sample.jpeg"}'
```

#### What you'll get back

Returns a JSON object with a `data` string field containing the output image URI.

```json
{
  "data": "https://..."
}
```

## About

## What it does
Background Remover removes the background from an image and returns either a PNG download or a signed file URL. Send a raster image directly as multipart form data, or provide an `image_url` to fetch the source image first.

Use the multipart endpoints when you already have the file in hand, and the URL endpoints when the image lives elsewhere. In both cases, you can choose the output mode with the `output` query parameter. The download variants return binary PNG data, while the link variants return a response object containing `data` as a URI.

This is a good fit for product photos, profile pictures, catalog imagery, and any workflow that needs a clean cutout without building background-removal logic yourself. You can place the result on a transparent canvas, layer it into a design, or pass the signed URL to downstream storage and delivery steps.

Background Remover keeps the API surface small: one required input image, one optional output selector, and a predictable response shape. That makes it straightforward to wire into upload flows, batch image pipelines, and internal tools that need consistent background-free assets.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/remove-background-from-images
