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

VS Code · Image

How to Use Finegrain Eraser in VS Code

Finegrain Eraser removes objects from existing photos and reconstructs the space they occupied. Its strength is removing the object's shadows, reflections, and lighting effects along with the object, guided by a text description.

Prompts to try with Finegrain Eraser in VS Code

Copy an example into VS Code, or ask in your own words.

Use Finegrain Eraser on the homepage photo in this project to remove the red cup nearest the laptop. Save a separate edited copy and show it beside the original.

Finegrain EraserVS Code
Try asking
  • Use Finegrain Eraser on the room photo in the project's assets to erase the potted plant beside the window. Show a close-up of the reconstructed floor and wall.

  • Use Finegrain Eraser on the product photo in this project to remove the small white bottle behind the main product. Compare standard and premium quality before recommending an asset.

  • Use Finegrain Eraser on the travel photo used by the gallery page to remove the person wearing a red jacket at the far right. Save the result separately for review.

  • Use Finegrain Eraser on the dining photo in this project to remove the fork nearest the bottom edge. Use premium quality and show the reconstructed plate edge at full size.

How to set up Finegrain Eraser in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS 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.

    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

    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/finegrain-eraser",
        "input": {
          "image_url": "https://v3.fal.media/files/elephant/IKqKIxDfRDK8fzeETCveO_erase_example01.jpg",
          "prompt": "person on the right and snowboard"
        }
      }'

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

Finegrain Eraser providers and prices

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

falImage
Finegrain Eraser · prompt
fal-ai/finegrain-eraser

Settings you can ask for

Finegrain Eraser works from your image URL and prompt. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Modeexpress, standard, or premiumstandard

Erase quality mode

Seed0 to 999

Random seed for reproducible generation

Every API field of Finegrain Eraser · prompt is on its tool page: open its card above.

What can you do with Finegrain Eraser in VS Code?

Clean up existing project photos by describing the object to remove. A coding agent can save edited copies, compare them with the originals, and update asset references after review.

Remove distracting product-photo props

Erase a stray bottle, cup, or display prop from an existing product photo. Check the reconstructed surface and any reflections beside the product.

Clear clutter from room photos

Remove a named plant, chair, or other movable object from an interior photo. Review the floor and wall where the object stood.

Remove a background passerby

Identify an unwanted person by clothing and position in a travel photo. Review the reconstructed background and the person's former shadow.

Simplify tabletop photography

Erase unwanted utensils or a spare glass from a food or tabletop photo. Inspect plate contours, table texture, and nearby reflections.

Prepare website photo assets

Remove a distracting object from an existing website photo before cropping it for a page. Compare the edited scene with the original before replacing the asset.

Remove unused sports equipment

Erase a stray ball or board from an existing sports photo. Check the reconstructed ground and the shadow left by the equipment.

Questions about Finegrain Eraser in VS Code

Can VS Code use Finegrain Eraser?

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

How much does Finegrain Eraser cost in VS 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 VS Code plan is separate.

Do I need a fal account to use Finegrain Eraser in VS Code?

No. Spiral runs Finegrain 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 Finegrain Eraser in VS Code?

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

Does VS Code wait while Finegrain Eraser runs?

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

Does Finegrain Eraser remove shadows and reflections too?

Yes. It targets the removed object's shadows, reflections, and lighting effects, then reconstructs the affected scene.

How should I describe what to erase?

Name the object and add a visible detail that identifies it, such as its color, relative size, or position. For example, use 'the small green bottle beside the vase' instead of 'the bottle.'

Do I need to paint over the object first?

No. Finegrain Eraser can select what to remove from a text description without a manually painted mask.

When should I try premium quality?

Try premium when an edit leaves uneven contours or damages a visible pattern. Finegrain's published plate comparison shows better reconstruction and pattern preservation than standard quality.

What should I check before using an edited photo?

Inspect reconstructed edges, patterns, and shadows at full size. Finegrain's standard-quality example shows that an object can be removed while the reconstructed plate still has imperfect details.

Get started

Start using Finegrain Eraser in VS Code

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

Paste this into VS Code:

Set up VS Code

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