Saltar al cuntegna

Bria Guided Remove Background

Integrar

ID dal model bria/guided-remove-background
# 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/guided-remove-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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,03 30 credits API Lantschar sin questa pagina

Obtegna ina clav API
Bria AI · Maletg

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

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

Adattaziun opziunala en lingua clera al cutout standard: engrondir la selecziun cun 'the person with the mat and the plant', excluir objects cun 'the woman at her desk without the lamp', u restrenscher ella cun 'only the chair'. Ina valur vida tscherna il subject evident da la fotografia senza adattaziun. Ils pixels mantegnids restan nunmidads; mo in nov chan d'alfa vegn agiuntà.

Avanzà image · autocrop
image_url standard https://labs-assets.b...
Trametta in datoteca u

Maletg da funtauna furnì tras ina URL publica, bytes dal maletg codads en base64, u ina data URI base64 sco data:image/png;base64,... .

POST /run/bria/guided-remove-background?wait=20 calculaziun → $0,03
# 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/guided-remove-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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 Guided Remove Background

Cumenza cun in cutout standard dal subject principal en `image_url`, alura l'adattescha cun in `prompt` opziunal en lingua natirala, per exempel per mantegnair in object supplementar u isolar mo in. Ils pixels originals vegnan mantegnids e vegn agiuntà in chanala alpha, restituì sco RGBA PNG. `autocrop` restrenscha la tela al cuntegn mantegnì.

Parameters

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

NumTip StandardPermess Descripziun
image_urlopziunal image
Tipurl · image
Standardhttps://labs-assets.bria.ai/api-examples/guided-remove-background/yoga_studio_input.jpg
Maletg da funtauna furnì tras ina URL publica, bytes dal maletg codads en base64, u ina data URI base64 sco data:image/png;base64,... .
promptopziunal
Tipstring | null
Adattaziun opziunala en lingua clera al cutout standard: engrondir la selecziun cun 'the person with the mat and the plant', excluir objects cun 'the woman at her desk without the lamp', u restrenscher ella cun 'only the chair'. Ina valur vida tscherna il subject evident da la fotografia senza adattaziun. Ils pixels mantegnids restan nunmidads; mo in nov chan d'alfa vegn agiuntà.
autocropopziunal
Tipboolean
Standardfalse
Tagliar il canvas da l'output stretgamain enturn il cuntegn mantegnì.
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/guided-remove-background",
  "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": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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}PNG RGBA che mantegna la fotografia originala cun in chan d'alfa nov che tscherna il subject principal apparent, raffinà tenor il prompt.

Dapli models: Allontanament dal fund

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