How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Roboflow Sam2 API

The Sam2 API from Roboflow — 2 operation(s) for sam2.

Roboflow Sam2 API is one of 26 APIs that Roboflow publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Sam2. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 2 operations across 2 paths, and defines 12 schemas. It is described by OpenAPI 3.2.0, at version 1.3.8.

Requests are made against a single base URL, https://serverless.roboflow.com.

2 operations 2 paths 12 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.3.8
Base URL
https://serverless.roboflow.com
License
Terms of Service
Resource Areas
1

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Sam2 2
POST
/sam2/embed_image
SAM2 Image Embeddings
sam2_embed_image_sam2_embed_image_post 3 params body → 200422
POST
/sam2/segment_image
SAM2 Image Segmentation
sam2_segment_image_sam2_segment_image_post 3 params body → 200422

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are Sam2SegmentationRequest (17 properties), Sam2EmbeddingRequest (12 properties), Box (4 properties), ValidationError (3 properties). Each schema is shown below with its type and property counts.

ValidationError
object
3 properties 3 required
Point-Input
object
3 properties 3 required
Sam2Prompt
object
2 properties
InferenceRequestImage
object
Image data for inference request. Attributes: type (str): The type of image data provided, one of 'url', 'base64', or 'numpy'. value (Optional[Any]): Image dat…
2 properties 1 required
Sam2EmbeddingRequest
object
SAM embedding request. Attributes: image (Optional[inference.core.entities.requests.inference.InferenceRequestImage]): The image to be embedded. imageid (Optio…
12 properties 1 required
Sam2EmbeddingResponse
object
SAM embedding response. Attributes: embeddings (Union[List[List[List[List[float]]]], Any]): The SAM embedding. time (float): The time in seconds it took to pro…
2 properties 2 required
Sam2SegmentationPrediction
object
SAM segmentation prediction. Attributes: masks (Union[List[List[List[int]]], Dict[str, Any], Any]): Mask data - either polygon coordinates or RLE encoding. con…
3 properties 2 required
Box
object
4 properties 4 required
Sam2SegmentationResponse
object
2 properties 2 required
Sam2SegmentationRequest
object
SAM segmentation request. Attributes: format (Optional[str]): The format of the response. image (InferenceRequestImage): The image to be segmented. imageid (Op…
17 properties 2 required
Sam2PromptSet
object
1 property
HTTPValidationError
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

roboflow-sam2-api-openapi.yml Raw ↑

Other APIs Roboflow publishes across the network.

Roboflow REST API
Roboflow MCP Server
Roboflow Clip API
Roboflow Dashboard.html API
Roboflow Doctr API
Roboflow Easy Ocr API
Roboflow Gaze API
Roboflow Grounding Dino API
Roboflow Healthz API
Roboflow Infer API
Roboflow Info API
Roboflow Initialise Webrtc Worker API
Where this information came from

This is an independent, third-party profile of Roboflow Sam2 API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.