Pricing
Compare models →Pricing is fixed at $0.005 per image.
| Output | Cost |
|---|---|
| One RLE segmentation result | $0.005 |
Image size, prompt type, point_prompts, box_prompts, and apply_mask do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | URL of the image to segment and analyze |
prompt | string | Text description to guide which objects or regions to segment |
point_prompts | array | List of point coordinates to mark specific locations for segmentation (foreground or background)Items: 0–1000JSON schema{
"items": {
"properties": {
"label": {
"description": "1 for foreground object, 0 for background",
"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": {
"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 overlay the segmentation mask on the original imageDefault: true |
README
SAM3 Image Segmentation RLE
SAM3 Image Segmentation RLE segments target objects in an image and returns mask data in RLE format. Use text prompts, point prompts, box prompts, or a combination of them to generate compact, program-friendly segmentation masks for API integration, automation, and computer-vision workflows.
Why Choose This?
- RLE mask output
Return compact Run-Length Encoded mask data instead of a standard image mask.
- Multiple prompt types
Segment objects using text prompts, point prompts, box prompts, or combined prompt guidance.
- Text-based target selection
Describe what to segment with natural language, such as person, car, or background.
- Point and box control
Use coordinates or bounding boxes when you need more precise target selection.
- API-friendly workflow
Use structured mask data for automated pipelines, batch processing, annotation, and downstream editing.
- Low-cost segmentation
Generate segmentation masks at a fixed price per image.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Source image to segment. Upload an image or provide a public image URL. |
| prompt | Conditional | Text description of the target object or region to segment. |
| point_prompts | Conditional | Point coordinates used to identify the target object or region. |
| box_prompts | Conditional | Bounding box coordinates used to identify the target object or region. |
| apply_mask | No | Whether to include a visual mask overlay for the segmentation result. |
At least one prompt type must be provided: prompt, point_prompts, or box_prompts.
How to Use
- Upload an image — Provide the source image you want to segment.
- Add a target prompt — Use a text prompt, point prompts, box prompts, or a combination of them.
- Configure mask preview optional — Enable
apply_maskwhen you want a visual mask overlay.
- Submit — Generate the RLE segmentation result.
Output
The response returns RLE mask data in JSON format.
RLE means Run-Length Encoding. Instead of storing every mask pixel individually, it stores continuous runs of pixels, making the mask smaller and easier to use in automated image-processing pipelines.
Pricing
Pricing is fixed at $0.005 per image.
| Output | Cost |
|---|---|
| One RLE segmentation result | $0.005 |
Image size, prompt type, point_prompts, box_prompts, and apply_mask do not add separate charges.
Best Use Cases
- ML data annotation — Generate segmentation masks for training datasets and annotation workflows.
- Automated pipelines — Integrate segmentation into batch image-processing systems.
- API integration — Use compact mask data in downstream services or custom applications.
- Computer vision workflows — Decode RLE masks for object isolation, measurement, or analysis.
- Background workflows — Generate masks for subject extraction or background processing.
- Large-scale segmentation — Process many images with lightweight structured mask outputs.
Pro Tips
- Use this endpoint when you need programmatic access to mask data.
- Use short, concrete prompts such as
person,dog,car, orbackground.
- Use point prompts when text alone is ambiguous.
- Use box prompts when you need to constrain segmentation to a specific region.
- Combine text, points, and boxes when the target is difficult to isolate.
- Use standard RLE-compatible tooling to decode masks for downstream processing.
Notes
imageis required.
- At least one of
prompt,point_prompts, orbox_promptsmust be provided.
- Output is RLE-encoded JSON, not a standard image file.
- RLE masks can be decoded into binary masks for editing, annotation, or computer-vision workflows.
- Point and box prompts use image coordinates.
Related Models
- SAM3 Image — Segment image targets and return direct image output.
- SAM3 Video Segmentation RLE — Segment video targets and return frame-level RLE mask data.
- SAM3 Video — Segment video targets and return direct video output.
- Bria RMBG — Remove image backgrounds for subject isolation workflows.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
SAM3 Image RLE Image Understanding API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/sam3-image-rle for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251120/6784e7f4b50aebc7e17fe396/om47bxpj3zwn.jpg",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"point_prompts": [],
"box_prompts": [],
"apply_mask": true
}SAM3 Image RLE Image Understanding API — Frequently asked questions
What is the Sam3 Image Rle API?
Sam3 Image Rle is a OpenSIAI model for image processing, exposed as a REST API on OpenSIAI. SAM 3 RLE is a unified foundation model for promptable image segmentation using text, points, or boxes to detect and segment objects. Returns RLE (Run-Length Encoding) encoded masks for efficient storage and 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 Image 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-image-rle.
How much does Sam3 Image Rle cost per run or per second?
Sam3 Image Rle starts at $0.005 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 Image Rle accept?
Key inputs: prompt, image, 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-image-rle.
How long does Sam3 Image Rle take to generate?
Reported generation time on OpenSIAI is around 3 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 Image 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.
