[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Finegrain Eraser Mask](https://spiral.ai/integrations/muse-code/finegrain-eraser-mask)

# How to Use Finegrain Eraser Mask in Muse Code

Finegrain Eraser Mask removes selected objects and reconstructs the background, including their shadows and reflections. Unlike Finegrain Eraser's text selection, it uses a mask to identify what to remove.

|  |  |
| --- | --- |
| Model | Finegrain Eraser Mask |
| Available through | fal |
| Category | Image |
| Price | $0.0585 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Finegrain Eraser Mask in Muse Code

- Use Finegrain Eraser Mask on the homepage photo in this project to remove the wastebasket using its matching mask. Save a separate edited asset and show a before-and-after comparison.
- Use Finegrain Eraser Mask to remove the styling cup from the product photo and matching mask in assets. Inspect the tabletop reconstruction and the cup's former shadow before replacing the page image.
- Use Finegrain Eraser Mask with the project's brick-wall photo and mask. Compare standard and premium modes, then build a comparison view so I can inspect the brick pattern.
- Use Finegrain Eraser Mask to clean the masked background object from our landing-page photograph. Preview the result in the existing page layout and retain the original asset.
- Use Finegrain Eraser Mask on the food photo and utensil mask in this project. Save the edited image separately and show close-up crops of the reconstructed tabletop.

## How to set up Finegrain Eraser Mask in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Finegrain Eraser Mask**: One request; the result comes back by polling or a webhook.

```bash
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/finegrain-eraser/mask",
    "input": {
      "image_url": "https://v3.fal.media/files/elephant/IKqKIxDfRDK8fzeETCveO_erase_example01.jpg",
      "mask_url": "https://v3.fal.media/files/panda/-31cZrsoy-8BrLqOEFmST_indir%20(18).png"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Finegrain Eraser Mask on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Finegrain Eraser Mask tools and prices

- [Finegrain Eraser Mask · Image to Image](https://spiral.ai/tools/fal/fal-ai/finegrain-eraser/mask) (fal): $0.0585 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| mode | express, standard, premium | standard | Erase quality mode |
| seed | 0 to 999 | — | Random seed for reproducible generation |

## What can you do with Finegrain Eraser Mask in Muse Code?

Clean distracting objects out of the photos used in your project with Finegrain Eraser Mask. A coding agent can prepare edited assets and place before-and-after comparisons in the project for review.

### Clean up product photos

Remove an unwanted styling prop from an existing product photo. Review the rebuilt surface and any shadow or reflection left by the prop.

### Clear interior distractions

Erase a wastebasket or another distracting object from an interior photo, then inspect the reconstructed floor and wall.

### Remove background distractions

Remove an unwanted background object from a travel photo while keeping the original photo as a reference for review.

### Simplify food photography

Erase an unwanted utensil or table prop from a food photo. Check the reconstructed tabletop where the object and its shadow appeared.

### Prepare website photography

Remove distracting objects from an existing website image before placing it in a page. Compare the edited image with the original at the intended display size.

### Repair patterned backgrounds after removal

Compare standard and premium edits when removing an object in front of brickwork or another repeated pattern. Inspect alignment and texture before choosing the result.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Finegrain Eraser Mask in other agents

- [Amp](https://spiral.ai/integrations/amp/finegrain-eraser-mask)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/finegrain-eraser-mask)
- [Claude](https://spiral.ai/integrations/claude-desktop/finegrain-eraser-mask)
- [Claude Code](https://spiral.ai/integrations/claude-code/finegrain-eraser-mask)
- [Cline](https://spiral.ai/integrations/cline/finegrain-eraser-mask)
- [Codex](https://spiral.ai/integrations/codex/finegrain-eraser-mask)
- [Cursor](https://spiral.ai/integrations/cursor/finegrain-eraser-mask)
- [Devin](https://spiral.ai/integrations/devin/finegrain-eraser-mask)
- [dots](https://spiral.ai/integrations/dots/finegrain-eraser-mask)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/finegrain-eraser-mask)
- [Gemini](https://spiral.ai/integrations/gemini/finegrain-eraser-mask)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/finegrain-eraser-mask)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/finegrain-eraser-mask)
- [goose](https://spiral.ai/integrations/goose/finegrain-eraser-mask)
- [Grok](https://spiral.ai/integrations/grok/finegrain-eraser-mask)
- [Grok Build](https://spiral.ai/integrations/grok-build/finegrain-eraser-mask)
- [Hermes](https://spiral.ai/integrations/hermes/finegrain-eraser-mask)
- [Instinct](https://spiral.ai/integrations/instinct/finegrain-eraser-mask)
- [Manus](https://spiral.ai/integrations/manus/finegrain-eraser-mask)
- [Muse](https://spiral.ai/integrations/muse/finegrain-eraser-mask)
- [n8n](https://spiral.ai/integrations/n8n/finegrain-eraser-mask)
- [Notion](https://spiral.ai/integrations/notion/finegrain-eraser-mask)
- [OpenClaw](https://spiral.ai/integrations/openclaw/finegrain-eraser-mask)
- [opencode](https://spiral.ai/integrations/opencode/finegrain-eraser-mask)
- [Perplexity](https://spiral.ai/integrations/perplexity/finegrain-eraser-mask)
- [Raycast](https://spiral.ai/integrations/raycast/finegrain-eraser-mask)
- [VS Code](https://spiral.ai/integrations/vscode/finegrain-eraser-mask)
- [Windsurf](https://spiral.ai/integrations/windsurf/finegrain-eraser-mask)
- [Zapier](https://spiral.ai/integrations/zapier/finegrain-eraser-mask)

## More Muse Code guides

- [Finegrain Eraser Bbox](https://spiral.ai/integrations/muse-code/finegrain-eraser-bbox)
- [GPT Image 1 Mini](https://spiral.ai/integrations/muse-code/gpt-image-1-mini)
- [Finegrain Eraser](https://spiral.ai/integrations/muse-code/finegrain-eraser)
- [GPT Image 1 Mini Edit](https://spiral.ai/integrations/muse-code/gpt-image-1-mini-edit)
- [Fibo Lite](https://spiral.ai/integrations/muse-code/fibo-lite)
- [GPT Image 1.5](https://spiral.ai/integrations/muse-code/gpt-image-1-5)

## Questions about Finegrain Eraser Mask in Muse Code

**Can Muse Code use Finegrain Eraser Mask?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Finegrain Eraser Mask like any built-in tool.

**How much does Finegrain Eraser Mask cost in Muse Code?**

$0.0585 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need a fal account to use Finegrain Eraser Mask in Muse Code?**

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

**How long does it take to set up Finegrain Eraser Mask in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Finegrain Eraser Mask runs?**

Finegrain Eraser Mask runs in the background. Muse Code starts the run, checks on it and gives you the image when it's ready.

**What is Finegrain Eraser best suited for?**

Removing unwanted objects from existing photos and filling the space they occupied. Use it for tasks such as clearing a distracting prop from a product photo or removing clutter from an interior shot.

**Can Finegrain Eraser remove an object's shadow or reflection?**

Finegrain Eraser is designed to remove the object's visual traces, including shadows, reflections, and lighting artifacts. Check those areas in the result before accepting the edit.

**When should I try premium mode?**

Try premium when the reconstructed background contains visible patterns. Finegrain's brick-wall comparison shows more uniform reconstruction in premium mode than in standard mode.

**Where can Finegrain Eraser make visible mistakes?**

Reconstructed patterns can look uneven: Finegrain's standard-mode example includes imperfect bricks. Inspect repeated lines and textures around the erased area at full size.

**Does Finegrain Eraser support high-resolution output?**

Finegrain describes its Object Eraser API as supporting output up to 4K. That statement does not specify an exact width and height for every edit, so check the returned image's dimensions before using it in a layout.

