Image Background Remover
Cuts the main subject out of a photo and returns it on a transparent background at the original size. BiRefNet is a high-resolution segmentation model that uses gradient maps to keep fine edges.
Overview
BiRefNet comes from the 2024 paper "Bilateral Reference for High-Resolution Dichotomous Image Segmentation" by Peng Zheng and six co-authors, published in CAAI Artificial Intelligence Research. Dichotomous segmentation sorts every pixel into one of two classes, object or background. The high-resolution part means the boundary has to stay accurate on large photos. The standard weights predict the mask on a 1024 x 1024 copy of the input, and that mask is then scaled back to the photo's original width and height.
The network works in two stages. A localization module uses global context to find the object. A reconstruction module then refines the outline with what the authors call a bilateral reference: hierarchical patches of the original image on one side, gradient maps on the other. During training, an auxiliary gradient loss steers the model toward regions with fine detail. The authors report that BiRefNet beat earlier task-specific methods on benchmarks for dichotomous image segmentation (DIS), high-resolution salient object detection (HRSOD) and camouflaged object detection (COD). The model has about 220 million parameters.
On Wiro it is set up as an image background remover.
What you can build
- Product cutouts for catalogs and marketplace listings, ready to place on a white or branded backdrop.
- Profile photo and avatar tools that lift a person out of a busy street or room.
- Sticker makers that turn a phone photo of a pet or a toy into a cutout.
- A first step in a compositing pipeline: isolate the subject, then drop it into a generated or stock scene.
- Masks for later editing, since the alpha channel of the result marks which pixels belong to the subject.
Inputs
A single image, uploaded as a file or passed as a URL, in JPG, JPEG, PNG, GIF, WEBP or HEIC. There is no prompt, box or point to steer the selection and no other setting: the model decides on its own what counts as foreground. The default example is a pale kitten peeking over a leopard-print cushion against a dark wall, useful for checking how whiskers and fur edges come out.
Outputs
One image with the same width and height as the input. The subject keeps its original colors and the background turns transparent through an alpha channel. Along the outline the alpha is graded, with partly transparent pixels between subject and background. In the samples on this page, a woman sitting on a stone ledge above a hazy city comes back alone with the ledge and skyline gone, and a small yellow bird perched on a curved white rail is returned as just the bird, feet intact and rail removed.
Limitations
- The model picks the foreground by itself. With several objects in a frame, you cannot tell it which ones to keep.
- Things the subject rests on can be dropped, like the ledge and the rail in the samples. If a stand, shelf or table should stay in the shot, check the result.
- This page runs the authors' standard release, which their model card says was trained on DIS-TR and validated on DIS-TEs and DIS-VD. The authors also publish separate matting weights and versions trained at 2048 x 2048; this page does not use them.
Safety & compliance
BiRefNet is released under the MIT license. If an input shows a real person's face, make sure you have that person's consent before processing it.
API quick start
Run BiRefNet with a single API call.
{
"inputImage": "https://your-cdn.com/input.png"
}curl -X POST "https://api.wiro.ai/v1/Run/zhengpeng7/birefnet" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"inputImage": "https://your-cdn.com/input.png"
}
JSONOther models you might like
Explore similar image generation models.



