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.
Idle

$0.005per run·~200 / $1





SAM3 Image Segmentation is an advanced image segmentation model based on Meta's Segment Anything Model 3. It identifies and segments objects in images using flexible prompt types — text descriptions, point coordinates, or bounding boxes — delivering precise masks for any target object.
Multiple prompt types Segment objects using text prompts, point prompts, box prompts, or any combination.
Text-based segmentation Simply describe what to segment (e.g., "the man", "the car", "background").
Point and box prompts Precise control with coordinate-based prompts for exact object targeting.
Mask overlay option Optionally overlay the segmentation mask directly on the original image.
Prompt Enhancer Built-in tool to automatically improve your text prompts for better results.
Ultra-affordable Just $0.005 per image for professional-quality segmentation.
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Source image to segment (upload or URL) |
| prompt | No* | Text description of the object to segment |
| point_prompts | No* | Point coordinates to identify the target object |
| box_prompts | No* | Bounding box coordinates to identify the target object |
| apply_mask | No | Overlay the segmentation mask on the original image |
| output_format | No | Output format: jpeg, png, or webp (default: png) |
*At least one prompt type (text, boxes, or points) must be provided.
| Item | Cost |
|---|---|
| Per image | $0.005 |
Simple flat-rate pricing regardless of image size or prompt complexity.
Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/sam3-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Sam3 Image below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/sam3-image" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"image": "https://example.com/your-input.jpg",
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"apply_mask": true,
"output_format": "png"
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("wavespeed-ai/sam3-image", {
"image": "https://example.com/your-input.jpg",
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"apply_mask": true,
"output_format": "png"
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"wavespeed-ai/sam3-image",
{
"image": "https://example.com/your-input.jpg",
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"apply_mask": true,
"output_format": "png"
}
)
print(output["outputs"][0]) # → URL of the generated outputSam3 Image is a WaveSpeedAI model for image editing, exposed as a REST API on WaveSpeedAI. 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.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/sam3-image.
Sam3 Image starts at $0.005 per run. 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.
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 https://wavespeed.ai/docs/docs-api/wavespeed-ai/sam3-image.
Average end-to-end generation time on WaveSpeedAI is around 5 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.
Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.