---
title: "Remove the background of an image"
method: POST
path: "/v1/ai/beta/remove-background"
tags: ["remove-background"]
---

# Remove the background of an image

`POST /v1/ai/beta/remove-background`

## Request

- Base URL: `https://api.magnific.com`
- URL: `https://api.magnific.com/v1/ai/beta/remove-background`
- Auth: API key in header `x-magnific-api-key`

This endpoint removes the background from an image provided via a URL. The URLs in the response are temporary and valid for **5 minutes** only.

**Supported formats:** JPG, PNG

**File size limit:** up to 20 MB

**Output resolutions:** Preview (up to 0.25 megapixels), Full resolution (up to 25 megapixels)

## Response `200`

Successful background removal.

- RemoveImageBackground200Response
  - `original` string, uri: URL of the original image.
  - `high_resolution` string, uri: URL of the high-resolution image with the background removed.
  - `preview` string, uri: URL of the preview version of the image.
  - `url` string, uri: Direct URL for downloading the high-resolution image.

---

[API](https://skmtc.dev/magnific/apis/magnific-api.md) · [All operations](https://skmtc.dev/magnific/apis/magnific-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magnific/apis/magnific-api/revisions/60711fb082c7?raw)
