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.
curl -X POST https://api.bgbuster.com/images/remove-background \
-H "X-Api-Key: your-api-key" \
-F "input=@photo.jpg"The fastest way to try the API from a terminal, a CI pipeline, or any environment with no HTTP client to install.
Use the official @bgbuster/sdk package for a typed client, or call the REST API directly with fetch if you'd rather avoid the dependency.
A common choice for image-processing scripts and data pipelines. The requests library handles the multipart upload with no extra setup.
Drop this into a Laravel controller, a WordPress plugin, or a plain PHP script — cURL's CURLFile handles the multipart upload natively, no Composer package required.
For Rails apps and background jobs, the multipart-post gem gives you a clean way to stream a file upload without hand-rolling the multipart body.
OkHttp is the de facto standard for multipart uploads on the JVM and drops straight into a Spring Boot service or any existing Java backend.
The standard library's mime/multipart package is all you need — no third-party dependency, which fits Go's minimal-dependency conventions well.
MultipartFormDataContent is built into .NET's HttpClient, so this works in an ASP.NET Core service, a console tool, or a Unity editor script with no extra packages.
Deciding whether to switch from another provider? See how bgbuster compares to remove.bg and Photoroom.
