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

# Generative Fill

> Remove or replace anything in a video or image with SwitchFill, while the rest of the shot stays as filmed

> [!NOTE]
>
> Generative Fill is available exclusively on **Beeble (Cloud app)**. It is not
> available in Beeble Studio.

**Generative Fill** removes or replaces any part of a shot: a rider, a wire rig, a prop, a product label. Mask the area you want to change, describe what should go there, and **SwitchFill** redraws only that area across every frame. Everything outside the mask stays as filmed.

SwitchFill is built on SwitchX 3.0 and trained for editing inside a mask. It redraws the masked area on every frame, so the new content moves with the shot instead of sitting on top of it.

**Key features:**

* **Remove or replace:** erase a subject and fill the gap with the background, or swap an object for something new
* **Untouched outside the mask:** only the area you mask is redrawn
* **Video or image:** up to 360 frames per generation, or a single still
* **Up to 2160p**, with **Finish** to re-render a 720p take at a higher resolution

***

## Examples

### Remove a subject

The rider is masked and removed. SwitchFill fills the area with the field behind him, and the horse keeps running as filmed.

<video autoPlay loop muted playsInline src="https://desktop.beeble.ai/public/web/edit-anything/showcase/horse-without-rider-source-v1.webm" />

Source

<video autoPlay loop muted playsInline poster="https://desktop.beeble.ai/public/web/edit-anything/showcase/horse-without-rider-poster-v1.webp" src="https://desktop.beeble.ai/public/web/edit-anything/showcase/horse-without-rider-after-v1.webm" />

SwitchFill

### Remove a wire rig

The stunt wires are masked and painted out, and the background behind the performer is filled in.

<video autoPlay loop muted playsInline src="https://desktop.beeble.ai/public/web/edit-anything/showcase/stunt-without-wires-source-v1.webm" />

Source

<video autoPlay loop muted playsInline poster="https://desktop.beeble.ai/public/web/edit-anything/showcase/stunt-without-wires-poster-v1.webp" src="https://desktop.beeble.ai/public/web/edit-anything/showcase/stunt-without-wires-after-v1.webm" />

SwitchFill

### Replace an object

The ball is masked and replaced with a watermelon. The dribble, the hands, and the bounce all stay as shot.

<video autoPlay loop muted playsInline src="https://desktop.beeble.ai/public/web/edit-anything/showcase/dribbling-watermelon-source-v1.webm" />

Source

<video autoPlay loop muted playsInline poster="https://desktop.beeble.ai/public/web/edit-anything/showcase/dribbling-watermelon-poster-v1.webp" src="https://desktop.beeble.ai/public/web/edit-anything/showcase/dribbling-watermelon-after-v1.webm" />

SwitchFill

More examples are on the **Showcase** tab of [Generative Fill](https://app.beeble.ai/generative-fill).

***

## Quick start

**1. Upload your source**

Upload a video (up to **360 frames**) or an image. Trim longer clips before
you generate.

**2. Mask the area to replace**

In **2. Area to Replace**, choose **Auto**, **Select**, or **Upload** to
mark what you want to remove or replace. See [Masks](#masks) below.

**3. Describe the edit**

Write a prompt for what should fill the masked area, or click **Suggest** to
draft one. A reference image is optional: add one when you want to show the
result instead of describing it. See [Prompt and
reference](#prompt-and-reference).

**4. Generate and finish**

Pick a resolution and generate. Explore at 720p, then **Finish** the take
you like at a higher resolution.

***

## Source footage

| Spec | Supported |
| - | - |
| **Formats** | Video: MP4, MOV. Image: PNG, JPEG |
| **Length** | Up to 360 frames per generation (15 seconds at 24fps) |
| **Resolution** | Generates at 720p, 1080p, or 2160p (see [Settings](#settings)) |

> [!TIP]
>
> Source quality carries into the output, so use the highest-quality source you
> have.

***

## Masks

The mask tells SwitchFill what to change. This is the opposite of [SwitchX](https://docs.beeble.ai/beeble/switchx.md), where the mask marks what to keep.

* **Inside the mask (white):** redrawn from your prompt and reference image.
* **Outside the mask (black):** kept from your source, frame for frame.

| Mode | Description | Best for |
| - | - | - |
| **Auto** | Detects the main subject and masks it. No manual input needed. | Removing or replacing the main subject |
| **Select** | Click the objects you want to change on a frame. | A specific object, prop, or part of a scene |
| **Upload** | Upload your own matte from external software. | Pixel-exact control from Nuke, After Effects |

### &#x20;Auto

SwitchFill finds the main subject on your frame and tracks that mask through the rest of the video.

### &#x20;Select

Click the objects you want to change. Left-click adds an area, right-click removes one. The selection is tracked through the video, and the selected area is shown over your frame so you can check it before generating.

> [!TIP]
>
> Mask a little more than the object itself. Shadows, reflections, and motion
> blur belong to the object too, and leaving them outside the mask leaves a
> trace behind.

### &#x20;Upload

Upload a black-and-white matte made in Nuke, After Effects, or similar software. White marks the area SwitchFill redraws.

***

## Prompt and reference

**Prompt:** describe the edit for the masked area, such as *"remove the rider"* or *"replace the ball with a watermelon"*. Click **Suggest** to draft a prompt from your source.

**Reference image (optional):** a still that shows what the masked area should look like. Upload one, or click **Create with AI** to make one from a frame of your source. When you remove something, a good reference is the same frame with the object already gone and the background filled in.

***

## Settings

* **Resolution:** 720p, 1080p, or 2160p.
* **Aspect ratio and frame rate:** always match your source.

> [!NOTE]
>
> 2160p generation requires a **Professional** or **Team** plan.

### Iterate then Finish

Explore at 720p for less, pick your favorite take, then **Finish** it at a higher resolution. Finish re-renders the take from your original source footage, so it recovers source detail instead of only upscaling the result.

***

## Use it in Canvas

Generative Fill is also a node in [Canvas](https://docs.beeble.ai/beeble/canvas.md), so you can chain it with other tools in the same project.

***

## Credits

SwitchFill is billed per 30 frames, and an image counts as one frame.

* **720p:** 6 credits / 30 frames
* **1080p:** 20 credits / 30 frames
* **2160p:** 80 credits / 30 frames
* **Finish an existing generation:** 20 credits / 30 frames to 1080p, 80 credits / 30 frames to 2160p


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.