İçeriğe geç

Bria Guided Remove Background

Entegre et

Model kimliği 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"

Bu istek: $0,03 30 API kredisi Bu sayfada çalıştır

API anahtarı al
Bria AI · Görsel

İlk sonucunuz burada görünecek

Aşağıda bir istek oluşturun ve API anahtarınızla çalıştırın. Çıktılar depolamamıza kopyalanır ve sonsuza kadar veya ücretsiz olarak 7 gün boyunca saklanır.

İstek oluştur

Kontroller model şemasından oluşturulur. Değerleri değiştirdikçe kod ve fiyat güncellenir.

Varsayılan kesme seçimine yönelik isteğe bağlı, yalın dilli ayarlama: 'the person with the mat and the plant' ile seçimi genişletin, 'the woman at her desk without the lamp' ile nesneleri hariç tutun veya 'only the chair' ile sınırlandırın. Boş değer, ayarlama yapmadan fotoğrafın belirgin öznesini seçer. Korunan pikseller değiştirilmez; yalnızca yeni bir alfa kanalı eklenir.

Gelişmiş image · autocrop
image_url varsayılan https://labs-assets.b...
Dosyayı bırakın veya

Herkese açık URL, ham base64 kodlu görsel baytları veya data:image/png;base64,... gibi base64 veri URI'si üzerinden sağlanan kaynak görsel.

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

Bu isteği çalıştır

Anahtarınız bu tarayıcıda kalır: yalnızca Doitong API'ye gönderilir ve yalnızca Hatırla seçeneğini işaretlerseniz localStorage'a kaydedilir. API anahtarı al

Bria Guided Remove Background hakkında

`image_url` içindeki ana öznenin varsayılan kesitiyle başlar, ardından isteğe bağlı doğal dildeki `prompt` ile bunu ayarlar; örneğin ek bir nesneyi koruyabilir veya yalnızca tek bir nesneyi ayırabilir. Özgün pikseller korunur ve alfa kanalı eklenerek RGBA PNG olarak döndürülür. `autocrop`, korunan içeriğe göre tuvali sıkılaştırır.

Parametreler

Kanonik adı veya yerel adı gönderin; ikisini birden göndermeyin. Kanonik adlar

AdTür Varsayılanİzin verilen Açıklama
image_urlisteğe bağlı image
Türurl · image
Varsayılanhttps://labs-assets.bria.ai/api-examples/guided-remove-background/yoga_studio_input.jpg
Herkese açık URL, ham base64 kodlu görsel baytları veya data:image/png;base64,... gibi base64 veri URI'si üzerinden sağlanan kaynak görsel.
promptisteğe bağlı
Türstring | null
Varsayılan kesme seçimine yönelik isteğe bağlı, yalın dilli ayarlama: 'the person with the mat and the plant' ile seçimi genişletin, 'the woman at her desk without the lamp' ile nesneleri hariç tutun veya 'only the chair' ile sınırlandırın. Boş değer, ayarlama yapmadan fotoğrafın belirgin öznesini seçer. Korunan pikseller değiştirilmez; yalnızca yeni bir alfa kanalı eklenir.
autocropisteğe bağlı
Türboolean
Varsayılanfalse
Çıktı tuvalini korunan içeriğin çevresine sıkı şekilde kırpın.
gerekli Kanonik ad, bu ad da kabul edilir

Dosya parametreleri herkese açık bir https:// URL'si, 10 MB'a kadar bir data: URI'si veya yüklenen bir dosyanın file_url değerini kabul eder. Dosyalar

Çıktı

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"
  }
}
Dosyalarınız, seçiminizHer outputs[].url, depolamamızdaki bir kopyadır: sonsuza kadar (GB-ay başına ücretli) veya ücretsiz olarak 7 gün boyunca, hesap ayarınızla ya da ?storage= ile saklanır.
Her modelde aynı yapıGörüntüler, video ve ses için type, url, content_type, width, height ve duration aynıdır. output, modelin kendi sonuç nesnesidir.
Çıktı alanları
image
object {url, content_type, file_name, file_size, width, height}Kaynak fotoğrafı koruyan ve isteme göre iyileştirilmiş, görünen ana özneyi seçen yeni oluşturulmuş alfa kanalına sahip RGBA PNG.

Daha fazla model: Arka Plan Kaldırma

AI aracıları için: bu sayfanın Markdown biçimi şurada: https://doitong.com/tr/developers/models/bria/guided-remove-background.md. Tüm modeller ve kılavuzlar: https://doitong.com/developers/llms.txt