SAM 2 image encoder (Hiera) API
Hierarchical Hiera encoder with streaming memory for image and video segmentation. Used for object masks and tracking in robot perception pipelines.
Call SAM 2 image encoder (Hiera)
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/embed", headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"}, json={ "model": "meta/sam-2-encoder", "image": "<base64 JPEG or PNG>", },).json()res["embedding"] # unit-length float vectorGPUs start on demand. If SAM 2 image encoder (Hiera) 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).
Guides about SAM 2 image encoder (Hiera)
- DINOv3 vs DINOv2: features, licenses and retrieval
- Compare DINOv2 and DINOv3, distinguish dense features from pooled API vectors, and test same-space image retrieval with offline Python.
- 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 image encoder (Hiera) FAQ
- How do I run SAM 2 image encoder (Hiera) without my own GPU?
- Call POST /v1/embed on the OpenRobotics API with "model": "meta/sam-2-encoder". We run SAM 2 image encoder (Hiera) on cloud GPUs that start on demand, so there is nothing to install or host.
- How much does the SAM 2 image encoder (Hiera) API cost?
- $0.02 per 1,000 calls, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.
- What license does SAM 2 image encoder (Hiera) use?
- The weights we serve (facebook/sam2.1-hiera-large) are released under Apache-2.0. Check the license for your use case.
- Is SAM 2 image encoder (Hiera) open source?
- SAM 2 image encoder (Hiera)'s weights are publicly available under Apache-2.0. OpenRobotics serves them behind an API so you can use the model without hosting it.
Run SAM 2 image encoder (Hiera) with one API call
Create a key, send POST /v1/embed with "model": "meta/sam-2-encoder", and pay $0.02 per 1,000 calls.