withoutbg-python icon indicating copy to clipboard operation
withoutbg-python copied to clipboard

CLI tool ignoring 'model' parameter

Open Dominiquini opened this issue 11 months ago • 0 comments

If I set the 'WITHOUTBG_API_KEY' environment variable, the withoutbg cli tool will try to use the 'withoutBG Pro' model, even if I specify the 'opensource' (local) model!

WITHOUTBG_API_KEY='XXX' withoutbg sample.jpg -o sample.png --model opensource -v

Using withoutBG Pro for processing...
Processing: sample.jpg
Output: sample.png
Removing background  [##################------------------]   50%
Error: Background removal failed: Invalid API key

App version: 1.0.2 (PyPI)

Thanks.

Dominiquini avatar Dec 04 '25 00:12 Dominiquini