Bria
BRIA VRMBG 3.0
bria-vrmbg-3/video-background-removal
BRIA's third-generation background removal model for video: just provide a public video link to strip the background frame by frame while maintaining temporal consistency between frames. Output is transparent by default or can be filled with a solid color, and the original audio track can be retained as needed. It is ideal for keying and compositing in e-commerce ads and film/TV content.
Try bria-vrmbg-3/video-background-removal
Input
Showcases
View all showcasesOutput
videoPricing
bria-vrmbg-3/video-background-removal per second
| Unit Price | $0.0715 |
|---|
Introduction coming soon
A detailed guide for this model is being prepared. Pricing, parameters and the API docs below are already available.
What's new
View changelog →- New model New model released: bria-vrmbg-3/video-background-removal
Frequently asked questions
View all FAQs →-
How do I pass a video to the model for background removal?
You can only pass a publicly accessible HTTPS video URL in the video_url field. The model pulls the video from the cloud for processing; directly uploading files or passing HTTP links is not supported. The URL must start with https:// and must remain directly accessible from outside without login authentication throughout processing.
-
What is the default output background? How do I set a solid color instead?
The default background is black. To cut out the subject for compositing, change it to transparent. Specify this via background_color; the available options are Transparent, Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, and Orange. Choose Transparent when you need assets with an alpha channel.
-
Can I get a video with an alpha channel?
Yes, you can get a video with the background removed by setting background_color to Transparent. You also need to choose a container and codec that support an alpha channel; the default webm_vp9 supports alpha, whereas specifying an mp4-series codec will not preserve the alpha channel, so choose according to what your downstream compositing software supports.
-
What output formats and codecs are available?
output_container_and_codec provides nine combinations: mp4_h264, mp4_h265, webm_vp9, mov_h265, mov_proresks, mkv_h264, mkv_h265, mkv_vp9, gif. The default is webm_vp9, which suits scenarios requiring an alpha channel; for a downstream ProRes editing workflow, choose mov_proresks, and if you only want a preview animated image, choose gif.
Create a generation task
https://api.hiapi.ai/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: bria-vrmbg-3/video-background-removal
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for bria-vrmbg-3/video-background-removal and route default — see the parameter table below.
auto_zoombooleanOptionalDefault: falsevideo_urlstringRequiredpattern ^https://Input video as a public HTTPS URL.
preserve_audiobooleanOptionalDefault: truebackground_colorstringOptionalDefault: "Black"TransparentBlackWhiteGrayRedGreenBlueYellowShow all (3)Show less
CyanMagentaOrangeoutput_container_and_codecstringOptionalDefault: "webm_vp9"mp4_h265mp4_h264webm_vp9mov_h265mov_proresksmkv_h265mkv_h264mkv_vp9Show all (1)Show less
gifcallbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.ai/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bria-vrmbg-3/video-background-removal",
"input": {
"auto_zoom": false,
"video_url": "…",
"preserve_audio": true,
"background_color": "Black",
"output_container_and_codec": "webm_vp9"
}
}' const res = await fetch("https://api.hiapi.ai/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "bria-vrmbg-3/video-background-removal",
input: {
"auto_zoom": false,
"video_url": "…",
"preserve_audio": true,
"background_color": "Black",
"output_container_and_codec": "webm_vp9"
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.ai/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "bria-vrmbg-3/video-background-removal",
"input": {
"auto_zoom": False,
"video_url": "…",
"preserve_audio": True,
"background_color": "Black",
"output_container_and_codec": "webm_vp9"
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.ai/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Tutorial
Hands-on Video Background Removal: 5 High-Value Use Cases and Integration Essentials for bria-vrmbg-3
From pricing conversion to scenario selection: a developer's guide to implementing video-to-video matting
-
Comparison
How to choose bria-vrmbg-3 video background removal: a side-by-side comparison of capabilities, pricing, and migration points
A developer's guide to video background removal selection: define acceptance criteria first, then discuss models and cost
-
Guide
Getting Started with bria-vrmbg-3/video-background-removal: Capabilities, Billing, and Integration Essentials
Integration decisions from capability boundaries to per-second billing
Related Models
View all models →Same Type
-
HeyGen Avatar IV HeyGen $0.150 /second -
Wan 2.6 Flash Alibaba $0.029 /second -
Kandinsky 6.0 Pro $1.93 /video -
Seedance 2.5 ByteDance $0.121 /second -
Wan 2.2 Animate Alibaba $0.068 /second -
Kling 2.5 Kuaishou $0.090 /second -
Veo 3.1 Google $0.290 /second -
Wan 2.7 Video Alibaba $0.100 /second -
Creatify Boreal Creatify $0.015 /second -
Ray 3.2 Luma $0.214 /video -
HappyHorse 1.0 Alibaba $0.168 /second -
MiniMax H3 Max Turbo MiniMax $0.027 /second