✳ DEVELOPER DOCUMENTATION

Build with the bgfree.app API

Explore the API request format and supported image options.

A LITTLE MORE CONTEXT

A good integration starts with clear edges

The API is available to account holders. Create a key in the dashboard, then use the request format and supported parameters documented here.

QUICKSTART
curl -X POST \\ https://api.bgfree.app/v1.0/removebg \\ -H "X-Api-Key: YOUR_API_KEY" \\ -F "image_file=@photo.jpg" \\ -o cutout.png

Use a server-side API key. Success returns binary image data; errors return JSON. Each successful API request uses one image credit.

See request fields, limits, and errors ↗

Get Your API Key ↗ See pricing

CLEAR ANSWERS

Frequently asked questions

Practical answers about this workflow and bgfree.app.

Where do I create an API key?

Create an account, open the dashboard, and create a live API key. The full secret is shown once, so save it securely.

What is the API endpoint?

POST https://api.bgfree.app/v1.0/removebg. Send the key in the X-Api-Key header.

What data formats can I send?

The endpoint accepts one image as multipart image_file or image, image_url, or image_base64. Optional supported fields include size, format, and bg_color.

What should I expect on errors?

Error responses use JSON with an HTTP error status and a request identifier. Check status before interpreting the response body as an image.