How to Use Object Removal Bounding Box in opencode
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 opencode
Copy an example into opencode, 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.
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 opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: opencode 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.
Settings you can ask for
Object Removal Bounding Box works from your image URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Model | low_quality, medium_quality, high_quality, or best_quality | best_quality | |
| Mask expansion | 0 to 50 | 15 | 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 opencode?
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.
More on Object Removal Bounding Box and opencode
Overview
Object Removal Bounding Box in other agents
Questions about Object Removal Bounding Box in opencode
Can opencode use Object Removal Bounding Box?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Object Removal Bounding Box like any built-in tool.
How much does Object Removal Bounding Box cost in opencode?
$0.0078 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 Object Removal Bounding Box in opencode?
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 opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Object Removal Bounding Box runs?
Object Removal Bounding Box runs in the background. opencode 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.
Start using Object Removal Bounding Box in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


