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

opencode · Image

How to Use Finegrain Eraser Bbox in opencode

Finegrain Eraser Bbox removes a selected object and reconstructs the background, including its shadows and reflections. Unlike Finegrain Eraser, it selects the target with a box instead of a text description.

Prompts to try with Finegrain Eraser Bbox in opencode

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

Use Finegrain Eraser Bbox on public/images/desk.jpg to remove the mug at the right edge with one selection box. Save an edited copy and a before-and-after comparison.

Finegrain Eraser Bboxopencode
Try asking
  • Use Finegrain Eraser Bbox to remove the plant from assets/living-room.jpg. Try premium mode and show the reconstructed floor at full size.

  • Use Finegrain Eraser Bbox on assets/product.jpg to erase the prop beside the product. Select only that target and save the result separately.

  • Use Finegrain Eraser Bbox to compare standard and premium removal of the cup in assets/tabletop.jpg. Build a comparison page focused on the plate pattern.

  • Use Finegrain Eraser Bbox on public/images/travel.jpg to remove the person on the far left. Show the edited area and its shadow beside the original.

How to set up Finegrain Eraser Bbox in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 Bbox

    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/bbox",
        "input": {
          "image_url": "https://v3.fal.media/files/elephant/IKqKIxDfRDK8fzeETCveO_erase_example01.jpg",
          "box_prompts": [
            {}
          ]
        }
      }'

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

Finegrain Eraser Bbox providers and prices

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

falImage
Finegrain Eraser Bbox · Image to Image
fal-ai/finegrain-eraser/bbox

Settings you can ask for

Finegrain Eraser Bbox works from your image URL. Ask opencode 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 Bbox · Image to Image is on its tool page: open its card above.

What can you do with Finegrain Eraser Bbox in opencode?

Clean up existing project photographs before placing them in a page or app. Have the agent save edited copies and prepare comparisons for review.

Product photo cleanup

Remove a distracting prop beside a product, then inspect the reconstructed surface before using the image in a listing.

Interior photo retouching

Erase an unwanted plant, basket, or chair from a room photograph and check the floor and wall behind it.

Travel photo cleanup

Remove a distracting person from a travel photograph with one selection box.

Tabletop photography

Erase a cup or utensil from a food photograph, then review the reconstructed table or plate.

Backgrounds for website images

Remove an unwanted object from an existing photograph before adding headings or other page content.

Retouching comparisons

Compare standard and premium edits on the same photograph to inspect patterns, contours, shadows, and reflections.

Questions about Finegrain Eraser Bbox in opencode

Can opencode use Finegrain Eraser Bbox?

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

How much does Finegrain Eraser Bbox cost in opencode?

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

Do I need a fal account to use Finegrain Eraser Bbox in opencode?

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

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

Does opencode wait while Finegrain Eraser Bbox runs?

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

Does Finegrain Eraser leave a transparent hole?

It reconstructs the background where the object was removed. Use it to clean up a scene when you want a filled photograph.

Can Finegrain Eraser Bbox remove several separate objects at once?

Only one selection box is supported per request. For separate targets, make successive edits and inspect each result before continuing.

Does Finegrain Eraser remove shadows and reflections too?

Yes. It is designed to remove the object's visual effects, including shadows, reflections, and lighting effects; check those areas when reviewing the result.

When is premium mode worth trying?

Try it when an edit must reconstruct visible patterns or detailed contours. Finegrain's comparison shows more accurate reconstruction of a patterned plate in premium mode, so compare the results around the erased area.

What output resolution does Finegrain document?

Finegrain's API announcement states support up to 4K. It does not give an exact width and height for that limit.

Get started

Start using Finegrain Eraser Bbox in opencode

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

Paste this into opencode:

Set up opencode

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