Pricing
Compare models →Pricing is fixed at $0.005 per image.
| Output | Cost |
|---|---|
| One segmented image | $0.005 |
Image size, prompt type, apply_mask, and output_format 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 |
output_format | string | Output image format for the segmented resultjpegpngwebp"png" |
README
SAM3 Image Segmentation
SAM3 Image Segmentation segments target objects in an image using flexible prompt inputs. Provide an image and use a text prompt, point prompts, box prompts, or a combination of them to generate a precise segmentation result for the selected subject.
Why Choose This?
- Image segmentation workflow
Segment people, objects, animals, backgrounds, or other visible targets from a source image.
- Multiple prompt types
Use text prompts, point prompts, box prompts, or combined prompt guidance for more accurate targeting.
- Text-based target selection
Describe what to segment with natural language, such as the man, the car, or background.
- Point and box control
Use coordinates or bounding boxes when you need more precise target selection.
- Mask output control
Use apply_mask to choose whether the mask is applied to the image or returned as a black-and-white mask-style output.
- Low-cost segmentation
Generate segmentation outputs 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 apply the mask to the original image. When disabled, the output is a mask-style image with a black background and the selected region in white. |
| output_format | No | Output image format: jpeg, png, or webp. Default: png. |
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.
- Choose mask behavior — Enable
apply_maskto apply the mask to the image. Disable it when you need a black-and-white mask output.
- Choose output format — Select
jpeg,png, orwebp.
- Submit — Generate the segmentation result.
Pricing
Pricing is fixed at $0.005 per image.
| Output | Cost |
|---|---|
| One segmented image | $0.005 |
Image size, prompt type, apply_mask, and output_format do not add separate charges.
Best Use Cases
- Object segmentation — Segment people, products, animals, vehicles, clothing, or props.
- Background workflows — Target foreground subjects or background regions for downstream editing.
- Mask generation — Create black-and-white mask-style outputs for compositing or image editing.
- Object isolation — Isolate selected objects for design, marketing, or post-production workflows.
- Data annotation — Generate segmentation masks for dataset preparation or labeling workflows.
- E-commerce assets — Segment products for catalog images, ads, and layout workflows.
Pro Tips
- Use short, concrete text 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
apply_mask=truewhen you want the mask applied to the original image.
- Use
apply_mask=falsewhen you need a black-background mask output with the selected region shown in white.
- Use
pngwhen working with mask or compositing workflows.
Notes
imageis required.
- At least one of
prompt,point_prompts, orbox_promptsmust be provided.
- Point and box prompts use image coordinates.
- When
apply_maskis disabled, the output is a mask-style image with a black background and the selected region in white.
output_formatdefaults topng.
Related Models
- Bria RMBG — Remove image backgrounds for subject isolation workflows.
- Qwen Image Edit 2511 — Edit images with text instructions.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
SAM3 Image Segmentation API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/sam3-image 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/251121/6784e7f4b50aebc7e17fe396/98u2oa5o45jw.jpg",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"point_prompts": [],
"box_prompts": [],
"apply_mask": true,
"output_format": "png"
}SAM3 Image Segmentation API — Frequently asked questions
What is the Sam3 Image API?
Sam3 Image is a OpenSIAI model for image processing, exposed as a REST API on OpenSIAI. SAM 3 is a unified foundation model for promptable image segmentation using text, points, or boxes to detect and segment objects. 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 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.
How much does Sam3 Image cost per run or per second?
Sam3 Image 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 accept?
Key inputs: prompt, image, apply_mask, box_prompts, output_format, 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.
How long does Sam3 Image take to generate?
Reported generation time on OpenSIAI is around 4 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 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.
