Saltar al cuntegna

Bria RMBG 2.0

Integrar

ID dal model 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"

Questa dumonda: $0,018 18 credits API Lantschar sin questa pagina

Obtegna ina clav API
Bria AI Allontanament dal fund #cutout#ecommerce#transparent

Allontanament net dal fund, segir per l’utilisaziun commerziala, per products e persunas.

Exempels

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

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

Instrucziuns facultativas per il decupadi en lingua clera: 'only the chair' restrenscha la selecziun, 'without the lamp' removes cuntegnì, e 'the person with the mat' agiunta cuntegnì da mantegnair.

•obligatori image_url
Trametta in datoteca u

Maletg da funtauna dal qual il cuntegnì vegn stizzà.

POST /run/bria/background/remove?wait=20 calculaziun → $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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Bria RMBG 2.0

Il model d’allontanament dal fund da Bria returna in subject isolà transparent cun urs nets e precis enturn chavels, pail e detagls fins da products, trenà cun datas licenziadas per l’utilisaziun commerziala. In maletg entra, in subject isolà sorta, cun in pretsch fix per maletg.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
image_urlobligatori image
Tipurl · image
Maletg da funtauna dal qual il cuntegnì vegn stizzà.
promptopziunal
Tipstring | null
Instrucziuns facultativas per il decupadi en lingua clera: 'only the chair' restrenscha la selecziun, 'without the lamp' removes cuntegnì, e 'the person with the mat' agiunta cuntegnì da mantegnair.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
image
object {url, content_type, file_name, file_size, width, height}Maletg producì tras generaziun.

Dapli models: Allontanament dal fund

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/bria/background/remove.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt