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 in 5-second units at $0.05 per 5 seconds.
| Billed Duration | Cost |
|---|---|
| 3s | $0.03 |
| 5s | $0.05 |
| 10s | $0.10 |
| 60s | $0.60 |
| 600s | $6.00 |
prompt 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 |
apply_mask | boolean | Whether to apply mask to videoDefault: true |
README
OpenSIAI SAM3 Video Video-to-Video
OpenSIAI SAM3 Video Video-to-Video is a prompt-based video segmentation and mask-guided editing model. Provide a video and a short text prompt to target specific subjects across frames, then choose whether to apply the mask to the video output or return a mask-style result for downstream workflows.
Why Choose This?
- Prompt-based target selection
Use natural language to identify the subject or object to segment, such as person, woman, red car, or backpack.
- Multi-object targeting
Target multiple objects in one request by listing them in the prompt.
- Mask-guided video output
Use apply_mask to control whether the detected mask is applied to the video or returned as a mask-style output.
- Temporal video consistency
Track selected subjects across frames for more stable video segmentation workflows.
- Editing and compositing workflows
Prepare masks or localized video outputs for object removal, background cleanup, subject isolation, and downstream compositing.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Input video file or public video URL. |
| prompt | Yes | Text prompt describing the subject or object to target. Use short, concrete labels such as person, car, or dog. |
| apply_mask | No | Whether to apply the mask to the video output. Default: true. When disabled, the output is a mask-style video: the background is black and the selected region is white. |
How to Use
- Upload a video — Provide the source video you want to process.
- Write a target prompt — Describe the subject or object to segment, such as
the woman,red car, orperson, backpack.
- Choose mask behavior — Keep
apply_maskenabled to apply the mask to the video output. Disable it when you need a black-and-white mask-style output.
- Submit — Generate the processed video result.
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 in 5-second units at $0.05 per 5 seconds.
| Billed Duration | Cost |
|---|---|
| 3s | $0.03 |
| 5s | $0.05 |
| 10s | $0.10 |
| 60s | $0.60 |
| 600s | $6.00 |
prompt and apply_mask do not add separate charges.
Best Use Cases
- Video segmentation — Segment people, objects, animals, clothing, vehicles, or other visible subjects across frames.
- Subject isolation — Isolate a target subject for compositing or downstream editing.
- Mask generation — Create black-and-white mask-style video outputs for external editing pipelines.
- Object-focused editing — Prepare localized regions for removal, cleanup, or replacement workflows.
- Background cleanup — Target foreground subjects or unwanted background objects with prompt guidance.
- Multi-target workflows — Segment multiple objects in one run when the prompt clearly identifies each target.
Pro Tips
- Use short, concrete target descriptions for better segmentation.
- For multiple objects, use comma-separated labels such as
person, backpack, bicycle.
- Keep the prompt focused on what should be targeted.
- Use
apply_mask=truewhen you want the mask applied to the video output.
- Use
apply_mask=falsewhen you need a black-background mask output with the selected region shown in white.
- Use stable footage with clear subject separation for better results.
- Reduce the number of targets if the model selects the wrong object or drifts across frames.
Notes
videoandpromptare required.
apply_maskdefaults totrue.
- When
apply_maskis disabled, the output is a mask-style video with a black background and the selected region in white.
- Billed duration is rounded up and clamped to
3–600seconds.
- Very short videos are billed as
3seconds.
- Videos longer than
600seconds are billed at the 600-second cap.
Related Models
- OpenSIAI Video Eraser — Remove unwanted objects or people from videos using mask-based guidance.
- Wan 2.2 Video Edit — Edit video content with text instructions.
- OpenSIAI Video Watermark Remover — Remove logos, captions, or watermarks from videos.
- OpenSIAI Video Outpainter — Expand video borders for reframing and aspect-ratio changes.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
SAM3 Video Segmentation API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/sam3-video 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",
"apply_mask": true
}SAM3 Video Segmentation API — Frequently asked questions
What is the Sam3 Video API?
Sam3 Video is a OpenSIAI model for video processing, exposed as a REST API on OpenSIAI. SAM3 Video is a unified foundation model for prompt-based video segmentation. Provide text, point, box, or mask prompts and the model segments and tracks targets across frames with strong temporal consistency. Supports concept-level (“segment anything with concepts”) and multi-object masks for editing, analytics, and VFX. Ready-to-use REST inference API with fast response, no cold starts, and affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Sam3 Video 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.
How much does Sam3 Video cost per run or per second?
Sam3 Video 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 accept?
Key inputs: prompt, video, apply_mask. 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.
How long does Sam3 Video take to generate?
Reported generation time on OpenSIAI is around 39 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 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.
