BiRefNet HRSOD DHU
BiRefNet HRSOD DHU is designed for salient object detection in high-resolution imagery. It preserves fine details and sharp boundaries, making it suitable for complex scenes with small or visually dominant subjects.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples8
CODE
Ready-to-use code snippets for common workflows
remove-background
Twilight Hotel Chandelier Relight Asset$0.0006~6s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/3a380bf9-ae67-4da2-b5ba-6b50aba59dec.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/3a380bf9-ae67-4da2-b5ba-6b50aba59dec.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "3a2c737e-6ac2-4ceb-83de-0e34e1fb2d28",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/3a380bf9-ae67-4da2-b5ba-6b50aba59dec.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/3a380bf9-ae67-4da2-b5ba-6b50aba59dec.jpg{
"taskType": "removeBackground",
"taskUUID": "3a2c737e-6ac2-4ceb-83de-0e34e1fb2d28",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/3a380bf9-ae67-4da2-b5ba-6b50aba59dec.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "3a2c737e-6ac2-4ceb-83de-0e34e1fb2d28",
"imageUUID": "5b5700dc-2cec-4d35-a937-932ca6405814",
"imageURL": "https://im.runware.ai/image/os/a01d21/ws/5/ii/5b5700dc-2cec-4d35-a937-932ca6405814.png",
"cost": 0.0006,
"inputImageUUID": "da4eb544-9049-4da2-830f-228a7aab987a"
}remove-background
Moon Jellyfish Exhibit Composite Cutout$0.0006~7s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/543cf223-cafc-4506-bd85-0339c8903c3a.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/543cf223-cafc-4506-bd85-0339c8903c3a.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "775ae68d-1318-49f4-8ab4-9997462ad45c",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/543cf223-cafc-4506-bd85-0339c8903c3a.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/543cf223-cafc-4506-bd85-0339c8903c3a.jpg{
"taskType": "removeBackground",
"taskUUID": "775ae68d-1318-49f4-8ab4-9997462ad45c",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/543cf223-cafc-4506-bd85-0339c8903c3a.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "775ae68d-1318-49f4-8ab4-9997462ad45c",
"imageUUID": "f07a76e1-be79-4470-a719-15b567784e9e",
"imageURL": "https://im.runware.ai/image/os/a06dlim3/ws/5/ii/f07a76e1-be79-4470-a719-15b567784e9e.png",
"cost": 0.0006,
"inputImageUUID": "7b8a737b-ae5d-4ba3-8807-13e3aad5e288"
}remove-background
Wind Technician Campaign Cutout$0.0006~6s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/ad5d9985-8904-40d5-8b8e-e9c3552f7333.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/ad5d9985-8904-40d5-8b8e-e9c3552f7333.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "28a3e871-6301-4b24-aa3a-545eec22abe3",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/ad5d9985-8904-40d5-8b8e-e9c3552f7333.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/ad5d9985-8904-40d5-8b8e-e9c3552f7333.jpg{
"taskType": "removeBackground",
"taskUUID": "28a3e871-6301-4b24-aa3a-545eec22abe3",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/ad5d9985-8904-40d5-8b8e-e9c3552f7333.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "28a3e871-6301-4b24-aa3a-545eec22abe3",
"imageUUID": "ac3e9b3f-10fd-4e2e-ab39-6963873348df",
"imageURL": "https://im.runware.ai/image/os/a06dlim3/ws/5/ii/ac3e9b3f-10fd-4e2e-ab39-6963873348df.png",
"cost": 0.0006,
"inputImageUUID": "f09f6adb-eb04-4b86-a7ba-a7b3398999d7"
}remove-background
Panoramic Fossil Exhibition Banner$0.0006~6s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/a5fd22f9-24e3-4d41-a1ee-370ee848cda5.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/a5fd22f9-24e3-4d41-a1ee-370ee848cda5.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "ffdbdf23-be75-4ffc-8c7d-5f70ebd1a2f0",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/a5fd22f9-24e3-4d41-a1ee-370ee848cda5.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/a5fd22f9-24e3-4d41-a1ee-370ee848cda5.jpg{
"taskType": "removeBackground",
"taskUUID": "ffdbdf23-be75-4ffc-8c7d-5f70ebd1a2f0",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/a5fd22f9-24e3-4d41-a1ee-370ee848cda5.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "ffdbdf23-be75-4ffc-8c7d-5f70ebd1a2f0",
"imageUUID": "d7aa6b63-153b-4e8a-b9bb-e2b8b4100462",
"imageURL": "https://im.runware.ai/image/os/a09dlim3/ws/5/ii/d7aa6b63-153b-4e8a-b9bb-e2b8b4100462.png",
"cost": 0.0006,
"inputImageUUID": "f2558e14-f41e-4d97-b146-7ca0cfef6bdf"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/b1436823-cb22-46bb-bba5-6bea52f1efb9.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b1436823-cb22-46bb-bba5-6bea52f1efb9.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "2ba375d7-f598-4775-8e5f-4ed96cfd91c9",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b1436823-cb22-46bb-bba5-6bea52f1efb9.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/b1436823-cb22-46bb-bba5-6bea52f1efb9.jpg{
"taskType": "removeBackground",
"taskUUID": "2ba375d7-f598-4775-8e5f-4ed96cfd91c9",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b1436823-cb22-46bb-bba5-6bea52f1efb9.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "2ba375d7-f598-4775-8e5f-4ed96cfd91c9",
"imageUUID": "1fd70ff5-dd59-4a0c-916f-fad829cde155",
"imageURL": "https://im.runware.ai/image/os/a07d11/ws/4/ii/1fd70ff5-dd59-4a0c-916f-fad829cde155.png",
"cost": 0.0006,
"inputImageUUID": "b2d42e53-ad8e-47d9-b32b-ede205909971"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
outputFormat: 'PNG',
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/0d2ef38a-c651-4b86-830b-c4c40f8730d1.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"outputFormat": "PNG",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/0d2ef38a-c651-4b86-830b-c4c40f8730d1.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "23ca7091-aef0-45b8-be4f-13db58ca8207",
"outputFormat": "PNG",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/0d2ef38a-c651-4b86-830b-c4c40f8730d1.jpg"
}
}
]'runware run runware:112@7 \
outputFormat=PNG \
inputs.image=https://assets.runware.ai/assets/inputs/0d2ef38a-c651-4b86-830b-c4c40f8730d1.jpg{
"taskType": "removeBackground",
"taskUUID": "23ca7091-aef0-45b8-be4f-13db58ca8207",
"outputFormat": "PNG",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/0d2ef38a-c651-4b86-830b-c4c40f8730d1.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "23ca7091-aef0-45b8-be4f-13db58ca8207",
"imageUUID": "51c9686e-1892-4f81-940a-e426ff5c5238",
"imageURL": "https://im.runware.ai/image/os/a19d05/ws/4/ii/51c9686e-1892-4f81-940a-e426ff5c5238.png",
"cost": 0.0006,
"inputImageUUID": "ba7e5b18-a7c7-4b17-8f6d-5b36de531b82"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/c382b0fe-fd1c-45c4-8d03-28fc6b854467.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c382b0fe-fd1c-45c4-8d03-28fc6b854467.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "d41296da-2ad3-41bb-8e89-de4386c2e67d",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c382b0fe-fd1c-45c4-8d03-28fc6b854467.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/c382b0fe-fd1c-45c4-8d03-28fc6b854467.jpg{
"taskType": "removeBackground",
"taskUUID": "d41296da-2ad3-41bb-8e89-de4386c2e67d",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c382b0fe-fd1c-45c4-8d03-28fc6b854467.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "d41296da-2ad3-41bb-8e89-de4386c2e67d",
"imageUUID": "8576f3aa-9ade-4436-8af1-9600b5b613b3",
"imageURL": "https://im.runware.ai/image/os/a19d05/ws/4/ii/8576f3aa-9ade-4436-8af1-9600b5b613b3.png",
"cost": 0.0006,
"inputImageUUID": "92fa6b1b-bf3d-44f6-a796-f437ba5a1c51"
}
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:112@7',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/b573ff24-26c5-457f-b414-fd4a8d098617.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b573ff24-26c5-457f-b414-fd4a8d098617.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "removeBackground",
"taskUUID": "a4c05749-43e5-4461-8fd0-fae3044b7040",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b573ff24-26c5-457f-b414-fd4a8d098617.jpg"
}
}
]'runware run runware:112@7 \
inputs.image=https://assets.runware.ai/assets/inputs/b573ff24-26c5-457f-b414-fd4a8d098617.jpg{
"taskType": "removeBackground",
"taskUUID": "a4c05749-43e5-4461-8fd0-fae3044b7040",
"model": "runware:112@7",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b573ff24-26c5-457f-b414-fd4a8d098617.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "a4c05749-43e5-4461-8fd0-fae3044b7040",
"imageUUID": "0d6a808b-2048-4922-9e51-56dfe7c2ddb0",
"imageURL": "https://im.runware.ai/image/os/a10d08/ws/4/ii/0d6a808b-2048-4922-9e51-56dfe7c2ddb0.png",
"cost": 0.0006,
"inputImageUUID": "32fabd5c-c8cd-4cba-adf3-c53e83220088"
}