Segment Anything Model
Use Segment Anything Model to find and cut out objects in images and video from a short noun phrase. SAM 3.1 returns a box and a pixel mask for every match, and in video it follows each object across frames. Return to the Cookbook for other patterns.
SAM API basics Segment an image or an uploaded video in Python or TypeScript, streaming the response and parsing it with the official meta-sam parsers.