---
title: "Remove the background"
method: POST
path: "/v1/image/remove-background"
tags: ["Image tools"]
---

# Remove the background

`POST /v1/image/remove-background`

## Request

- Base URL: `https://api.dharun.dev`
- URL: `https://api.dharun.dev/v1/image/remove-background`
- Auth: none declared

Returns the picture as a PNG with the background transparent, cut out by the IS-Net model. Works best on one clear subject: a product, a person, an animal. Takes a few seconds; pictures larger than 4096 pixels are made smaller. Options go in the query string, or as form fields when the file is sent as multipart/form-data.

## Query parameters

- `format` 'png' | 'webp' | 'mask'

## Response `200`

Success

## Other responses

- `400`: Error
- `404`: Error
- `413`: Error
- `429`: Error

---

[API](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data.md) · [All operations](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/llms.txt) · [OpenAPI document](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/revisions/ecd8b0ec7863?raw)
