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
Examples4
CODE
Ready-to-use code snippets for common workflows
Ornate Violin on Velvet

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"
}
}{
"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"
}Tidepool Astronaut Figurine Cutout

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"
}
}{
"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"
}Weathered Compass on Linen

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"
}
}{
"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"
}Ivory Heron Reed Marsh

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"
}
}{
"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"
}