Pāriet uz saturu

Bria Guided Remove Background

Integrēt

Modeļa id 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Šis pieprasījums: 0,03 $ 30 API kredītu · ≈ 3,20 ₽ Izpildīt šajā lapā

Iegūt API atslēgu
Bria AI · Attēls

Šeit būs jūsu pirmais rezultāts

Izveidojiet pieprasījumu tālāk un izpildiet to ar savu API atslēgu. Izvades tiek kopētas mūsu krātuvē un glabātas mūžīgi vai 7 dienas bez maksas.

Izveidot pieprasījumu

Vadīklas tiek ģenerētas no modeļa shēmas. Kods un cena tiek atjaunināti, kad tos maināt.

Neobligāta aprakstoša korekcija noklusējuma izgriezumam: izvērst atlasi ar 'the person with the mat and the plant', izslēgt objektus ar 'the woman at her desk without the lamp' vai ierobežot to ar 'only the chair'. Tukša vērtība bez korekcijām atlasa acīmredzamo fotoattēla subjektu. Saglabātie pikseļi paliek nemainīti; tiek pievienots tikai jauns alfa kanāls.

Papildu image · autocrop
image_url noklusējums https://labs-assets.b...
Nometiet failu vai

Avota attēls, kas nodrošināts, izmantojot publisku URL, neapstrādātus base64 kodētus attēla baitus vai base64 datu URI, piemēram, data:image/png;base64,... .

POST /run/bria/guided-remove-background?wait=20 cena → 0,03 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Palaist šo pieprasījumu

Jūsu atslēga paliek šajā pārlūkprogrammā: tā tiek nosūtīta tikai uz Doitong API un saglabāta (localStorage) tikai tad, ja atzīmējat Atcerēties. Iegūt API atslēgu

Par Bria Guided Remove Background

Sāk ar galvenā subjekta noklusējuma izgriezumu no `image_url`, pēc tam pielāgo to, izmantojot neobligātu parastas valodas `prompt`, piemēram, lai saglabātu papildu objektu vai izolētu tikai vienu. Sākotnējie pikseļi tiek saglabāti un pievienots alfa kanāls; rezultāts ir RGBA PNG. `autocrop` pielāgo audeklu saglabātajam saturam.

Parametri

Nosūti vai nu kanonisko nosaukumu, vai vietējo nosaukumu, bet ne abus. Kan啤niskie nosaukumi

NosaukumsTips NoklusējumsAtļauts Apraksts
image_urlneobligāts image
Tipsurl · image
Noklusējumshttps://labs-assets.bria.ai/api-examples/guided-remove-background/yoga_studio_input.jpg
Avota attēls, kas nodrošināts, izmantojot publisku URL, neapstrādātus base64 kodētus attēla baitus vai base64 datu URI, piemēram, data:image/png;base64,... .
promptneobligāts
Tipsstring | null
Neobligāta aprakstoša korekcija noklusējuma izgriezumam: izvērst atlasi ar 'the person with the mat and the plant', izslēgt objektus ar 'the woman at her desk without the lamp' vai ierobežot to ar 'only the chair'. Tukša vērtība bez korekcijām atlasa acīmredzamo fotoattēla subjektu. Saglabātie pikseļi paliek nemainīti; tiek pievienots tikai jauns alfa kanāls.
autocropneobligāts
Tipsboolean
Noklusējumsfalse
Cieši ap saglabāto saturu apgriezt izvades audeklu.
obligāts Kan啤niskais nosaukums, arī pieņemts

Failu parametriem nepieciešams publisks https:// URL, data: URI līdz 10 MB vai augšupielādes file_url. Faili

Izvade

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Jūsu faili, jūsu izvēleKatrs outputs[].url ir kopija mūsu krātuvē: tiek glabāta mūžīgi (maksa par GB mēnesī) vai 7 dienas bez maksas — atbilstoši konta iestatījumam vai ?storage=.
Vienāda struktūra katram modelimtype, url, content_type, width, height un duration gan attēliem, gan video un audio. output ir paša modeļa rezultāta objekts.
Izvades lauki
image
object {url, content_type, file_name, file_size, width, height}RGBA PNG, kas saglabā avota fotoattēlu ar jaunizveidotu alfa kanālu, kurš atlasa šķietamo galveno subjektu atbilstoši uzvednei.

Vairāk modeļu: Fona noņemšana

AI aģentiem: šī lapa Markdown formātā ir pieejama https://doitong.com/lv/developers/models/bria/guided-remove-background.md. Visi modeļi un ceļveži: https://doitong.com/developers/llms.txt