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

opencode · Video

How to Use Bria Video Background Removal in opencode

Bria Video Background Removal isolates subjects in existing footage without a green screen. Use it for short video cutouts and compositing assets, with clips under 30 seconds and dimensions below 4000 × 4000.

Prompts to try with Bria Video Background Removal in opencode

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

Use Bria Video Background Removal on assets/presenter.mp4 after checking that it is under 30 seconds and below 4000 pixels on each side. Save a transparent WebM for the tutorial layout.

Bria Video Background Removalopencode
Try asking
  • Use Bria Video Background Removal on the 15-second product clip in assets. Export a transparent ProRes MOV for the video editor and save it beside the source.

  • Use Bria Video Background Removal to prepare the project's 1080p interview excerpts as cutouts. Skip clips lasting 30 seconds or longer and report which need trimming.

  • Use Bria Video Background Removal on assets/instructor.mp4. Create a cutout, then build a local preview that places it over the project's lesson slide.

  • Use Bria Video Background Removal on the 20-second testimonial clip. Save the result and create a comparison preview with the original footage for editorial review.

How to set up Bria Video Background Removal 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 Bria Video Background Removal

    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/background-removal",
        "input": {
          "video_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/rmbg_tests/videos/5586521-uhd_3840_2160_25fps_original.mp4"
        }
      }'

Then paste one of the prompts above: opencode finds Bria Video Background Removal on Spiral, shows the price and runs it.

Bria Video Background Removal providers and prices

Spiral runs Bria Video Background Removal through fal. Open a card for today's price, with every fee included.

falVideo
Video Background Removal · Video to Video
bria/video/background-removal

Settings you can ask for

Bria Video Background Removal works from your video URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Output container and codecmp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9 and 1 morewebm_vp9

Output container and codec. Options: mp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9, gif.

Preserve audioon or offon

If true, audio will be preserved in the output video.

Background colorTransparent, Black, White, Gray, Red, Green, Blue, Yellow and 3 moreBlack

Background color. Options: Transparent, Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, Orange.

Every API field of Video Background Removal · Video to Video is on its tool page: open its card above.

What can you do with Bria Video Background Removal in opencode?

Prepare moving cutouts for a project's video layouts and visual assets. A coding agent can organize source clips, check their dimensions and duration, and save processed footage for review.

Presenter overlays

Extract a presenter from a short recording, then place the cutout over slides or a screen recording in your editor.

Product video cutouts

Remove the setting around a filmed product to prepare footage for a product page or promotional edit.

Interview excerpts

Turn a short interview excerpt into a speaker cutout for a quote graphic or branded video layout.

Course introductions

Prepare instructor cutouts for lesson introductions, with the final lesson background added during editing.

Social video branding

Remove different recording environments from short clips before assembling them against a consistent branded backdrop.

Motion collage assets

Create moving foreground cutouts for collages that combine recorded subjects with typography and illustrations.

Customer testimonial edits

Prepare short customer video cutouts for layouts that pair the speaker with a quotation or supporting graphic.

Questions about Bria Video Background Removal in opencode

Can opencode use Bria Video Background Removal?

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

How much does Bria Video Background Removal 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 Background Removal in opencode?

No. Spiral runs Bria Video Background Removal 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 Background Removal in opencode?

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

Does opencode wait while Bria Video Background Removal runs?

Bria Video Background Removal runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

What does Bria Video Background Removal do?

It removes the background from existing footage so you can reuse the foreground subject in an edit. Useful applications include presenter cutouts, product clips, and video overlays.

How long can a clip be, and what resolution can I use?

Keep clips under 30 seconds and both dimensions below 4000 pixels. A 1920 × 1080 clip fits; a 4096-pixel-wide clip exceeds the documented limit.

Which formats keep the background transparent?

Use WebM with VP9, MOV with ProRes, or MKV with VP9. MP4 and GIF output do not retain transparency, so choose an alpha-capable format when preparing a cutout for compositing.

Does Bria Video Background Removal resize the video?

Bria documents preservation of the original resolution and aspect ratio when automatic cropping is off. Prepare the source at the framing you want to use in your edit.

Do I need to record against a green screen?

No. Bria Video Background Removal is designed to remove backgrounds from footage recorded without one.

Get started

Start using Bria Video Background Removal 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