Spiral gives your agent every tool with one account. Browse the tools →

Factory Droid · Image

How to Use Bria Eraser in Factory Droid

Bria Eraser removes masked objects from existing images and fills the cleared area to match its surroundings. Use it for targeted photo cleanup, with a mask defining exactly what needs to go.

Prompts to try with Bria Eraser in Factory Droid

Copy an example into Factory Droid, or ask in your own words.

Use Bria Eraser on public/images/desk.jpg to remove the mug beside the laptop. Prepare a mask for the mug and save a separate edited image for comparison.

Bria EraserFactory Droid
Try asking
  • Use Bria Eraser to remove the marked prop from assets/product-photo.png using assets/prop-mask.png. Show the original and edited product outlines side by side.

  • Use Bria Eraser on the project’s room photo to remove the box in the corner. Preview the removal mask first, then show the reconstructed floor at full size.

  • Use Bria Eraser with the supplied mask to clean assets/cutout.png. Enable transparency preservation and preview the result against light and dark backgrounds.

  • Use Bria Eraser on the homepage photo to remove the selected background object. Save the result separately and add a temporary before-and-after comparison to the local preview.

How to set up Bria Eraser in Factory Droid

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Bria Eraser

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "fal-ai/bria/eraser",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/bria/bria_eraser_img.png",
          "mask_url": "https://storage.googleapis.com/falserverless/bria/bria_eraser_mask.png"
        }
      }'

Then paste one of the prompts above: Factory Droid finds Bria Eraser on Spiral, shows the price and runs it.

Bria Eraser providers and prices

Spiral runs Bria Eraser through fal. Open a card for today's price, with every fee included.

falImage
Bria Eraser
fal-ai/bria/eraser

Settings you can ask for

Bria Eraser works from your image URL and mask URL. Ask Factory Droid for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Mask typemanual or automaticmanual

You can use this parameter to specify the type of the input mask from the list. 'manual' opttion should be used in cases in which the mask had been generated by a user (e.g. with a brush tool), and 'automatic' mask type should be used when mask had been generated by an algorithm like 'SAM'.

Preserve alphaon or offoff

If set to true, attempts to preserve the alpha channel of the input image.

Every API field of Bria Eraser is on its tool page: open its card above.

What can you do with Bria Eraser in Factory Droid?

Clean photography used in your project with Bria Eraser before placing it in a page or component. Your coding agent can prepare masks from the requested regions and show the edited assets for review.

Clean product photos

Use Bria Eraser to remove a masked prop beside a product. Review the reconstructed surface before adding the image to a catalog.

Remove background distractions from portraits

Use Bria Eraser to remove a masked object behind the subject. Check the fill near hair, clothing, and the subject's outline.

Tidy interior photography

Use Bria Eraser to remove a selected bag, box, or loose item from a room photo. Inspect any floor or wall pattern reconstructed beneath it.

Prepare campaign images

Use Bria Eraser to clear a selected distraction from an existing campaign photo before adding copy in your design editor.

Retouch transparent assets

Use Bria Eraser to remove a masked detail from an image with transparency. Request transparency preservation and review partially transparent edges.

Clean website photography

Use Bria Eraser to remove a selected object from a website image. Compare the edited region with the original before replacing the asset.

Questions about Bria Eraser in Factory Droid

Can Factory Droid use Bria Eraser?

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Bria Eraser like any built-in tool.

How much does Bria Eraser cost in Factory Droid?

$0.052 per generation. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Factory Droid plan is separate.

Do I need a fal account to use Bria Eraser in Factory Droid?

No. Spiral runs Bria Eraser on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Bria Eraser in Factory Droid?

About two minutes: add the server, then sign in, then check it.

Does Factory Droid wait while Bria Eraser runs?

Bria Eraser runs in the background. Factory Droid starts the run, checks on it and gives you the image when it's ready.

What is Bria Eraser useful for?

Use it to remove selected objects or distractions from an existing photo. It fills the cleared area to maintain continuity with the surrounding image.

Can I select what to remove with a written instruction?

Bria Eraser uses a mask to select the removal area. Tell your agent which object to target, then have it prepare or use a mask for that object.

How should I mark the removal area?

Mark the area to erase in white and the area to keep in black. Check the mask over the original image before running the edit.

Does Bria Eraser change the image resolution?

Bria documents Eraser output at the original resolution. Use the source image's dimensions when planning the finished asset.

Does Bria Eraser recover what was actually behind an object?

It removes the object and fills the area. Treat that fill as a generated reconstruction, so review it before using the result where scene accuracy matters.

Get started

Start using Bria Eraser in Factory Droid

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Factory Droid:

Set up Factory Droid

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options