सामग्री पर जाएँ

Bria Guided Remove Background

इंटीग्रेट करें

मॉडल 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.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"

यह अनुरोध: $0.03 30 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Bria AI बैकग्राउंड हटाना #background-removal#guided-segmentation#prompt-based-cutout#alpha-matte

प्रॉम्प्ट द्वारा निर्देशित बैकग्राउंड हटाना, जो कटआउट में ऑब्जेक्ट जोड़ता, हटाता या अलग करता है

Bria AI · इमेज

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

डिफ़ॉल्ट कटआउट में वैकल्पिक, सरल-भाषा समायोजन: 'the person with the mat and the plant' से चयन का विस्तार करें, 'the woman at her desk without the lamp' से ऑब्जेक्ट को बाहर रखें, या 'only the chair' से इसे सीमित करें। खाली मान बिना समायोजन के फ़ोटो के स्पष्ट विषय का चयन करता है। बनाए रखे गए पिक्सेल अपरिवर्तित रहते हैं; केवल नया अल्फ़ा चैनल जोड़ा जाता है।

उन्नत image · autocrop
image_url डिफ़ॉल्ट https://labs-assets.b...
फ़ाइल ड्रॉप करें, या

सार्वजनिक URL, रॉ base64-एन्कोडेड इमेज बाइट्स या data:image/png;base64,... जैसे base64 डेटा URI के माध्यम से दी गई स्रोत इमेज।

POST /run/bria/guided-remove-background?wait=20 कोटेशन → $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"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Bria Guided Remove Background के बारे में

`image_url` में मुख्य विषय के डिफ़ॉल्ट कटआउट से शुरू करता है, फिर वैकल्पिक सामान्य-भाषा वाले `prompt` का उपयोग करके इसे समायोजित करता है, जैसे किसी अतिरिक्त ऑब्जेक्ट को बनाए रखना या केवल एक ऑब्जेक्ट को अलग करना। मूल पिक्सेल बनाए रखे जाते हैं और एक अल्फ़ा चैनल जोड़ा जाता है, जिसे RGBA PNG के रूप में लौटाया जाता है। `autocrop` कैनवास को रखी गई सामग्री तक सीमित करता है।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
image_urlवैकल्पिक image
प्रकारurl · image
डिफ़ॉल्टhttps://labs-assets.bria.ai/api-examples/guided-remove-background/yoga_studio_input.jpg
सार्वजनिक URL, रॉ base64-एन्कोडेड इमेज बाइट्स या data:image/png;base64,... जैसे base64 डेटा URI के माध्यम से दी गई स्रोत इमेज।
promptवैकल्पिक
प्रकारstring | null
डिफ़ॉल्ट कटआउट में वैकल्पिक, सरल-भाषा समायोजन: 'the person with the mat and the plant' से चयन का विस्तार करें, 'the woman at her desk without the lamp' से ऑब्जेक्ट को बाहर रखें, या 'only the chair' से इसे सीमित करें। खाली मान बिना समायोजन के फ़ोटो के स्पष्ट विषय का चयन करता है। बनाए रखे गए पिक्सेल अपरिवर्तित रहते हैं; केवल नया अल्फ़ा चैनल जोड़ा जाता है।
autocropवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
आउटपुट कैनवस को बनाए रखी गई सामग्री के चारों ओर सघन रूप से क्रॉप करें।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

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"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर outputs[].url हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
image
object {url, content_type, file_name, file_size, width, height}RGBA PNG, जिसमें स्रोत फ़ोटो बनी रहती है और नया अल्फ़ा चैनल होता है जो प्रकट मुख्य विषय का चयन करता है तथा प्रॉम्प्ट के अनुसार उसे परिष्कृत करता है।

और मॉडल: बैकग्राउंड हटाना

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/bria/guided-remove-background.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt