SAM 3

Segment objects in 2D images or video frames from a text, box or point prompt with Meta SAM 3.

Version 0.4.0 · Latest release · Apple Silicon

Run it

Ask your agent, once it is connected to MedMLX:

Use MedMLX to find the kidney in image.png in my work folder with SAM 3.

Or run it from the terminal, in the folder that holds your files. Weights download on the first run.

Run SAM 3
uv tool install --python 3.13 "medmlx[segment,mcp]"
medmlx describe sam3
medmlx run sam3 --arg image_path=image.png prompt=kidney output_dir=sam3

The masks are written to sam3/masks.npy, with sam3/prediction.json. describe lists every argument the model takes.

Model card

Input
One 2D image, such as a PNG or JPEG, or one chosen frame of an image folder or video, with a text prompt, a box or a point.
Output
One mask per detected object at the image's size, plus boxes and scores.
Runs on
macOS 14.0 or later on Apple Silicon

Before you run

Reads ordinary 8-bit images. DICOM, NIfTI and 3D volumes are not read; export a slice to PNG first.

License and terms

Software and model files: the SAM License, which allows commercial use but bars military, weapons and trade-controlled uses. Publications must acknowledge SAM.

Developer documentation on GitHub

Downloads and memory

ModelDownloadPeak memoryMeasured on
SAM 3, one image3.4 GB5.4 GBOne image at the default 1008-pixel resolution
SAM 3, tracked video6.0 GBA tracked video session

More segmentation