API Documentation
Integrate AI background removal into your applications
Quick Start
Base URL
https://bgremoverfree.com/api/v1
Content Type
multipart/form-data
Your API Key
Manage your API authentication credentials
Get Your Free API Key
Sign up for a free account to get instant access to our API. Remove backgrounds from images programmatically with unlimited requests.
Instant Activation
Your API key is generated immediately upon signup. Start integrating right away.
Complete Documentation
Access full API docs with code examples in multiple languages.
Developer Support
Get help from our team when you need it. We're here to help you succeed.
Secure & Reliable
Enterprise-grade security with 99.9% uptime guarantee.
Background Removal API
Remove backgrounds from images using AI
Endpoint
POST /api/v1/process/
Authentication
Required: Bearer token in Authorization header
Authorization: Bearer bgr_your_api_key_here
You need to generate an API key first. See the "API Key Management" section above.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| image | File | Required | Image file (JPEG, PNG, GIF, BMP) - Max 10MB |
Response Format
Success Response (200 OK)
{
"success": true,
"message": "Background removed successfully",
"processing_time": 2.34,
"model": "BRIA Professional",
"image_data": "data:image/png;base64,iVBORw0KGgo..."
}
Error Response (401/400/500)
{
"success": false,
"error": "Authentication required",
"message": "Missing or invalid Authorization header"
}
// OR for processing errors:
{
"success": false,
"message": "Error description here"
}
Code Examples
cURL
curl -X POST "https://bgremoverfree.com/api/v1/process/" \
-H "Authorization: Bearer bgr_your_api_key_here" \
-F "image=@/path/to/image.jpg"
JavaScript (Fetch API)
const formData = new FormData();
formData.append('image', imageFile);
const response = await fetch('https://bgremoverfree.com/api/v1/process/', {
method: 'POST',
headers: {
'Authorization': 'Bearer bgr_your_api_key_here'
},
body: formData
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests
url = "https://bgremoverfree.com/api/v1/process/"
headers = {
"Authorization": "Bearer bgr_your_api_key_here"
}
files = {
"image": open("/path/to/image.jpg", "rb")
}
response = requests.post(url, headers=headers, files=files)
data = response.json()
print(data)
PHP (cURL)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://bgremoverfree.com/api/v1/process/");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer bgr_your_api_key_here"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'image' => new CURLFile('/path/to/image.jpg')
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);