> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# BriaVideoReplaceBackground - ComfyUI Built-in Node Documentation

> Complete documentation for the BriaVideoReplaceBackground node in ComfyUI. Learn its inputs, outputs, parameters and usage.

# Bria Video Replace Background

This node replaces the background of a video with a supplied image or video using Bria's API. The output keeps the foreground video's resolution and frame rate; a background with a different aspect ratio is stretched to fit, so matching aspect ratios produces undistorted results.

## Inputs

| Parameter          | Description                                                                                                             | Data Type | Required | Range           |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------- | --------- | -------- | --------------- |
| `video`            | Foreground video whose background is replaced.                                                                          | VIDEO     | Yes      | -               |
| `background_image` | Background image to composite behind the foreground. Provide either a background image or a background video, not both. | IMAGE     | No       | -               |
| `background_video` | Background video to composite behind the foreground. Provide either a background image or a background video, not both. | VIDEO     | No       | -               |
| `seed`             | Seed controls whether the node should re-run; results are non-deterministic regardless of seed. (default: 0)            | INT       | Yes      | 0 to 2147483647 |

**Note:** You must provide exactly one of `background_image` or `background_video` — not both and not neither. The foreground video must be 60 seconds or shorter.

## Outputs

| Output Name | Description                                       | Data Type |
| ----------- | ------------------------------------------------- | --------- |
| `video`     | The resulting video with the background replaced. | VIDEO     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/BriaVideoReplaceBackground/en.md)

***

**Source fingerprint (SHA-256):** `4eb9650e5ca88baf2a91a9309b87936b3d18b88e314a56ab4c73d06a9143c645`
