Image Editing
Bria — Background Remove
State-of-the-art alpha matte (RMBG 2.0).
POST /v2/images/background-remove — model: "bria-bg-remove"
Bria's RMBG 2.0 model produces a 256-level alpha matte that handles hair, fur, glass and motion blur cleanly. Use this when the cut-out matters — product photos, e-commerce, ads. For high-volume jobs where edge quality is less critical, see 851-labs Background Remove.
See Image Editing overview for common request fields, response format, and error codes.
Model-specific parameters
| Parameter | Type | Description |
|---|---|---|
briaBgRemoveParams.image | string | Source image URL. |
briaBgRemoveParams.content_moderation | boolean | When true (default), the model refuses NSFW inputs. |
Credit cost
4 credits per generation.
Code examples
curl -X POST https://api.apiframe.ai/v2/images/background-remove \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "bria-bg-remove",
"briaBgRemoveParams": {
"image": "https://example.com/portrait.jpg"
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/images/background-remove",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"model": "bria-bg-remove",
"briaBgRemoveParams": {
"image": "https://example.com/portrait.jpg",
},
},
)
print(response.json())const response = await fetch(
"https://api.apiframe.ai/v2/images/background-remove",
{
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "bria-bg-remove",
briaBgRemoveParams: {
image: "https://example.com/portrait.jpg",
},
}),
},
);
console.log(await response.json());Try it
POST
/v2/images/background-removeTry it