Sa2VA (Qwen3-VL-4B) API

Marries SAM 2 with an MLLM for dense grounded understanding: answers questions and outputs referring segmentation masks over images and videos from language instructions.

Live$0.10 per 1,000 callsGet an API key

Call Sa2VA (Qwen3-VL-4B)

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": "bytedance/sa2va",    "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 Sa2VA (Qwen3-VL-4B) 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 Sa2VA (Qwen3-VL-4B) needs in a request as served (ByteDance/Sa2VA-Qwen3-VL-4B), 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 Sa2VA (Qwen3-VL-4B)

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.
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.

Sa2VA (Qwen3-VL-4B) FAQ

How do I run Sa2VA (Qwen3-VL-4B) without my own GPU?
Call POST /v1/segment on the OpenRobotics API with "model": "bytedance/sa2va". We run Sa2VA (Qwen3-VL-4B) on cloud GPUs that start on demand, so there is nothing to install or host.
How much does the Sa2VA (Qwen3-VL-4B) 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 Sa2VA (Qwen3-VL-4B) use?
The weights we serve (ByteDance/Sa2VA-Qwen3-VL-4B) are released under Apache-2.0 (base Qwen3-VL-4B: Apache-2.0; SAM 2: Apache-2.0). Check the license for your use case.
Is Sa2VA (Qwen3-VL-4B) open source?
Sa2VA (Qwen3-VL-4B)'s weights are publicly available under Apache-2.0 (base Qwen3-VL-4B: Apache-2.0; SAM 2: Apache-2.0). OpenRobotics serves them behind an API so you can use the model without hosting it.

Run Sa2VA (Qwen3-VL-4B) with one API call

Create a key, send POST /v1/segment with "model": "bytedance/sa2va", and pay $0.10 per 1,000 calls.

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