How to Use Video Eraser Mask Video to Video in opencode
Bria Video Eraser (Mask) removes unwanted objects from short clips and reconstructs the background. A matching mask video defines exactly where the edit happens, making it useful when you already have a tracked selection.
Prompts to try with Video Eraser Mask Video to Video in opencode
Copy an example into opencode, or ask in your own words.
Use Bria Video Eraser (Mask) on the four-second product clip in this project and its matching mask to remove the spare cup. Save a separate edited copy and flag any visible background repair errors.
Check the source and mask videos in this project's media folder for matching resolution, duration, and timing. Use Bria Video Eraser (Mask) on pairs shorter than five seconds and list any pairs that need correction.
Use Bria Video Eraser (Mask) to remove the masked microphone from this project's four-second interview excerpt. Prepare a before-and-after preview so I can inspect the repaired area.
Find the four-second B-roll excerpt and its tracked passerby mask in this project. Use Bria Video Eraser (Mask), then mark moments where the passerby is blurred or hidden behind another object for review.
Use Bria Video Eraser (Mask) on this project's four-second room clip and supplied bag mask. Check whether the 750p output ceiling fits the project's video requirements before replacing any existing asset.
How to set up Video Eraser Mask Video to Video 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 Video Eraser Mask Video to Video
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": "bria/video/erase/mask", "input": { "video_url": "https://bria-test-images.s3.us-east-1.amazonaws.com/videos/eraser/video1_video.mp4", "mask_video_url": "https://bria-test-images.s3.us-east-1.amazonaws.com/videos/eraser/video1_mask.mp4" } }'
Then paste one of the prompts above: opencode finds Video Eraser Mask Video to Video on Spiral, shows the price and runs it.
Video Eraser Mask Video to Video providers and prices
Spiral runs Video Eraser Mask Video to Video through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Video Eraser Mask Video to Video works from your video URL and mask video URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Output container and codec | mp4_h265, mp4_h264, webm_vp9, gif, mov_h264, mov_h265, mov_proresks, mkv_h264 and 3 more | mp4_h264 | Output container and codec. Options: mp4_h265, mp4_h264, webm_vp9, gif, mov_h264, mov_h265, mov_proresks, mkv_h264, mkv_h265, mkv_vp9, mkv_mpeg4. |
| Auto trim | on or off | on | auto trim the video, to working duration ( 5s ) |
| Preserve audio | on or off | on | If true, audio will be preserved in the output video. |
Every API field of Video Eraser Mask · Video to Video is on its tool page: open its card above.
What can you do with Video Eraser Mask Video to Video in opencode?
Clean short video assets used in your project, from product footage to interview excerpts. A coding agent can check clip lengths and mask alignment, then help review the reconstructed areas.
Remove a stray prop from a product shot
Use a matching mask to erase a spare cup, packaging scrap, or other distraction from a product clip under five seconds.
Clean up interview backgrounds
Remove a distracting object from a short interview excerpt. Review the reconstructed area throughout the shot before using it in the edit.
Remove an unwanted person from B-roll
Mask a passerby in a short scenic or establishing shot. Check the result carefully if the person crosses behind other objects.
Repair production equipment intrusions
Erase a visible microphone or stand from a short take using a mask that follows the equipment across frames.
Declutter property footage
Remove a stray bag or cleaning item from a short room walkthrough excerpt. Plan for output at the documented 750p ceiling.
Prepare cleaner event highlights
Remove a distracting foreground object from a brief event shot. Inspect blurred movement and overlapping subjects before approving the edit.
More on Video Eraser Mask Video to Video and opencode
Overview
Video Eraser Mask Video to Video in other agents
Questions about Video Eraser Mask Video to Video in opencode
Can opencode use Video Eraser Mask Video to Video?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Video Eraser Mask Video to Video like any built-in tool.
How much does Video Eraser Mask Video to Video cost in opencode?
Up to $10.92 per run at the default inputs for 60 seconds of input. 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 Video Eraser Mask Video to Video in opencode?
No. Spiral runs Video Eraser Mask Video to Video on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Video Eraser Mask Video to Video in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Video Eraser Mask Video to Video runs?
Video Eraser Mask Video to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.
What is Bria Video Eraser good for?
It removes unwanted objects, people, and other visual distractions from existing footage. The model reconstructs the background where the selected object was.
How long can a clip be?
Keep clips under five seconds. The exact mask endpoint specifies that limit, so a four-second excerpt is a practical starting point.
Can Bria Video Eraser preserve 1080p or 4K resolution?
The documented ceiling is 750p. Higher-resolution footage is automatically downscaled, so plan around that limit when choosing footage for a final edit.
How do I direct a precise removal?
Use a mask video that follows the area you want erased throughout the clip. The model removes the objects defined by that mask and reconstructs the background.
How should I prepare the mask?
Match the mask to the source video's resolution, duration, and timing. Check that the selection stays aligned with the target throughout its movement.
Start using Video Eraser Mask Video to Video 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


