MODEL IDbfl:flux@erase
live

FLUX Erase

Black Forest Labs
by Black Forest Labs

FLUX Erase is a dedicated image editing model from Black Forest Labs for removing unwanted objects, text, or distractions from an image while reconstructing the surrounding content naturally. It is tuned for erase-style workflows where the goal is not to replace an element with something new, but to leave a clean, coherent result that matches nearby structure, lighting, texture, and scene context.

FLUX Erase
inpaint

Art Deco Backdrop Clean Plate

Art Deco Backdrop Clean Plate
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'bfl:flux@erase',
  settings: {
    dilatePixels: 10
  },
  inputs: {
    image: 'https://assets.runware.ai/assets/inputs/54e1fa4f-caf0-470d-b0cd-3ae5a620052d.jpg',
    mask: 'https://assets.runware.ai/assets/inputs/c65c59c7-bc35-4476-ad5e-166fa57be3c6.png'
  }
})
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": "bfl:flux@erase",
            "settings": {
                "dilatePixels": 10
            },
            "inputs": {
                "image": "https://assets.runware.ai/assets/inputs/54e1fa4f-caf0-470d-b0cd-3ae5a620052d.jpg",
                "mask": "https://assets.runware.ai/assets/inputs/c65c59c7-bc35-4476-ad5e-166fa57be3c6.png"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "3ae11af9-b19d-4ba8-bfd2-7c541378e9c1",
      "model": "bfl:flux@erase",
      "settings": {
        "dilatePixels": 10
      },
      "inputs": {
        "image": "https://assets.runware.ai/assets/inputs/54e1fa4f-caf0-470d-b0cd-3ae5a620052d.jpg",
        "mask": "https://assets.runware.ai/assets/inputs/c65c59c7-bc35-4476-ad5e-166fa57be3c6.png"
      }
    }
  ]'
runware run bfl:flux@erase \
  settings.dilatePixels=10 \
  inputs.image=https://assets.runware.ai/assets/inputs/54e1fa4f-caf0-470d-b0cd-3ae5a620052d.jpg \
  inputs.mask=https://assets.runware.ai/assets/inputs/c65c59c7-bc35-4476-ad5e-166fa57be3c6.png
{
  "taskType": "imageInference",
  "taskUUID": "3ae11af9-b19d-4ba8-bfd2-7c541378e9c1",
  "model": "bfl:flux@erase",
  "settings": {
    "dilatePixels": 10
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/54e1fa4f-caf0-470d-b0cd-3ae5a620052d.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/c65c59c7-bc35-4476-ad5e-166fa57be3c6.png"
  }
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "3ae11af9-b19d-4ba8-bfd2-7c541378e9c1",
  "imageUUID": "c2465abd-dd45-4b3f-9fab-3f274708c52c",
  "imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/3/ii/c2465abd-dd45-4b3f-9fab-3f274708c52c.jpg",
  "seed": 1748992676,
  "cost": 0.034
}
inpaint

Winter Lavender Farm Calendar Plate

Winter Lavender Farm Calendar Plate
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'bfl:flux@erase',
  settings: {
    dilatePixels: 10
  },
  inputs: {
    image: 'https://assets.runware.ai/assets/inputs/7c0dc78c-f65d-47c2-a965-2391c76c2bcb.jpg',
    mask: 'https://assets.runware.ai/assets/inputs/eaf4a8ae-546d-43ae-bd79-4f98d26aa6d9.png'
  }
})
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": "bfl:flux@erase",
            "settings": {
                "dilatePixels": 10
            },
            "inputs": {
                "image": "https://assets.runware.ai/assets/inputs/7c0dc78c-f65d-47c2-a965-2391c76c2bcb.jpg",
                "mask": "https://assets.runware.ai/assets/inputs/eaf4a8ae-546d-43ae-bd79-4f98d26aa6d9.png"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "db5ea789-8025-4da5-a523-7d33cffa7a1b",
      "model": "bfl:flux@erase",
      "settings": {
        "dilatePixels": 10
      },
      "inputs": {
        "image": "https://assets.runware.ai/assets/inputs/7c0dc78c-f65d-47c2-a965-2391c76c2bcb.jpg",
        "mask": "https://assets.runware.ai/assets/inputs/eaf4a8ae-546d-43ae-bd79-4f98d26aa6d9.png"
      }
    }
  ]'
runware run bfl:flux@erase \
  settings.dilatePixels=10 \
  inputs.image=https://assets.runware.ai/assets/inputs/7c0dc78c-f65d-47c2-a965-2391c76c2bcb.jpg \
  inputs.mask=https://assets.runware.ai/assets/inputs/eaf4a8ae-546d-43ae-bd79-4f98d26aa6d9.png
{
  "taskType": "imageInference",
  "taskUUID": "db5ea789-8025-4da5-a523-7d33cffa7a1b",
  "model": "bfl:flux@erase",
  "settings": {
    "dilatePixels": 10
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/7c0dc78c-f65d-47c2-a965-2391c76c2bcb.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/eaf4a8ae-546d-43ae-bd79-4f98d26aa6d9.png"
  }
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "db5ea789-8025-4da5-a523-7d33cffa7a1b",
  "imageUUID": "dc0e3c5e-ad8a-44ff-86c6-29204bc230c0",
  "imageURL": "https://im.runware.ai/image/os/a02d21/ws/3/ii/dc0e3c5e-ad8a-44ff-86c6-29204bc230c0.jpg",
  "seed": 1226984266,
  "cost": 0.034
}
inpaint

