Bria · Video generation

video_foreground_mask API

video_foreground_mask from Bria is available for Video generation through ServerNet’s native API. Use the request example and supported limits on this page.

Available

Service type

Unit rate ceiling, IRT43,639

1 Output duration · The final usage amount follows the reported result and the permitted request options.

Send a complete H.264 MP4 in a Data URL, at most 10 seconds and 1080p. The full video is decoded before credit is reserved. Masks must match the input video duration and dimensions.

The usage rate is fixed at request admission. Reported consumption determines the final usage amount.

API model ID
di-briavideo-foreground-mask-755d73b891
Model developer
Bria
Service type
Video generation
Current availability
Available
Catalogue task
Video generation
Native billing basis
Output duration

Model features

No additional gateway capabilities have been confirmed for this model.

What is video_foreground_mask?

Use the public identifier di-briavideo-foreground-mask-755d73b891 for video_foreground_mask in ServerNet. The gateway uses this identifier to select the configured route; the developer is Bria.

Where to use video_foreground_mask

  • Check the exact video task supported by video_foreground_mask.
  • Evaluate a short clip before a longer generation.
  • Compare cost and visual consistency at the resolution you plan to use.

Model description

Original catalogue description in English. It describes the model; the gateway limits and availability on this page define what you can request here.

Automatically identify and segment foreground objects across video frames and generate a mask. No prompts, just a video.

SELECTION NOTES

How to evaluate this model

For video_foreground_mask, compare the accepted input format and billing basis with alternatives in the same operation.

Before you integrate

  • Use a representative test set and check factual accuracy, format and failure cases.
  • Keep the first request bounded. Follow the operation-specific example and its API scope.
  • Record response time and usage in your own environment before setting a production budget.

Video generation

Review supported durations, input media and asynchronous results.

Compare models ↗

Build your integration

Create a project key with ai:native and send this page’s example to /v1/inference. Set the model field to di-briavideo-foreground-mask-755d73b891. Store X-Request-Id and X-ServerNet-Charge-Irt with the result, and compare the final amount with your account’s usage receipt. Reuse the same Idempotency-Key only for an identical retry. For video and music, retain the id and result_url in the initial HTTP 202 receipt. Read result_url with the same key every five seconds until the result is ready. If the result contains a file link, download and save the file when you receive it. Keeping the response for replay for 24 hours does not extend the supplier’s file-link lifetime.

Inputs and service limits

Keep the input and request options within this route’s documented limits. Check GET /v1/models before sending and use the matching key permission. The reserved amount bounds admission; the usage receipt records the final settled amount.

A bounded request cost is reserved before sending. The verified tariff or reported provider cost is settled using the exchange rate and sale markup. Media is not billed as chat tokens. Use Data URLs for valid images, PCM WAV audio, or H.264 MP4 video on routes that accept video input.

Accepted ServerNet API parameters

Gateway request contract: 2026-10-11. These fields and defaults are enforced by /v1/inference; availability is shown above. Text byte limits are measured as UTF-8 bytes.

ParameterTypeRequiredDeclared constraints
videostringYes
Maximum UTF-8 bytes: 8000000
format: data:video/mp4;base64
output_container_and_codecstringNo
Maximum UTF-8 bytes: 8000
Default: mp4_h264
Values: mp4_h264

Connect to video_foreground_mask API

Enable ai:native on your key and ai:models:read to check availability. Set SERVERNET_API_KEY in your server environment. Change the idempotency key for each new request; keep it unchanged only for an identical retry.

ai:native
curl https://servernet.cloud/v1/inference \
  -H "Authorization: Bearer $SERVERNET_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: CHANGE_FOR_EACH_NEW_REQUEST' \
  -d '{
    "model": "di-briavideo-foreground-mask-755d73b891",
    "output_container_and_codec": "mp4_h264",
    "video": "data:video/mp4;base64,REPLACE_WITH_YOUR_FILE"
}'

Use the same Idempotency-Key when retrying an identical request. Successful responses are replayed without a second charge for 24 hours. Do not automatically retry when x-should-retry:false is present. The key is shown once. Store it in a server environment variable. Keep it out of browser code, GitHub and logs.

Keys, budgets and usage reports

Frequently asked questions

Is video_foreground_mask available through ServerNet?

video_foreground_mask is currently available on the configured route. Check GET /v1/models before sending a request: availability can change with provider capacity, catalogue freshness or account configuration.

Which model ID and API endpoint should I use for video_foreground_mask?

Create a key with ai:native and send this page’s example to /v1/inference. Video and music return a 202 receipt and a result polling URL.

How is video_foreground_mask usage charged?

A bounded request cost is reserved before sending. The verified tariff or reported provider cost is settled using the exchange rate and sale markup. Media is not billed as chat tokens. Use Data URLs for valid images, PCM WAV audio, or H.264 MP4 video on routes that accept video input.

What should I check before using video_foreground_mask in production?

Keep the input and request options within this route’s documented limits. Check GET /v1/models before sending and use the matching key permission. The reserved amount bounds admission; the usage receipt records the final settled amount.

Compare models for the same task

Bria

video_eraser

Available Video
Unit rate ceiling, IRT15,586
1 Output duration · The final usage amount follows the reported result and the permitted request options.
Explore model ↗
Only available models are exposed by the API. Availability requires a configured provider, valid prices and a supported execution path.