{"repo":"withoutbg/withoutbg-python","free":true,"listed":false,"github":"https://github.com/withoutbg/withoutbg-python","clone":"git clone https://github.com/withoutbg/withoutbg-python.git","description":"Python SDK for local and cloud background removal (pip install withoutbg)","language":"Python","stars":1239,"topics":["computer-vision","image-matting","image-processing","ai-background-removal","image-background-removal","background-removal-open-source","background-removal-toolkit","python-background-removal","computer-vision-ai","background-remover-onnx-model"],"license":null,"category":"machine-learning","readme_excerpt":"withoutBG Remove backgrounds in Python. Free locally. One line to switch to the Cloud API. Same API for both paths: run open weights on your machine (private, offline, unlimited) or call the Cloud API (sharper edges on hair and fur, no local GPU). Built for scripts, notebooks, backends, and batch jobs. Full documentation → See the results Open Weights results → · Cloud API results → · Compare → Three lines of Python Returns a PIL Image in RGBA. Prefer PNG or WebP; JPEG drops transparency silently. Install Don't have uv yet? It's a fast Python package manager from Astral. Install it once, then the command above. Quick start Local (Open Weights: free, private, offline): First local run downloads 455 MB of weights from Hugging Face (once). After that, everything stays on your machine. Cloud (withoutBG API: best quality): Batch (load once, process many): Recreating the model for every image reloads the weights each time. Don't do that in a loop. Progress callback: Runnable scripts live in examples/ . Choose your mode Local ( open weights() ) Cloud ( api() ) --- --- --- Cost Free forever Pay per image Quality Good Better (esp. hair, fur) Privacy Stays on your machine Image sent to API GPU required No (CPU ONNX) No First-run setup 455 MB download, once API key only Best for Offline, private, batch jobs Products, occasional use CLI What you get All methods return a PIL Image in RGBA mode: Compositing example: Configuration Environment variable Effect --- --- WITHOUTBG API KEY API ke","default_branch":null,"files":null,"tree":[],"storefront":"/r/withoutbg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/withoutbg/withoutbg-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}