Blue-Hour Observatory Relight Plate

Blue-Hour Observatory Relight Plate
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'bfl:flux@erase',
  settings: {
    dilatePixels: 10
  },
  inputs: {
    image: 'https://assets.runware.ai/assets/inputs/a93b1ee5-7e0a-467d-a71a-c3b71235c162.jpg',
    mask: 'https://assets.runware.ai/assets/inputs/b9f1e0ca-a0a2-4cda-9b8a-b71eecea1391.png'
  }
})
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": "bfl:flux@erase",
            "settings": {
                "dilatePixels": 10
            },
            "inputs": {
                "image": "https://assets.runware.ai/assets/inputs/a93b1ee5-7e0a-467d-a71a-c3b71235c162.jpg",
                "mask": "https://assets.runware.ai/assets/inputs/b9f1e0ca-a0a2-4cda-9b8a-b71eecea1391.png"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "0cc26126-5d5f-440f-8289-ea85827d6e8b",
      "model": "bfl:flux@erase",
      "settings": {
        "dilatePixels": 10
      },
      "inputs": {
        "image": "https://assets.runware.ai/assets/inputs/a93b1ee5-7e0a-467d-a71a-c3b71235c162.jpg",
        "mask": "https://assets.runware.ai/assets/inputs/b9f1e0ca-a0a2-4cda-9b8a-b71eecea1391.png"
      }
    }
  ]'
runware run bfl:flux@erase \
  settings.dilatePixels=10 \
  inputs.image=https://assets.runware.ai/assets/inputs/a93b1ee5-7e0a-467d-a71a-c3b71235c162.jpg \
  inputs.mask=https://assets.runware.ai/assets/inputs/b9f1e0ca-a0a2-4cda-9b8a-b71eecea1391.png
{
  "taskType": "imageInference",
  "taskUUID": "0cc26126-5d5f-440f-8289-ea85827d6e8b",
  "model": "bfl:flux@erase",
  "settings": {
    "dilatePixels": 10
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/a93b1ee5-7e0a-467d-a71a-c3b71235c162.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/b9f1e0ca-a0a2-4cda-9b8a-b71eecea1391.png"
  }
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "0cc26126-5d5f-440f-8289-ea85827d6e8b",
  "imageUUID": "50b89a4b-f3bc-46a5-b140-6c5db2358318",
  "imageURL": "https://im.runware.ai/image/os/a06dlim3/ws/3/ii/50b89a4b-f3bc-46a5-b140-6c5db2358318.jpg",
  "seed": 1928705360,
  "cost": 0.034
}
inpaint

Vacant Aircraft Hangar Leasing Photo

Vacant Aircraft Hangar Leasing Photo
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'bfl:flux@erase',
  settings: {
    dilatePixels: 10
  },
  inputs: {
    image: 'https://assets.runware.ai/assets/inputs/d05131f2-63ab-4d60-bb25-d6d6ab81b821.jpg',
    mask: 'https://assets.runware.ai/assets/inputs/91662645-c6e5-49db-9028-61a811f6c439.png'
  }
})
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": "bfl:flux@erase",
            "settings": {
                "dilatePixels": 10
            },
            "inputs": {
                "image": "https://assets.runware.ai/assets/inputs/d05131f2-63ab-4d60-bb25-d6d6ab81b821.jpg",
                "mask": "https://assets.runware.ai/assets/inputs/91662645-c6e5-49db-9028-61a811f6c439.png"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "84bd6205-04d0-4ef6-9729-cbf59b0849d0",
      "model": "bfl:flux@erase",
      "settings": {
        "dilatePixels": 10
      },
      "inputs": {
        "image": "https://assets.runware.ai/assets/inputs/d05131f2-63ab-4d60-bb25-d6d6ab81b821.jpg",
        "mask": "https://assets.runware.ai/assets/inputs/91662645-c6e5-49db-9028-61a811f6c439.png"
      }
    }
  ]'
runware run bfl:flux@erase \
  settings.dilatePixels=10 \
  inputs.image=https://assets.runware.ai/assets/inputs/d05131f2-63ab-4d60-bb25-d6d6ab81b821.jpg \
  inputs.mask=https://assets.runware.ai/assets/inputs/91662645-c6e5-49db-9028-61a811f6c439.png
{
  "taskType": "imageInference",
  "taskUUID": "84bd6205-04d0-4ef6-9729-cbf59b0849d0",
  "model": "bfl:flux@erase",
  "settings": {
    "dilatePixels": 10
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/d05131f2-63ab-4d60-bb25-d6d6ab81b821.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/91662645-c6e5-49db-9028-61a811f6c439.png"
  }
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "84bd6205-04d0-4ef6-9729-cbf59b0849d0",
  "imageUUID": "bf14fae3-73b0-4dfd-8d28-04ef86f3c8c7",
  "imageURL": "https://im.runware.ai/image/os/a01d21/ws/3/ii/bf14fae3-73b0-4dfd-8d28-04ef86f3c8c7.jpg",
  "seed": 317004358,
  "cost": 0.042
}