AI product Open source
BG0 is an open-source background-removal tool that runs locally in the browser and produces transparent PNGs without uploading source images. It uses WebGPU when available and falls back to WebAssembly, downloading and locally caching a pinned BiRefNet ONNX model selected for the available hardware. The project includes the BG0 web application and the @bg0/browser library, which handles capability detection, model loading and caching, preprocessing, ONNX inference, mask postprocessing, alpha compositing, progress reporting, cancellation, and errors. It requires no account, API key, backend, server inference, billing, usage limit, or analytics transmission of image contents or metadata. The source is licensed under Apache License 2.0; model weights retain the licenses listed in the repository's third-party notices.
1 use taken from transcripts — each links to the moment in the video.
Removes image backgrounds entirely in the browser using WebGPU or WebAssembly, so images do not leave the user's machine. It outputs transparent PNGs and also provides a browser library for embedding the functionality.
1 in the library.