BRIA RMBG 2.0
bria/remove-backgroundOriginal model Foreground segmentation and transparent background removal documented across fal and Replicate.
BRIA RMBG 2.0 API pricing summary
As of 2026-12-01, BRIA RMBG 2.0 API pricing starts at $0.018 / image ($18.00 per 1,000 images) via fal and Replicate, across 2 serving providers and 2 regional routes. Documented starting rates are aligned across all 2 listed providers (fal and Replicate); inspect exact billing terms and primary sources in the route tables below. All listed routes currently have undisclosed endpoint regions; rates are primary-sourced directly from each provider, and unknown tariffs remain omitted rather than zero.
| Provider | Unit Price | Cost per 1,000 images | Region |
|---|---|---|---|
fal | $0.018 / image | $18.00 | Undisclosed |
Replicate | $0.018 / image | $18.00 | Undisclosed |
Providers & variants
Every variant, regional deployment and feature-specific route is listed separately. Choose an exact variant when generating; provider routing never substitutes another variant.
BRIA RMBG 2.0
bria/remove-backgroundHigh-accuracy foreground segmentation and transparent background removal trained on licensed datasets.
API inputs & limitsbackground-remove
- Operations
- background-remove
- Arguments
references, outputFormat- JSON Schema
- Inspect model schema ↗
Every regional deployment is its own route.
| Provider | Published price | Try route |
|---|---|---|
Listed as Bria Background RemoveDocumented by the provider. API endpoint region and inference scope are not disclosed. fal-undisclosed/bria-remove-background | $0.018/ image$0.018 / output image.
Checked 2026-12-01 Price source ↗ | |
Listed as bria/remove-backgroundDocumented by the provider. API endpoint region and inference scope are not disclosed. replicate-undisclosed/bria-remove-background | $0.018/ image$0.018 / output image.
Checked 2026-12-01 Price source ↗ |
An endpoint region is not a residency guarantee. Global inference may process requests elsewhere. Success rate measures generation outcomes, not provider uptime.
Endpoint region does not establish inference residency. Success rate describes generation outcomes, not uptime. Measurements reflect this installation’s observed jobs across settings. A dash beside a supported resolution indicates unavailable unit pricing.
Connect to BRIA RMBG 2.0
Paste the agent prompt below into your coding agent or follow the canonical OpenGen HTTP, MCP, and CLI workflow for bria/remove-background. Every endpoint, tool call, and safety rule matches the Background removal guide, Quickstart, and MCP & CLI reference.
Connect to OpenGen (https://opengen.dev/llms.txt) to inspect exact variant "bria/remove-background" (background-remove) (series bria/remove-background; model docs: https://opengen.dev/bria/remove-background.md, guide: https://opengen.dev/docs/guides/background-remove.md):
1. Inspect schema, regional routes, privacy disclosures, and single-source published pricing with zero auth via GET https://opengen.dev/v1/models/bria/remove-background?operation=background-remove or MCP get_model({ id: "bria/remove-background", operation: "background-remove" }) on https://opengen.dev/mcp/readonly.
2. Treat series-page Pricing at a Glance starting rates as catalog list rates (not an executable quote for specific resolutions, durations, audio tiers, or regions); run a stateless dry-run estimate via POST https://opengen.dev/v1/pricing/estimate or MCP estimate_cost using the exact canonical payload, and never assume unknown prices are $0.
3. Upload private input media via POST https://opengen.dev/v1/assets (or MCP upload_asset / upload_attachment; see https://opengen.dev/docs/assets.md) and replace REPLACE_WITH_OWNED_ASSET_KEY with the returned assetKey.
4. Present the exact modelId ("bria/remove-background"), selected regional routeId, published unit pricing, and maxCostMicros budget ceiling and wait for explicit user approval before spending.
5. Persist a unique Idempotency-Key before submitting POST https://opengen.dev/v1/generations (or MCP generate on https://opengen.dev/mcp). Never blind-retry on timeout—recover via GET https://opengen.dev/v1/generations/lookup?idempotencyKey=... or MCP job_get({ idempotencyKey }), poll until terminal, and return the job ID, private output links, and expiresAt. Client setup: https://opengen.dev/docs/mcp.md and https://opengen.dev/docs/clients.md.- 01
Inspect exact model schema, routes & pricing
Fetch effective background-remove arguments, 2 regional routes, supplier privacy disclosures, and single-source pricing in one unauthenticated call.
Models & Catalog →GET /v1/models/bria/remove-background?operation=background-removeMCP: get_model - 02
Estimate cost without spending
Series-page Pricing at a Glance starting rates are catalog list rates only; validate your exact canonical payload and review selectedRouteId, published unit pricing, and recommendedMaxCostMicros before asking for approval.
Pricing & Analytics →POST /v1/pricing/estimateMCP: estimate_cost - 03
Upload private input media
Upload your owned source image privately (multipart <= 4 MiB or presigned PUT <= 100 MiB) and pass the returned assetKey instead of public URLs.
Private Assets →POST /v1/assetsMCP: upload_asset - 04
Submit once with a persisted Idempotency-Key
Authenticate with an OpenGen workspace key (read + generate scopes) or OAuth MCP token and persist your Idempotency-Key before calling /v1/generations.
Background removal guide →POST /v1/generationsMCP: generate - 05
Poll, stream, or receive webhook & download privately
Long-poll /status until terminal and private deliveryStatus is no longer pending, recover read-only via /v1/generations/lookup on timeout, and download outputs via short-lived first-party signed URLs.
Generations Lifecycle →GET /v1/generations/{id}/statusMCP: job_get
Copy-paste examples (bria/remove-background · background-remove)
Inspect live JSON Schema ↗Template only: upload private input media via POST /v1/assets and replace REPLACE_WITH_OWNED_ASSET_KEY, check POST /v1/pricing/estimate to set an explicit maxCostMicros cap, and persist a unique Idempotency-Key before submitting.
export OPENGEN_API_URL="${OPENGEN_API_URL:-https://opengen.dev}"
# 1. Inspect exact schema, regional routes, privacy disclosures, and published pricing (zero auth)
curl --fail-with-body "${OPENGEN_API_URL}/v1/models/bria/remove-background?operation=background-remove"
# 2. Upload private input media (<= 4 MiB single-step; use presigned PUT + /v1/assets/complete up to 100 MiB)
curl --fail-with-body -X POST "${OPENGEN_API_URL}/v1/assets" \
-H "Authorization: Bearer ${OPENGEN_API_KEY:?Set OPENGEN_API_KEY}" \
-H "Idempotency-Key: asset-$(uuidgen | tr '[:upper:]' '[:lower:]')" \
-F "file=@./owned-input.png;type=image/png"
# 3. Save the canonical background-remove payload (then replace REPLACE_WITH_OWNED_ASSET_KEY with the assetKey returned above) and run a dry-run cost estimate
cat <<'JSON' > request.json
{
"modelId": "bria/remove-background",
"operation": "background-remove",
"input": {
"outputFormat": "png",
"references": [
{
"type": "image",
"asset": {
"assetKey": "REPLACE_WITH_OWNED_ASSET_KEY"
}
}
]
},
"billing": "managed"
}
JSON
# Edit request.json to substitute the returned assetKey before estimating or submitting.
curl --fail-with-body -X POST "${OPENGEN_API_URL}/v1/pricing/estimate" \
-H "Content-Type: application/json" \
--data-binary @request.json
# 4. After reviewing route & budget, generate and persist a fresh unique Idempotency-Key for this request and submit once
export OPENGEN_IDEMPOTENCY_KEY="req-$(uuidgen | tr '[:upper:]' '[:lower:]')"
curl --fail-with-body -X POST "${OPENGEN_API_URL}/v1/generations" \
-H "Authorization: Bearer ${OPENGEN_API_KEY:?Set OPENGEN_API_KEY}" \
-H "Idempotency-Key: ${OPENGEN_IDEMPOTENCY_KEY}" \
-H "Prefer: wait=20" \
-H "Content-Type: application/json" \
--data-binary @request.json > submission.json
# 5. Long-poll /status with afterRevision until terminal and private delivery is ready, then fetch signed outputs
OPENGEN_JOB_ID="$(jq -r '.id' submission.json)"
STATUS="$(jq -r '.status' submission.json)"
DELIVERY="$(jq -r '.deliveryStatus // ""' submission.json)"
REVISION="$(jq -r '.revision // ""' submission.json)"
while [ "$STATUS" = "queued" ] || [ "$STATUS" = "submitting" ] || [ "$STATUS" = "running" ] || { [ "$STATUS" = "succeeded" ] && [ "$DELIVERY" = "pending" ]; }; do
QS="waitMs=25000"
[ -n "$REVISION" ] && QS="${QS}&afterRevision=${REVISION}"
curl --fail-with-body "${OPENGEN_API_URL}/v1/generations/${OPENGEN_JOB_ID}/status?${QS}" \
-H "Authorization: Bearer ${OPENGEN_API_KEY:?Set OPENGEN_API_KEY}" > status.json
STATUS="$(jq -r '.job.status' status.json)"
DELIVERY="$(jq -r '.job.deliveryStatus // ""' status.json)"
REVISION="$(jq -r '.job.revision // ""' status.json)"
done
curl --fail-with-body "${OPENGEN_API_URL}/v1/generations/${OPENGEN_JOB_ID}" \
-H "Authorization: Bearer ${OPENGEN_API_KEY:?Set OPENGEN_API_KEY}"
# On network timeout, recover read-only instead of generating a second Idempotency-Key:
# curl --fail-with-body "${OPENGEN_API_URL}/v1/generations/lookup?idempotencyKey=${OPENGEN_IDEMPOTENCY_KEY}" \
# -H "Authorization: Bearer ${OPENGEN_API_KEY}"Read the full OpenGen docs for this model
About BRIA RMBG 2.0 API access
This series belongs to BRIA AI. Each variant keeps its own API model ID, author, license and provider routes. A provider switch preserves the selected variant.
Which variants are included?
BRIA RMBG 2.0. Their exact model IDs, authors and licenses are listed separately above.
Which providers are listed?
fal, Replicate. Every documented regional deployment has its own provider row; a listed offering is not a claim that credentials are configured or that a live generation was tested.
How are prices and performance compared?
The table lists supported resolutions and shows available prices per video second or image. The price details include the provider's billing terms and source. Latency percentiles and technical success rates use this installation's observations. Missing measurements remain unknown, and generation success is not provider uptime.
Latest catalog source check: 2026-12-01. Documented offerings are not live-verification claims. Published prices retain their own units; missing prices and measurements remain unknown.