[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Bria Video Eraser Mask](https://spiral.ai/integrations/opencode/bria-video-eraser-mask)

# How to Use Bria Video Eraser Mask in opencode

Bria Video Eraser Mask removes selected objects or people from existing footage and reconstructs the background. A supplied video mask controls what gets erased, making it useful when you need to select a particular distraction.

|  |  |
| --- | --- |
| Model | Bria Video Eraser Mask |
| Available through | fal |
| Category | Video |
| Price | Up to $10.92 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria Video Eraser Mask in opencode

- Use Bria Video Eraser Mask on the four-second, 720p product clip and matching mask in this project. Remove the masked prop and save a comparison beside the original.
- Prepare a four-second, 720p, 24 fps excerpt from the project's interview footage, with the corresponding mask excerpt. Use Bria Video Eraser Mask and show me the repaired background.
- Check that the project's four-second clip and mask stay aligned throughout the movement. Use Bria Video Eraser Mask, then flag frames with visible remnants.
- Use Bria Video Eraser Mask to remove the masked stand from our four-second, 720p demo asset. Save the result separately and prepare a frame comparison around the stand.
- Build a review page for our four-second cleanup test. Use Bria Video Eraser Mask with the supplied clip and mask, then show the original and edited footage side by side.

## How to set up Bria Video Eraser Mask 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Bria Video Eraser Mask**: One request; the result comes back by polling or a webhook.

```bash
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/bria_video_eraser/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 Bria Video Eraser Mask on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Bria Video Eraser Mask tools and prices

- [Bria Video Eraser Erase Mask](https://spiral.ai/tools/fal/bria/bria_video_eraser/erase/mask) (fal): $0.182 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| output_container_and_codec | mp4_h265, mp4_h264, webm_vp9, gif, mov_h264, mov_h265, mov_proresks, mkv_h264, mkv_h265, mkv_vp9, mkv_mpeg4 | 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 |  | true | auto trim the video, to working duration ( 5s ) |
| preserve_audio |  | true | If true, audio will be preserved in the output video. |

## What can you do with Bria Video Eraser Mask in opencode?

Clean short video assets for your project with Bria Video Eraser Mask. Your coding agent can prepare excerpts, check mask alignment, and create comparisons for review.

### Product shot cleanup

Remove a stray prop from a short product clip using a mask that selects the prop. Review the reconstructed area beside the product.

### Interview background cleanup

Erase a distracting object behind a speaker in a short interview excerpt. Inspect frames where the speaker overlaps the selected area.

### Travel footage cleanup

Remove an unwanted passerby from a short scenic shot with a mask that follows their movement. Check the background throughout the removal.

### Set cleanup

Try removing a visible stand or other production equipment from a short take. Compare the repaired area across frames before accepting the edit.

### Social ad cleanup

Remove a distracting background item from a short ad excerpt. Keep the mask focused on the item and review nearby subject edges.

### Generated video repair

Try erasing an unwanted object from a short generated clip. Inspect the reconstructed background for remnants and changes between frames.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Bria Video Eraser Mask in other agents

- [Amp](https://spiral.ai/integrations/amp/bria-video-eraser-mask)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/bria-video-eraser-mask)
- [Claude](https://spiral.ai/integrations/claude-desktop/bria-video-eraser-mask)
- [Claude Code](https://spiral.ai/integrations/claude-code/bria-video-eraser-mask)
- [Cline](https://spiral.ai/integrations/cline/bria-video-eraser-mask)
- [Codex](https://spiral.ai/integrations/codex/bria-video-eraser-mask)
- [Cursor](https://spiral.ai/integrations/cursor/bria-video-eraser-mask)
- [Devin](https://spiral.ai/integrations/devin/bria-video-eraser-mask)
- [dots](https://spiral.ai/integrations/dots/bria-video-eraser-mask)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/bria-video-eraser-mask)
- [Gemini](https://spiral.ai/integrations/gemini/bria-video-eraser-mask)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/bria-video-eraser-mask)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/bria-video-eraser-mask)
- [goose](https://spiral.ai/integrations/goose/bria-video-eraser-mask)
- [Grok](https://spiral.ai/integrations/grok/bria-video-eraser-mask)
- [Grok Build](https://spiral.ai/integrations/grok-build/bria-video-eraser-mask)
- [Hermes](https://spiral.ai/integrations/hermes/bria-video-eraser-mask)
- [Instinct](https://spiral.ai/integrations/instinct/bria-video-eraser-mask)
- [Manus](https://spiral.ai/integrations/manus/bria-video-eraser-mask)
- [Muse](https://spiral.ai/integrations/muse/bria-video-eraser-mask)
- [Muse Code](https://spiral.ai/integrations/muse-code/bria-video-eraser-mask)
- [n8n](https://spiral.ai/integrations/n8n/bria-video-eraser-mask)
- [Notion](https://spiral.ai/integrations/notion/bria-video-eraser-mask)
- [OpenClaw](https://spiral.ai/integrations/openclaw/bria-video-eraser-mask)
- [Perplexity](https://spiral.ai/integrations/perplexity/bria-video-eraser-mask)
- [Raycast](https://spiral.ai/integrations/raycast/bria-video-eraser-mask)
- [VS Code](https://spiral.ai/integrations/vscode/bria-video-eraser-mask)
- [Windsurf](https://spiral.ai/integrations/windsurf/bria-video-eraser-mask)
- [Zapier](https://spiral.ai/integrations/zapier/bria-video-eraser-mask)

## More opencode guides

- [Bria Video Eraser Keypoints](https://spiral.ai/integrations/opencode/bria-video-eraser-keypoints)
- [Bria Video Eraser Prompt](https://spiral.ai/integrations/opencode/bria-video-eraser-prompt)
- [Bria Video Eraser](https://spiral.ai/integrations/opencode/bria-video-eraser)
- [Bria Video Green Screen Despill](https://spiral.ai/integrations/opencode/bria-video-green-screen-despill)
- [Bria Video Background Removal](https://spiral.ai/integrations/opencode/bria-video-background-removal)
- [Bria Video Upscaling](https://spiral.ai/integrations/opencode/bria-video-upscaling)

## Questions about Bria Video Eraser Mask in opencode

**Can opencode use Bria Video Eraser Mask?**

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

**How much does Bria Video Eraser Mask 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 Bria Video Eraser Mask in opencode?**

No. Spiral runs Bria Video Eraser Mask on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Bria Video Eraser Mask in opencode?**

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

**Does opencode wait while Bria Video Eraser Mask runs?**

Bria Video Eraser Mask 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 useful for?**

Removing distracting people, props, or other visible elements from existing footage. It reconstructs the background where the selected object appeared.

**How long can a clip be?**

Bria documents a five-second maximum, while the exact mask endpoint specifies less than five seconds. Prepare a four-second excerpt to stay within both instructions.

**Can Bria Video Eraser deliver a 1080p or 4K cleanup?**

The documented erasure ceiling is 750p, and higher-resolution inputs are downscaled. Plan around that limit when choosing footage for the edit.

**What frame rate should I use?**

Bria recommends 24 fps and documents support for 20 to 30 fps. The output preserves the input frame rate.

**How should I describe the edit to my agent?**

Name the object to remove, identify the supplied mask, and tell the agent what to inspect afterward. Bria Video Eraser Mask uses the mask video to select the removal area.

