BiRefNet Background Removal

Replicate
Image Generation

BiRefNet high-resolution dichotomous image segmentation for background removal. Bilateral reference network that produces sharp matting on fine detail like hair, fur and thin structures, often cleaner than older U2Net or rembg models.

Generate with BiRefNet Background Removal
Describe what you want and pick a size — the image renders inline.
Sign in to try this model with €5 free credits.
Sign in
Result appears here
TL;DR·Last updated June 24, 2026

BiRefNet Background Removal is image generation AI model from Replicate, priced at €0.000 per 1M input tokens with a unknown context window.

About this model

BiRefNet (Bilateral Reference for High-Resolution Dichotomous Image Segmentation) separates foreground from background and is well suited to detailed subjects where edge quality matters. Returns the masked subject so it can be placed on a transparent or replacement background.
Try BiRefNet Background Removal
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€1.00

API Integration

Use our OpenAI-compatible API to integrate BiRefNet Background Removal into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

const images = await rw.run("birefnet-background-removal", "A beautiful sunset over Tokyo");
console.log(images[0].url);

// Or use the image() method for full control
const res = await rw.image("birefnet-background-removal", "A cat in space", {
  size: "1024x1024",
  n: 1,
});
console.log(res.data[0].url);
Specifications
Price
€1.00
Developer
Replicate
Category
Image Generation
Supported Formats
image
Tags
background-removal
birefnet
segmentation
matting
image

Frequently asked questions

Start using BiRefNet Background Removal today

Get started with free credits. No credit card required. Access BiRefNet Background Removal and 100+ other models through a single API.