bp531/cutout-bg-remove
0
Cutout background-removal backend (Hugging Face Space)
This is the self-hosted backend for Cutout, a free background-removal tool. It runs rembg, an open-source general-purpose object-segmentation library, at zero marginal cost per request.
This is not meant to be used directly by end users or other projects. It is called exclusively by the Cutout Cloudflare Worker, which forwards requests here along with a shared secret. Direct calls to this Space without that secret will be rejected with a 403.
Required secret
This Space needs one secret set under Settings -> Variables and secrets:
- INTERNALBACKENDSECRET: a long random string you generate yourself. This exact same value also needs to be set on the Cloudflare Worker side. The two must match exactly or every request is rejected with 403.
Cold starts
This Space sleeps after a period of inactivity on the free tier. The next request after that wakes it back up, which can take up to roughly a minute. This is normal on the free tier.
