bria/video/background-removal/realtime
Video Background Removal Realtime is Bria's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.
PNG, JPEG, WebP, or GIF · 20 MiB maximum
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runbria/video/background-removal/realtimeInput Schema
5 parameters · 1 required · 4 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | Playground webcam/video source. Media is sent over WebRTC. · Default: "" |
blur_strength | integer | Optional | Background blur strength, 0-100 (used when background_type is 'blur'). · Min: 0 · Max: 100 · Default: 50 |
background_type | string | Optional | How to replace the background: 'color', 'image', or 'blur'. · Options: color, image, blur · Default: "color" colorimageblur |
background_color | string | Optional | Solid background colour (used when background_type is 'color'). · Options: Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, Orange · Default: "Black" BlackWhiteGrayRedGreenBlueYellowCyanMagentaOrange |
background_image_url | string | Optional | Background image URL or data URI (used when background_type is 'image'). · Default: null |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "bria/video/background-removal/realtime",
"image": "",
"blur_strength": 50,
"background_type": "color",
"background_color": "Black",
"background_image_url": null,
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
PRICED DRAFT — MANUAL REVIEW REQUIRED exact_model_mode: bria/video/background-removal/realtime original_unit: Your request will cost $0.0042 per second. method: per-processing-second price using reported usage duration result_base_price: 0.0042 result_price_formula: (usage.total_seconds ?? usage.duration ?? 1) * 0.0042 review_status: pending; model remains disabled checked_at: 2026-08-16

