Skip to main content

1. Get Your API Key

1

Create an Account

Go to dash.poof.bg and sign up with your email or GitHub.
2

Copy Your API Key

Your API key is displayed on the dashboard. It starts with poof_.
3

Keep It Secret

Treat your API key like a password. Never commit it to version control or expose it in client-side code.

2. Make Your First Request

Choose your preferred method:
curl -X POST https://api.poof.bg/v1/remove \
  -H "x-api-key: poof_your_api_key" \
  -F "image_file=@input.jpg" \
  -o output.png

3. See the Result

Your output file now contains the image with the background removed:
BeforeAfter
Original photo with backgroundTransparent PNG, background removed
Success! You’ve made your first background removal request.

What’s Next?

Common Options

Here are some popular parameter combinations:
# Get a JPEG with white background
curl -X POST https://api.poof.bg/v1/remove \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image_file=@photo.jpg" \
  -F "format=jpg" \
  -F "channels=rgb" \
  -F "bg_color=#ffffff" \
  -o result.jpg

# Get a small preview (faster, uses fewer credits)
curl -X POST https://api.poof.bg/v1/remove \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image_file=@photo.jpg" \
  -F "size=preview" \
  -o preview.png

# Crop to subject bounds
curl -X POST https://api.poof.bg/v1/remove \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image_file=@photo.jpg" \
  -F "crop=true" \
  -o cropped.png