I've had pretty good luck having Gemini or Claude use SAM as a tool. Gemini is really good at identifying things in images, but it doesn't do a great job doing segmentation per se, but SAM on its own can't really decide what you need to segment.