Skip to content
Explore models

Video

Segment Anything 2

SAM 2 is a model for segmenting images and videos in real-time.

  • Image editing
  • Video editing
Create with Segment Anything 2
Preview for Segment Anything 2

Catalog preview for Segment Anything 2. Review your own result before publishing.

Use Segment Anything 2 through the API.

Start with this model ID for the endpoint featured on this page:

sam2/image

Available modes

Check the current model schema for supported inputs and options. Other tasks may use different model IDs.

From quote to result.

Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.

Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.