Op den Inhalt sprangen

Bria RMBG 2.0

Integréieren

Modell-ID bria/background/remove
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/background/remove?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_os2qhh70dksuutdlc8yxctru/0-eDHA2VbZQilztL9CLLj56_hjNDn2TY.png"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro: 0,018 $ 18 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Bria AI Hannergrondentfernung #cutout#ecommerce#transparent

Propper, kommerziell sécher Hannergrondentfernung fir Produkter a Persounen.

Beispiller

Input
Output · ~10 s
0,018 $ · 18 API-Kreditter

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

Optional Ausschneidungsinstruktiounen an enger einfacher Sprooch: 'only the chair' limitéiert d'Auswiel, 'without the lamp' läscht Inhalt, an 'the person with the mat' füügt Inhalt bäi, dee bäibehale soll.

•obligatoresch image_url
Fichier erofzéien, oder

Quellbild, aus deem den Inhalt geläscht gëtt.

POST /run/bria/background/remove?wait=20 Präis → 0,018 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/background/remove?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_os2qhh70dksuutdlc8yxctru/0-eDHA2VbZQilztL9CLLj56_hjNDn2TY.png"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Bria RMBG 2.0

Dem Bria säin Hannergrondentfernungsmodell gëtt en transparenten Ausschnëtt mat mëllen, präzise Kante ronderëm Hoer, Pelz a fein Produktdetailer zréck. Et gouf mat lizenzéierten Donnéeë fir kommerziell Notzung trainéiert. Ee Bild eran, een Ausschnëtt eraus, zu engem feste Präis pro Bild.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
image_urlobligatoresch image
Typurl · image
Quellbild, aus deem den Inhalt geläscht gëtt.
promptoptional
Typstring | null
Optional Ausschneidungsinstruktiounen an enger einfacher Sprooch: 'only the chair' limitéiert d'Auswiel, 'without the lamp' läscht Inhalt, an 'the person with the mat' füügt Inhalt bäi, dee bäibehale soll.
obligatoresch Kanoneschen Numm, och akzeptéiert

Fichierparameter akzeptéieren eng ëffentlech https:// URL, eng data: URI bis zu 10 MB oder de file_url vun engem Upload. Fichieren

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/background/remove",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 18,
    "usd": "0.018",
    "charged": 18,
    "refunded": 0
  },
  "input": {
    "image": "https://content.doitong.com/images/showcase/v3/gen_sneaker_ad.jpg"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768
    }
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
image
object {url, content_type, file_name, file_size, width, height}Bild, dat duerch d'Generatioun entstanen ass.

Méi Modeller: Hannergrondentfernung

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/bria/background/remove.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt