Pricing
Compare models →Pricing is based on input video duration.
Billed duration is rounded up to the next whole second, with a minimum billed duration of 3 seconds and a maximum billed duration of 600 seconds. Pricing is charged at $0.05 per 5 seconds.
| Billed Duration | Cost |
|---|---|
| 3s | $0.03 |
| 5s | $0.05 |
| 10s | $0.10 |
| 60s | $0.60 |
| 300s | $3.00 |
| 600s | $6.00 |
prompt, point_prompts, box_prompts, and apply_mask do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Text prompt for segmentation. Use commas to track multiple objects (e.g., 'person, cloth'). |
videoRequired | string | Video URL for segmented |
point_prompts | array | List of point coordinates to mark specific locations for segmentation (foreground or background)Items: 0–1000JSON schema{
"items": {
"properties": {
"frame_index": {
"description": "Frame index for the point prompt",
"type": "integer"
},
"label": {
"description": "1 for foreground object, 0 for background",
"type": "integer"
},
"object_id": {
"description": "Object ID for tracking multiple objects",
"type": "integer"
},
"x": {
"description": "X coordinate of the point",
"type": "integer"
},
"y": {
"description": "Y coordinate of the point",
"type": "integer"
}
},
"type": "object"
}
} |
box_prompts | array | List of bounding boxes to define rectangular regions for segmentationItems: 0–1000JSON schema{
"items": {
"properties": {
"frame_index": {
"description": "Frame index for the box prompt",
"type": "integer"
},
"object_id": {
"description": "Object ID for tracking multiple objects",
"type": "integer"
},
"x_max": {
"description": "Right edge X coordinate",
"type": "integer"
},
"x_min": {
"description": "Left edge X coordinate",
"type": "integer"
},
"y_max": {
"description": "Bottom edge Y coordinate",
"type": "integer"
},
"y_min": {
"description": "Top edge Y coordinate",
"type": "integer"
}
},
"type": "object"
}
} |
apply_mask | boolean | Whether to apply mask to videoDefault: true |
README
SAM3 Video Segmentation RLE
SAM3 Video Segmentation RLE segments and tracks target objects across video frames, then returns both a preview video URL and RLE mask data in JSON format. Use text prompts, point prompts, box prompts, or a combination of them to generate frame-level masks for programmatic video workflows.
Why Choose This?
- Video object segmentation
Segment people, objects, animals, clothing, vehicles, or other visible targets across video frames.
- Frame-level object tracking
Track selected subjects consistently through the video.
- RLE mask output
Receive compact Run-Length Encoded mask data for downstream processing.
- Multiple prompt types
Use text prompts, point prompts, box prompts, or combined prompt guidance for more accurate targeting.
- Multi-object targeting
Track multiple objects by listing them in the prompt, such as person, car, dog.
- Optional mask visualization
Use apply_mask to generate a visual preview of the segmentation result.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video to segment. Upload a video or provide a public video URL. |
| prompt | Yes | Text description of the object or objects to segment. Use short labels such as person, car, or person, cloth. |
| point_prompts | No | Point coordinates used to identify the target object or region. |
| box_prompts | No | Bounding box coordinates used to identify the target object or region. |
| apply_mask | No | Whether to apply the mask visualization to the video output. |
How to Use
- Upload a video — Provide the source video you want to segment.
- Write a target prompt — Describe the object or objects to track, such as
the man,red car, orperson, cloth.
- Add point or box prompts optional — Use coordinates or boxes when the target is ambiguous.
- Configure mask visualization optional — Enable
apply_maskwhen you want a preview video with the segmentation mask applied.
- Submit — Generate the video preview and RLE mask JSON.
Output
The response returns both:
- A video URL — A preview or mask-applied video output.
- RLE JSON data — Frame-level segmentation masks encoded in RLE format.
RLE means Run-Length Encoding. Instead of storing every mask pixel one by one, it stores continuous runs of pixels, making mask data smaller and easier to pass into downstream computer-vision or editing pipelines.
The RLE JSON can be decoded with standard mask-processing tools when you need binary masks for each frame.
Pricing
Pricing is based on input video duration.
Billed duration is rounded up to the next whole second, with a minimum billed duration of 3 seconds and a maximum billed duration of 600 seconds. Pricing is charged at $0.05 per 5 seconds.
| Billed Duration | Cost |
|---|---|
| 3s | $0.03 |
| 5s | $0.05 |
| 10s | $0.10 |
| 60s | $0.60 |
| 300s | $3.00 |
| 600s | $6.00 |
prompt, point_prompts, box_prompts, and apply_mask do not add separate charges.
Best Use Cases
- Video annotation — Generate frame-level segmentation masks for labeling and dataset workflows.
- Object tracking pipelines — Track subjects or objects across frames for automated processing.
- Video editing automation — Use RLE masks for programmatic object isolation, removal, or replacement.
- Computer vision workflows — Feed compact mask data into downstream CV systems.
- VFX and compositing — Generate rotoscoping-style masks for post-production pipelines.
- Mask preview workflows — Use the returned video URL to quickly inspect segmentation quality.
Pro Tips
- Use short, concrete prompts such as
person,dog,car, orshirt.
- Use comma-separated prompts for multiple targets, such as
person, backpack, bicycle.
- Use point prompts when text alone is ambiguous.
- Use box prompts when you need to constrain segmentation to a specific region.
- Enable
apply_maskwhen you want a visual preview of the segmentation result.
- Use the RLE JSON when you need programmatic access to frame-by-frame masks.
- Use stable footage with clear subject separation for better tracking consistency.
Notes
videoandpromptare required.
- Output includes both a video URL and RLE mask JSON.
- RLE output is structured mask data, not a standalone video file.
- Use standard RLE-compatible tooling to decode masks for downstream processing.
Related Models
- SAM3 Video — Segment video targets and return direct video output.
- SAM3 Image RLE — Segment image targets and return RLE mask data.
- SAM3 Image — Segment image targets and return image output.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
SAM3 Video RLE Video Understanding API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/sam3-video-rle for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"video": "https://static.website-files.org/assets/video-generator/landing/showcase/04-a244f00f6098.mp4",
"point_prompts": [],
"box_prompts": [],
"apply_mask": true
}SAM3 Video RLE Video Understanding API — Frequently asked questions
What is the Sam3 Video Rle API?
Sam3 Video Rle is a OpenSIAI model for video processing, exposed as a REST API on OpenSIAI. SAM 3 Video RLE is a unified foundation model for prompt-based segmentation in video. Track and segment objects across frames using text, points, or boxes, returning RLE encoded masks for efficient processing. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Sam3 Video Rle API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/sam3-video-rle.
How much does Sam3 Video Rle cost per run or per second?
Sam3 Video Rle starts at $0.01 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Sam3 Video Rle accept?
Key inputs: prompt, video, apply_mask, box_prompts, point_prompts. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/sam3-video-rle.
How long does Sam3 Video Rle take to generate?
Reported generation time on OpenSIAI is around 26 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Sam3 Video Rle outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
