Self-hosted withoutBG background removal web app + API (GPU, open weights v4).
387
Self-hosted withoutBG background removal web app with GPU-accelerated inference. Upload images in the browser and remove backgrounds using the open weights v4 ONNX model on CUDA.
New in v4: Smart brush. Paint what to keep and what to remove; a small stroke-edit network fixes the cutout. Open a result and choose Smart brush.
Requires an NVIDIA GPU and the NVIDIA Container Toolkit.
docker run --rm --gpus all -p 8080:8080 withoutbg/withoutbg-openweights-v4-app-gpu:latest
Open http://localhost:8080 in your browser.
The bundled API is available at http://localhost:8080/api (proxied to the internal FastAPI service).
Published for linux/amd64 only (NVIDIA CUDA on x86_64).
/api/v1/remove-background)/healthSet -e WITHOUTBG_API_KEY=sk_your_key -e WITHOUTBG_PRO_PASSWORD=<long random password> and an Open weights / Pro switch appears in the web UI. Pro uploads the image to api.withoutbg.com (1 credit each). The open weights stay the default and never send images anywhere. Pro calls are charged to your key, so each one must send the password (X-Pro-Password; the web UI asks once). Keep a Pro-enabled server private, e.g. -p 127.0.0.1:8080:8080. Keys: withoutBG Pro.
The withoutBG Open Weights 10.8.0 bundle (~1.5 GB, baked into the image): a trained router sends fine strands, soft detail and transparency to the withoutBG matting model, and hard opaque objects, flat scenes and vehicles to BiRefNet. Only the selected branch runs.
| Image | Use case |
|---|---|
withoutbg/withoutbg-openweights-v4-app-cpu | Same app, CPU only |
withoutbg/withoutbg-openweights-v4-service-cpu | API only (CPU) |
withoutbg/withoutbg-openweights-v4-service-gpu | API only (GPU) |
/v1/licenses in the running containerContent type
Image
Digest
sha256:7ff1be854…
Size
3.9 GB
Last updated
2 days ago
docker pull withoutbg/withoutbg-openweights-v4-app-gpu