SAM 3 API

Also written: Segment Anything 3, sam3

Detects, segments and tracks every instance of an open-vocabulary concept given as a short noun phrase or image exemplar, in images and video. A SAM 3.1 checkpoint followed.

Live$0.10 per 1,000 callsGet an API key

Call SAM 3

Send one request with your API key. The response comes back in the same call. See the API reference for every field.

import os, requests res = requests.post(  "https://api.openrobotics.dev/v1/segment",  headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"},  json={    "model": "meta/sam-3",    "image": "<base64 JPEG or PNG>",    "text": "<…>",  # What to segment, as text (a phrase or referring expression); point and box prompts are refused.  },).json()res["masks"][0]["rle"]  # COCO RLE mask

GPUs start on demand. If SAM 3 hasn't been called for a while, the first request returns 503 with a Retry-After header while it boots (usually a few minutes, never billed).

Inputs

What SAM 3 needs in a request as served (facebook/sam3), beyond the fields every /v1/segment call takes. The same spec is in inputs on GET /v1/models.

text
Required. What to segment, as text (a phrase or referring expression); point and box prompts are refused.

Guides about SAM 3

SAM 3: Segment Anything with Concepts, explained
What SAM 3 is, how concept prompts differ from SAM 2's clicks, what SAM 3D Body and SAM 3D Objects add, the SAM License, and how to call SAM 3 by API.
Physical AI explained: the open model stack for robots
What physical AI (embodied AI) means, the five kinds of models a robot uses, from perception to VLAs and world models, and open examples of each.
SAM 2 explained: image masks, video memory, and RLE
Learn how SAM 2 segments images and videos, what the single-image API actually supports, and how to decode COCO RLE with tested offline Python.
VGGT explained: feed-forward 3D reconstruction
How VGGT predicts cameras, depth, point maps and tracks in one pass, how it compares with DUSt3R, MASt3R, MapAnything and Depth Anything 3, and its API.

SAM 3 FAQ

How do I run SAM 3 without my own GPU?
Call POST /v1/segment on the OpenRobotics API with "model": "meta/sam-3". We run SAM 3 on cloud GPUs that start on demand, so there is nothing to install or host.
How much does the SAM 3 API cost?
$0.10 per 1,000 calls, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.
What license does SAM 3 use?
The weights we serve (facebook/sam3) are released under SAM License. Check the license for your use case.
Is SAM 3 open source?
SAM 3's weights are publicly available under SAM License. OpenRobotics serves them behind an API so you can use the model without hosting it.

Run SAM 3 with one API call

Create a key, send POST /v1/segment with "model": "meta/sam-3", and pay $0.10 per 1,000 calls.

Get an API keyRead the /v1/segment referenceBrowse segmentation models