Will my existing remove.bg code work with Photoroom?
For a standard background removal call, yes. The argument names and the response format are the same, so you only change the endpoint URL and your API key.
Before (remove.bg):
curl -H 'x-api-key: YOUR_REMOVE_BG_API_KEY' \
-f https://api.remove.bg/v1.0/removebg \
-F 'image_file=@/absolute/path/to/image.jpg' \
-F 'crop=true' \
-F 'bg_color=FFFFFF' \
-F 'format=jpg' \
-F 'size=hd' \
-o result.jpgAfter (Photoroom):
curl -H 'x-api-key: YOUR_PHOTOROOM_API_KEY' \
-f https://sdk.photoroom.com/v1/segment \
-F 'image_file=@/absolute/path/to/image.jpg' \
-F 'crop=true' \
-F 'bg_color=FFFFFF' \
-F 'format=jpg' \
-F 'size=hd' \
-o result.jpgIf you pass less common parameters, test them on your own images first. See the compatibility guide.
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))
:no_upscale():format(webp))