BiRefNet v1 Base – COD
This BiRefNet variant is specialized for camouflaged object detection, targeting objects that closely blend with their surroundings. It enhances subtle boundary contrast and improves detection reliability in low-visibility and texture-confusing scenarios.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples4
CODE
Ready-to-use code snippets for common workflows
remove-background
Field Recordist Editorial Cutout$0.0006~8s
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@2',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/b35112b8-6003-4261-8159-040daee5c2c5.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@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b35112b8-6003-4261-8159-040daee5c2c5.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": "e787b11f-b76b-4f7c-a838-2ea05bc473c4",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b35112b8-6003-4261-8159-040daee5c2c5.jpg"
}
}
]'runware run runware:112@2 \
inputs.image=https://assets.runware.ai/assets/inputs/b35112b8-6003-4261-8159-040daee5c2c5.jpg{
"taskType": "removeBackground",
"taskUUID": "e787b11f-b76b-4f7c-a838-2ea05bc473c4",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b35112b8-6003-4261-8159-040daee5c2c5.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "e787b11f-b76b-4f7c-a838-2ea05bc473c4",
"imageUUID": "68ac650b-39b3-4097-bdc6-6d2735bec043",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/5/ii/68ac650b-39b3-4097-bdc6-6d2735bec043.png",
"cost": 0.0006,
"inputImageUUID": "bbfb9641-e14a-4c03-a8a7-3372cf5f3996"
}remove-background
Wetland Auditor Profile Portrait 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@2',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/06fe2254-089d-4aae-93ad-4ad576c639f2.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@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/06fe2254-089d-4aae-93ad-4ad576c639f2.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": "a43cbfe4-f985-43b2-bdb3-605de33ccfd4",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/06fe2254-089d-4aae-93ad-4ad576c639f2.jpg"
}
}
]'runware run runware:112@2 \
inputs.image=https://assets.runware.ai/assets/inputs/06fe2254-089d-4aae-93ad-4ad576c639f2.jpg{
"taskType": "removeBackground",
"taskUUID": "a43cbfe4-f985-43b2-bdb3-605de33ccfd4",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/06fe2254-089d-4aae-93ad-4ad576c639f2.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "a43cbfe4-f985-43b2-bdb3-605de33ccfd4",
"imageUUID": "d4b4ae7b-99ea-4916-8255-c9f2d1c0cfb5",
"imageURL": "https://im.runware.ai/image/os/a04d20/ws/5/ii/d4b4ae7b-99ea-4916-8255-c9f2d1c0cfb5.png",
"cost": 0.0006,
"inputImageUUID": "1eb12dd6-03a0-4a06-a653-80242f781f73"
}remove-background
Alpine Snowcat Twilight Relight 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@2',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/96892244-c939-473c-834d-9350a9695be1.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@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/96892244-c939-473c-834d-9350a9695be1.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": "9779e0bc-8327-4936-9b30-634938e7bac6",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/96892244-c939-473c-834d-9350a9695be1.jpg"
}
}
]'runware run runware:112@2 \
inputs.image=https://assets.runware.ai/assets/inputs/96892244-c939-473c-834d-9350a9695be1.jpg{
"taskType": "removeBackground",
"taskUUID": "9779e0bc-8327-4936-9b30-634938e7bac6",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/96892244-c939-473c-834d-9350a9695be1.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "9779e0bc-8327-4936-9b30-634938e7bac6",
"imageUUID": "04bf9bde-7839-4e0d-9522-75c3473d40b2",
"imageURL": "https://im.runware.ai/image/os/a02d21/ws/5/ii/04bf9bde-7839-4e0d-9522-75c3473d40b2.png",
"cost": 0.0006,
"inputImageUUID": "ca20c049-d526-44f9-802b-7a84e110649f"
}remove-background
Barrel Sauna Seasonal Relight 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@2',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/e156a61e-9ba8-4da5-b74e-cbcb5799e5c3.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@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e156a61e-9ba8-4da5-b74e-cbcb5799e5c3.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": "a5000b31-1dcc-4fa9-84d0-6ed3bc864028",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e156a61e-9ba8-4da5-b74e-cbcb5799e5c3.jpg"
}
}
]'runware run runware:112@2 \
inputs.image=https://assets.runware.ai/assets/inputs/e156a61e-9ba8-4da5-b74e-cbcb5799e5c3.jpg{
"taskType": "removeBackground",
"taskUUID": "a5000b31-1dcc-4fa9-84d0-6ed3bc864028",
"model": "runware:112@2",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e156a61e-9ba8-4da5-b74e-cbcb5799e5c3.jpg"
}
}Response
{
"taskType": "imageBackgroundRemoval",
"taskUUID": "a5000b31-1dcc-4fa9-84d0-6ed3bc864028",
"imageUUID": "3443be53-cf94-4b18-a53b-72119d6d712b",
"imageURL": "https://im.runware.ai/image/os/a04d20/ws/5/ii/3443be53-cf94-4b18-a53b-72119d6d712b.png",
"cost": 0.0006,
"inputImageUUID": "2c7b2a3c-4106-46c9-942f-bcd5f4a8ddbc"
}