Langkau ke kandungan

Bria RMBG 2.0

Integrasikan

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

Permintaan ini: $0.018 18 kredit API Jalankan pada halaman ini

Dapatkan kunci API
Bria AI Pembuangan Latar Belakang #cutout#ecommerce#transparent

Pembuangan latar belakang yang bersih dan selamat untuk kegunaan komersial bagi produk dan manusia.

Contoh

Input
Output · ~10 s
$0.018 · 18 kredit API

Bina permintaan

Kawalan dijana daripada skema model. Kod dan harga dikemas kini apabila anda mengubahnya.

Arahan potongan pilihan dalam bahasa biasa: 'only the chair' mengehadkan pilihan, 'without the lamp' mengalih keluar kandungan, dan 'the person with the mat' menambah kandungan untuk dikekalkan.

•diperlukan image_url
Lepaskan fail, atau

Imej sumber yang kandungannya akan dipadam.

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

Jalankan permintaan ini

Kunci anda kekal dalam pelayar ini: ia hanya dihantar kepada Doitong API dan disimpan (localStorage) hanya jika anda menanda Ingat. Dapatkan kunci API

Tentang Bria RMBG 2.0

Model pembuangan latar belakang Bria mengembalikan potongan telus dengan tepi lembut dan tepat di sekeliling rambut, bulu serta perincian produk halus, dilatih menggunakan data berlesen untuk kegunaan komersial. Satu imej masuk, satu potongan keluar, pada harga tetap bagi setiap imej.

Parameter

Hantar sama ada nama kanonik atau nama natif, bukan kedua-duanya. Nama kanonik

NamaJenis LalaiDibenarkan Penerangan
image_urldiperlukan image
Jenisurl · image
Imej sumber yang kandungannya akan dipadam.
promptpilihan
Jenisstring | null
Arahan potongan pilihan dalam bahasa biasa: 'only the chair' mengehadkan pilihan, 'without the lamp' mengalih keluar kandungan, dan 'the person with the mat' menambah kandungan untuk dikekalkan.
diperlukan Nama kanonik, turut diterima

Parameter fail menerima URL awam https://, URI data: sehingga 10 MB, atau file_url bagi muat naik. Fail

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"
  }
}
Fail anda, pilihan andaSetiap outputs[].url ialah salinan pada storan kami: disimpan selama-lamanya (dibayar setiap GB-bulan) atau 7 hari secara percuma, mengikut tetapan akaun anda atau ?storage=.
Bentuk yang sama pada setiap modeltype, url, content_type, width, height dan duration, untuk imej, video dan audio. output ialah objek hasil model itu sendiri.
Medan output
image
object {url, content_type, file_name, file_size, width, height}Imej yang dihasilkan melalui penjanaan.

Lebih banyak model: Pembuangan Latar Belakang

Untuk ejen AI: halaman ini dalam Markdown tersedia di https://doitong.com/ms/developers/models/bria/background/remove.md. Semua model dan panduan: https://doitong.com/developers/llms.txt