RemBG v1.4
RemBG v1.4 is an optimized image background removal model focused on rapid and accurate separation of foreground subjects from background. It uses lightweight segmentation to produce clean alpha masks for visual assets, product photos, and portraits without manual editing.
API Reference
INTEGRATE
Complete technical specification for integration
Request Response
Examples 4
CODE
Ready-to-use code snippets for common workflows
Fringed Cowboy Boot Product Cutout
{
"taskType": "removeBackground",
"taskUUID": "6541d00b-d8c9-48f1-be40-23ebe70a5bc0",
"model": "runware:109@1",
"settings": {
"alphaMatting": true,
"alphaMattingBackgroundThreshold": 12,
"alphaMattingErodeSize": 4,
"alphaMattingForegroundThreshold": 242,
"postProcessMask": true,
"returnOnlyMask": false,
"rgba": [
255,
255,
255,
0
]
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/72454a33-d7b3-4da3-970d-b8c834836750.jpg"
}
}{
"taskType": "imageBackgroundRemoval",
"taskUUID": "6541d00b-d8c9-48f1-be40-23ebe70a5bc0",
"imageUUID": "dca788da-4415-4115-b046-4a5780baee44",
"imageURL": "https://im.runware.ai/image/os/a09dlim3/ws/5/ii/dca788da-4415-4115-b046-4a5780baee44.png",
"cost": 0.0038,
"inputImageUUID": "b771c426-c17d-4e8a-b52c-6fc63f5797c2"
}Pixelated Toy Robot Portrait
{
"taskType": "removeBackground",
"taskUUID": "cdc8c516-310a-4646-b983-9cd3ec6993e4",
"model": "runware:109@1",
"settings": {
"rgba": [
255,
255,
255,
0
],
"postProcessMask": true,
"alphaMatting": true,
"alphaMattingForegroundThreshold": 230,
"alphaMattingBackgroundThreshold": 15,
"alphaMattingErodeSize": 8
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/835cc7d5-93d0-4af4-a427-2427f170084d.jpg"
}
}{
"taskType": "imageBackgroundRemoval",
"taskUUID": "cdc8c516-310a-4646-b983-9cd3ec6993e4",
"imageUUID": "7e745c5e-2a3a-4a44-b9d0-1920c8866d14",
"imageURL": "https://im.runware.ai/image/os/a13d12/ws/3/ii/7e745c5e-2a3a-4a44-b9d0-1920c8866d14.png",
"cost": 0.0013,
"inputImageUUID": "5071606e-5a78-4c28-bde5-66a1534ddde0"
}Feathered Cabaret Headpiece Portrait
{
"taskType": "removeBackground",
"taskUUID": "3962706f-6f5e-4687-90b5-3c29e272b6d6",
"model": "runware:109@1",
"settings": {
"alphaMatting": true,
"alphaMattingBackgroundThreshold": 12,
"alphaMattingErodeSize": 4,
"alphaMattingForegroundThreshold": 242,
"postProcessMask": true,
"returnOnlyMask": false,
"rgba": [
255,
255,
255,
0
]
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/9a8c80f0-146a-4678-b103-20c422db2049.jpg"
}
}{
"taskType": "imageBackgroundRemoval",
"taskUUID": "3962706f-6f5e-4687-90b5-3c29e272b6d6",
"imageUUID": "5dc78a86-9a26-4bec-974d-36a064686378",
"imageURL": "https://im.runware.ai/image/os/a09dlim3/ws/5/ii/5dc78a86-9a26-4bec-974d-36a064686378.png",
"cost": 0.0051,
"inputImageUUID": "ba0fd9ee-2d0d-442f-9e87-974633f8f040"
}Pixel Sprite Character Cutout
{
"taskType": "removeBackground",
"taskUUID": "277fb836-9d5c-4b60-b80b-70441b2e97e4",
"model": "runware:109@1",
"settings": {
"rgba": [
255,
255,
255,
0
],
"postProcessMask": true,
"alphaMatting": true,
"alphaMattingForegroundThreshold": 235,
"alphaMattingBackgroundThreshold": 12,
"alphaMattingErodeSize": 4
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/35b37672-4a53-4bbd-8781-94b3895832d1.jpg"
}
}{
"taskType": "imageBackgroundRemoval",
"taskUUID": "277fb836-9d5c-4b60-b80b-70441b2e97e4",
"imageUUID": "0755f8e6-2323-417b-8f6f-962e9cb8877e",
"imageURL": "https://im.runware.ai/image/os/a24d12/ws/3/ii/0755f8e6-2323-417b-8f6f-962e9cb8877e.png",
"cost": 0.0013,
"inputImageUUID": "9cd88089-8856-4e22-9b3a-9622ad153ef1"
}