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

VS Code · Image

How to Use Object Removal Bounding Box in VS Code

Object Removal Bounding Box erases a selected object and reconstructs the surrounding scene. Use it for a specific distraction in an existing photo, with one bounding box per run.

Prompts to try with Object Removal Bounding Box in VS Code

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

Use Object Removal Bounding Box on public/images/desk.jpg to remove the coffee cup beside the laptop. Save a separate copy and show a comparison.

Object Removal Bounding BoxVS Code
Try asking
  • Use Object Removal Bounding Box on assets/product.jpg to erase the loose prop to the right of the product. Inspect the product outline afterward.

  • Use Object Removal Bounding Box on public/images/cafe.jpg to remove the bag beside the chair. Show me the proposed selection first.

  • Use Object Removal Bounding Box on assets/interior.jpg to remove the floor bucket. If an outline remains, try slightly more mask expansion and compare.

  • Use Object Removal Bounding Box to clean the selected distraction from each approved project photo. Process one box per image and save review copies.

How to set up Object Removal Bounding Box 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 Object Removal Bounding Box

    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/object-removal/bbox",
        "input": {
          "image_url": "https://v3.fal.media/files/zebra/o0DORfJawy-T9P_-NsvLY.png"
        }
      }'

Then paste one of the prompts above: VS Code finds Object Removal Bounding Box on Spiral, shows the price and runs it.

Object Removal Bounding Box providers and prices

Spiral runs Object Removal Bounding Box through fal. Open a card for today's price, with every fee included.

falImage
Object Removal · Bbox
fal-ai/object-removal/bbox

Settings you can ask for

Object Removal Bounding Box works from your image URL. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Modellow_quality, medium_quality, high_quality, or best_qualitybest_quality
Mask expansion0 to 5015

Amount of pixels to expand the mask by. Range: 0-50

Every API field of Object Removal · Bbox is on its tool page: open its card above.

What can you do with Object Removal Bounding Box in VS Code?

Prepare edited image assets for a website or app by removing a specific distraction from a project photo. Save a separate result and compare it with the original before replacing the asset.

Product photo cleanup

Remove a stray prop beside a product, then inspect the product's edges against the original.

Portrait background edits

Select a distracting object behind the subject and review the reconstructed area before keeping the edit.

Interior photo cleanup

Erase a temporary item, such as a bag beside a sofa, for an edited interior presentation.

Travel photo edits

Remove a discarded bottle from a scenic photo without choosing a different crop.

Food photography

Remove an unwanted utensil beside a plated dish and inspect the replacement tabletop texture.

Website image preparation

Clean a distracting object from a selected website photo and compare the result at its intended display size.

Questions about Object Removal Bounding Box in VS Code

Can VS Code use Object Removal Bounding Box?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Object Removal Bounding Box like any built-in tool.

How much does Object Removal Bounding Box cost in VS Code?

$0.0078 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 Object Removal Bounding Box in VS Code?

No. Spiral runs Object Removal Bounding Box on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Object Removal Bounding Box in VS Code?

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

Does VS Code wait while Object Removal Bounding Box runs?

Object Removal Bounding Box runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

What is Object Removal Bounding Box useful for?

Use it to remove a specific distraction from an existing image, such as a cup on a table or a bag beside a chair. It reconstructs the scene where the selected object appeared.

Does it also remove an object's visual effects?

The documented scope includes the selected object's visual effects. Compare the edited area with the original before accepting the result.

Can I select several separate objects at once?

Only one bounding box is supported per run. For separate objects, review the first edit before using it as the starting image for another pass.

What should I try if an object's outline remains?

Try increasing mask expansion slightly, then compare the boundary with the first result. This enlarges the removal area, so inspect nearby details too.

Does it recover the real background behind an object?

The documentation describes reconstruction with contextually appropriate content. Treat that as a plausible replacement, not proof of what was hidden in the original photograph.

Get started

Start using Object Removal Bounding Box 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