logobgbuster

Background removal API quickstarts

Called the same way from every language: a multipart POST with your API key in the X-Api-Key header. The examples below cover a plain background removal — the same request shape also works against /images/edit when you want to chain in resize, rotate, or color adjustments. Pick your language below for a working example.

shell
curl -X POST https://api.bgbuster.com/images/remove-background \
  -H "X-Api-Key: your-api-key" \
  -F "input=@photo.jpg"

Deciding whether to switch from another provider? See how bgbuster compares to remove.bg and Photoroom.