# DINO-WM API

> World model that predicts future pre-trained DINOv2 patch features conditioned on actions, enabling zero-shot test-time planning on PointMaze, PushT, Wall, rope and granular manipulation.

## Details

- Model id: `nyu/dino-wm`
- Provider: NYU (Gaoyue Zhou, Lerrel Pinto, Yann LeCun)
- Type: World model · Latent prediction
- Parameters: ~20M predictor (+ DINOv2 ViT-S)
- Output: Action-conditioned DINOv2 patch-feature prediction for zero-shot planning
- Embodiments: Single arm
- Endpoint: `POST /v1/predict`
- Price: $0.0003 per clip
- Checkpoint served: `https://osf.io/download/xvzs4/`
- License: CC-BY-4.0 (checkpoints: OSF project bmw48); code MIT (gaoyuezhou/dino_wm); base DINOv2 ViT-S/14: Apache-2.0 (code and weights)
- Released: November 2024
- Status: Live
- Paper or model card: https://arxiv.org/abs/2411.04983

## Inputs

What a request to DINO-WM needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/nyu/dino-wm` as `inputs`).

- `frames` (required): Context frames (or one `image`).
- `actions` (optional): 2-value actions, one row per env step (5 per predicted step).
- `states` (required): 4-value proprioception per context frame (PushT: agent x, y and velocity x, y in env units).
- `goal_image` (optional): A goal frame: with no actions, the response is a plan.

## Call DINO-WM

Send one request with your API key to `POST https://api.openrobotics.dev/v1/predict`. Generation runs as a job: the call answers 202 right away and you poll for the result. The [API reference](https://www.openrobotics.dev/docs/api/predict) 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/predict",
  headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"},
  json={
    "model": "nyu/dino-wm",
    "frames": ["<base64 JPEG or PNG>", "<base64 JPEG or PNG>", "…"],
    "states": "<…>",  # 4-value proprioception per context frame (PushT: agent x, y and velocity x, y in env units).
  },
).json()
job = res                # poll GET /v1/jobs/{job["id"]} for result.latents
```

TypeScript:

```typescript
const res = await fetch("https://api.openrobotics.dev/v1/predict", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROBOTICS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "nyu/dino-wm",
    frames: ["<base64 JPEG or PNG>", "<base64 JPEG or PNG>", "…"],
    states: "<…>",  // 4-value proprioception per context frame (PushT: agent x, y and velocity x, y in env units).
  }),
}).then((r) => r.json());
```

cURL:

```bash
curl https://api.openrobotics.dev/v1/predict \
  -H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nyu/dino-wm","frames":["<base64 JPEG or PNG>","<base64 JPEG or PNG>","…"],"states":"<…>"}'
```

## Guides about DINO-WM

- [World models for robotics: video, latents and prediction](https://www.openrobotics.dev/blog/world-models.md): How robotics world models predict video or latents, how async prediction jobs work, and how to validate shapes and timing with an offline Python example.
- [NVIDIA Cosmos explained: Predict, Transfer, Reason and Cosmos 3](https://www.openrobotics.dev/blog/nvidia-cosmos.md): A guide to every NVIDIA Cosmos model: Cosmos Predict, Transfer, Reason, Embed, Cosmos Policy and Cosmos 3, with sizes, licenses and what each one is for.

## DINO-WM FAQ

### How do I run DINO-WM without my own GPU?

Call POST /v1/predict on the OpenRobotics API with "model": "nyu/dino-wm". We run DINO-WM on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the DINO-WM API cost?

$0.0003 per clip, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.

### What license does DINO-WM use?

The weights we serve (https://osf.io/download/xvzs4/) are released under CC-BY-4.0 (checkpoints: OSF project bmw48); code MIT (gaoyuezhou/dino_wm); base DINOv2 ViT-S/14: Apache-2.0 (code and weights). Check the license for your use case.

### Is DINO-WM open source?

DINO-WM's weights are publicly available under CC-BY-4.0 (checkpoints: OSF project bmw48); code MIT (gaoyuezhou/dino_wm); base DINOv2 ViT-S/14: Apache-2.0 (code and weights). OpenRobotics serves them behind an API so you can use the model without hosting it.

## Similar models

- [LeWAM (JEPA world-action model)](https://www.openrobotics.dev/models/brown/lewam.md): `brown/lewam`, $0.0003 per clip
- [LeWorldModel (LeWM)](https://www.openrobotics.dev/models/mila/leworldmodel.md): `mila/leworldmodel`, $0.0003 per clip
- [V-JEPA 2](https://www.openrobotics.dev/models/meta/v-jepa-2.md): `meta/v-jepa-2`, $0.01 per clip
- [V-JEPA 2.1](https://www.openrobotics.dev/models/meta/v-jepa-2.1.md): `meta/v-jepa-2.1`, $0.01 per clip
- [V-JEPA 2-AC](https://www.openrobotics.dev/models/meta/v-jepa-2-ac.md): `meta/v-jepa-2-ac`, $0.05 per clip
- [LeWAM (Latent Evolving World Action Model)](https://www.openrobotics.dev/models/baidu/lewam.md): `baidu/lewam`, not served
