video_mask_by_key_points API
video_mask_by_key_points from Bria is available for Video generation through ServerNet’s native API. Use the request example and supported limits on this page.
AvailableService type
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 5 seconds and 750 pixels per side. 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-mask-by-key-points-a65173e645
- 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_mask_by_key_points?
Use the public identifier di-briavideo-mask-by-key-points-a65173e645 for video_mask_by_key_points in ServerNet. The gateway uses this identifier to select the configured route; the developer is Bria.
Where to use video_mask_by_key_points
- Check the exact video task supported by video_mask_by_key_points.
- 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.
Identify and segment objects across video frames using specific coordinate points. Just point in the right direction and the model will figure out by itself which object should be masked.
How to evaluate this model
For video_mask_by_key_points, 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.
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-mask-by-key-points-a65173e645. 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.
| Parameter | Type | Required | Declared constraints |
|---|---|---|---|
video | string | Yes | Maximum UTF-8 bytes: 8000000
format: data:video/mp4;base64
|
frame_index | integer | No | Default: 0
|
key_points | array | Yes | minItems: 1
maxItems: 8
|
auto_trim | boolean | No | Default: false
|
output_container_and_codec | string | No | Maximum UTF-8 bytes: 8000
Default: mp4_h264
Values: mp4_h264
|
Connect to video_mask_by_key_points 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.
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-mask-by-key-points-a65173e645",
"output_container_and_codec": "mp4_h264",
"auto_trim": false,
"video": "data:video/mp4;base64,REPLACE_WITH_YOUR_FILE",
"key_points": [
{
"type": "positive",
"x": 1,
"y": 1
}
]
}'import json, os, urllib.request
from uuid import uuid4
body = json.loads("{\n \"model\": \"di-briavideo-mask-by-key-points-a65173e645\",\n \"output_container_and_codec\": \"mp4_h264\",\n \"auto_trim\": false,\n \"video\": \"data:video/mp4;base64,REPLACE_WITH_YOUR_FILE\",\n \"key_points\": [\n {\n \"type\": \"positive\",\n \"x\": 1,\n \"y\": 1\n }\n ]\n}")
request = urllib.request.Request(
"https://servernet.cloud/v1/inference",
data=json.dumps(body).encode(),
headers={
"Authorization": "Bearer " + os.environ["SERVERNET_API_KEY"],
"Content-Type": "application/json",
"Idempotency-Key": str(uuid4()),
},
method="POST",
)
with urllib.request.urlopen(request) as response:
print(json.load(response))import { randomUUID } from 'node:crypto';
const response = await fetch('https://servernet.cloud/v1/inference', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.SERVERNET_API_KEY,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
"model": "di-briavideo-mask-by-key-points-a65173e645",
"output_container_and_codec": "mp4_h264",
"auto_trim": false,
"video": "data:video/mp4;base64,REPLACE_WITH_YOUR_FILE",
"key_points": [
{
"type": "positive",
"x": 1,
"y": 1
}
]
}),
});
if (!response.ok) throw new Error('HTTP ' + response.status);
console.log(await response.json());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 reportsFrequently asked questions
Is video_mask_by_key_points available through ServerNet?
video_mask_by_key_points 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_mask_by_key_points?
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_mask_by_key_points 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_mask_by_key_points 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.