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

## Details

- Model id: `bytedance/sa2va`
- Provider: ByteDance
- Type: Perception · Segmentation
- Parameters: ~5B
- Output: Referring masks for images/videos + grounded text answers
- Embodiments: Any (video), Single arm, Mobile manipulator
- Endpoint: `POST /v1/segment`
- Price: $0.10 per 1,000 calls
- Checkpoint served: `ByteDance/Sa2VA-Qwen3-VL-4B`
- License: Apache-2.0 (base Qwen3-VL-4B: Apache-2.0; SAM 2: Apache-2.0)
- Released: October 2025
- Status: Live
- Paper or model card: https://arxiv.org/abs/2501.04001

## Inputs

What a request to Sa2VA (Qwen3-VL-4B) needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/bytedance/sa2va` as `inputs`).

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

## Call Sa2VA (Qwen3-VL-4B)

Send one request with your API key to `POST https://api.openrobotics.dev/v1/segment`. The response comes back in the same call. The [API reference](https://www.openrobotics.dev/docs/api/segment) lists every field. GPUs start on demand: after a quiet spell the first call returns `503` with `Retry-After` while one boots (never billed).

Python:

```python
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
```

TypeScript:

```typescript
const res = await fetch("https://api.openrobotics.dev/v1/segment", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROBOTICS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    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.
  }),
}).then((r) => r.json());
```

cURL:

```bash
curl https://api.openrobotics.dev/v1/segment \
  -H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"bytedance/sa2va","image":"<base64 JPEG or PNG>","text":"<…>"}'
```

## Guides about Sa2VA (Qwen3-VL-4B)

- [SAM 2 explained: image masks, video memory, and RLE](https://www.openrobotics.dev/blog/sam-2.md): 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](https://www.openrobotics.dev/blog/physical-ai.md): 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.

## Similar models

- [SAM 2](https://www.openrobotics.dev/models/meta/sam-2.md): `meta/sam-2`, $0.10 per 1,000 calls
- [SAM 3](https://www.openrobotics.dev/models/meta/sam-3.md): `meta/sam-3`, $0.10 per 1,000 calls
- [Segment Anything (SAM)](https://www.openrobotics.dev/models/meta/sam.md): `meta/sam`, $0.10 per 1,000 calls
- [Grounded SAM 2](https://www.openrobotics.dev/models/idea-research/grounded-sam-2.md): `idea-research/grounded-sam-2`, $0.10 per 1,000 calls
- [EfficientSAM3](https://www.openrobotics.dev/models/bristol/efficientsam3.md): `bristol/efficientsam3`, $0.10 per 1,000 calls
- [EdgeTAM](https://www.openrobotics.dev/models/meta/edgetam.md): `meta/edgetam`, $0.10 per 1,000 calls
