# R3M API

> ResNet encoders pretrained on Ego4D human video with time-contrastive and video-language alignment objectives. Used as a frozen encoder for manipulation policies.

## Details

- Model id: `meta/r3m`
- Provider: Meta, Stanford
- Type: Vision encoder
- Parameters: 11.7M–25.6M
- Output: Robot-pretrained visual representation
- Embodiments: Single arm
- Embedding size: 2048 dimensions
- Endpoint: `POST /v1/embed`
- Price: $0.02 per 1,000 calls
- Checkpoint served: `surajnair/r3m-50`
- License: MIT
- Released: March 2022
- Status: Live
- Paper or model card: https://arxiv.org/abs/2203.12601

## Call R3M

Send one request with your API key to `POST https://api.openrobotics.dev/v1/embed`. The response comes back in the same call. The [API reference](https://www.openrobotics.dev/docs/api/embed) 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/embed",
  headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"},
  json={
    "model": "meta/r3m",
    "image": "<base64 JPEG or PNG>",
  },
).json()
res["embedding"]        # unit-length float vector
```

TypeScript:

```typescript
const res = await fetch("https://api.openrobotics.dev/v1/embed", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROBOTICS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "meta/r3m",
    image: "<base64 JPEG or PNG>",
  }),
}).then((r) => r.json());
```

cURL:

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

## Guides about R3M

- [Vision encoders for robotics: SigLIP 2, DINOv3, CLIP compared](https://www.openrobotics.dev/blog/vision-encoders.md): How CLIP, OpenCLIP, SigLIP 2, Perception Encoder and DINOv3 differ, which VLAs use which vision encoder, and how to get embeddings over HTTP.
- [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.

## R3M FAQ

### How do I run R3M without my own GPU?

Call POST /v1/embed on the OpenRobotics API with "model": "meta/r3m". We run R3M on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the R3M 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 R3M use?

The weights we serve (surajnair/r3m-50) are released under MIT. Check the license for your use case.

### Is R3M open source?

R3M's weights are publicly available under MIT. OpenRobotics serves them behind an API so you can use the model without hosting it.

## Similar models

- [SigLIP So400m](https://www.openrobotics.dev/models/google/siglip-so400m.md): `google/siglip-so400m`, $0.02 per 1,000 calls
- [DINOv2](https://www.openrobotics.dev/models/meta/dinov2.md): `meta/dinov2`, $0.02 per 1,000 calls
- [ResNet-18 / ResNet-50](https://www.openrobotics.dev/models/microsoft/resnet-18.md): `microsoft/resnet-18`, $0.02 per 1,000 calls
- [CLIP ViT-L/14](https://www.openrobotics.dev/models/openai/clip-vit-l-14.md): `openai/clip-vit-l-14`, $0.02 per 1,000 calls
- [SigLIP 2](https://www.openrobotics.dev/models/google/siglip2-so400m.md): `google/siglip2-so400m`, $0.02 per 1,000 calls
- [EfficientNet](https://www.openrobotics.dev/models/google/efficientnet.md): `google/efficientnet`, $0.02 per 1,000 calls
