Background Remover
Precision AI background removal and subject segmentation powered by RMBG-2.0 / BiRefNet. Cleanly isolates subjects, products, portraits, and graphics with crystal-clear transparent alpha PNG output.
Parameters
Configure parameters and run inference.
Ready for Execution
Configure parameters on the left and click Run Microservice to generate output.
Processing Microservice...
Spawning browser worker & capturing full render...
{}
Execution Failed
Failed to connect to worker.
Invoke this microservice programmatically from your backend application. Authenticate by passing your Lumoz API key in the Authorization: Bearer YOUR_API_KEY header.
curl -X POST https://lumozai.com/api/v1/services/run \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"service_id": "remove-background",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}'
import requests
url = "https://lumozai.com/api/v1/services/run"
headers = {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
}
payload = {
"service_id": "remove-background",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print("Output:", data.get("output"))
print("Execution time:", data.get("execution_time"))
const response = await fetch("https://lumozai.com/api/v1/services/run", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
service_id: "remove-background",
url: "https://lumozai.com",
w: 1920,
h: 1080
})
});
const data = await response.json();
console.log("Output URL:", data.output);
Parameters Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
image |
string | Yes | - |
Source image URL, uploaded file, or base64 data URI |
background_type |
string | No | "rgba" |
Output background type: rgba (transparent alpha), solid, or blur |
format |
string | No | "png" |
Output image format: png (supports transparent alpha), webp, or jpeg |
threshold |
integer | No | 0 |
Alpha threshold for edge detection and cutout sensitivity |