# Vista API

> SVD-based driving world model at 576x1024 and 10 Hz that accepts multiple action formats. Also used as a reward model for evaluating driving actions. NeurIPS 2024.

## Details

- Model id: `opendrivelab/vista`
- Provider: OpenDriveLab
- Type: World model · Action-conditioned video prediction
- Output: Driving video prediction controlled by commands, trajectories, steering and speed
- Embodiments: Autonomous vehicle
- Endpoint: `POST /v1/predict`
- Price: $0.15 per clip
- Checkpoint served: `OpenDriveLab/Vista`
- License: Apache-2.0 (base stable-video-diffusion-img2vid: Stability AI Community License, commercial < $1M revenue)
- Released: May 2024
- Status: Live
- Paper or model card: https://arxiv.org/abs/2405.17398

## Inputs

What a request to Vista needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/opendrivelab/vista` as `inputs`).

- Notes: Kind "vista": see the API reference for its request fields. Video: 1024×576 by default, 25 frames by default, 10 fps (models.json config).

## Call Vista

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": "opendrivelab/vista",
    "image": "<base64 JPEG or PNG>",
    "states": [[0.4, 0, 0.3, 0, 0, 0, 0]],
    "actions": [[0.42, 0, 0.3, 0, 0, 0, 0], "…"],
  },
).json()
job = res                # 202: poll GET /v1/jobs/{job["id"]} for the video
```

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: "opendrivelab/vista",
    image: "<base64 JPEG or PNG>",
    states: [[0.4, 0, 0.3, 0, 0, 0, 0]],
    actions: [[0.42, 0, 0.3, 0, 0, 0, 0], "…"],
  }),
}).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":"opendrivelab/vista","image":"<base64 JPEG or PNG>","states":[[0.4,0,0.3,0,0,0,0]],"actions":[[0.42,0,0.3,0,0,0,0],"…"]}'
```

## Guides about Vista

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

## Vista FAQ

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

Call POST /v1/predict on the OpenRobotics API with "model": "opendrivelab/vista". We run Vista on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the Vista API cost?

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

### What license does Vista use?

The weights we serve (OpenDriveLab/Vista) are released under Apache-2.0 (base stable-video-diffusion-img2vid: Stability AI Community License, commercial < $1M revenue). Check the license for your use case.

### Is Vista open source?

Vista's weights are publicly available under Apache-2.0 (base stable-video-diffusion-img2vid: Stability AI Community License, commercial < $1M revenue). OpenRobotics serves them behind an API so you can use the model without hosting it.

## Similar models

- [AdaWorld](https://www.openrobotics.dev/models/little-podi/adaworld.md): `little-podi/adaworld`, $0.05 per clip
- [Ctrl-World](https://www.openrobotics.dev/models/stanford/ctrl-world.md): `stanford/ctrl-world`, $0.15 per clip
- [DrivingWorld](https://www.openrobotics.dev/models/yvanyin/drivingworld.md): `yvanyin/drivingworld`, $0.20 per clip
- [IRASim](https://www.openrobotics.dev/models/bytedance/irasim.md): `bytedance/irasim`, $0.25 per clip
- [DreamDojo](https://www.openrobotics.dev/models/nvidia/dreamdojo.md): `nvidia/dreamdojo`, $0.40 per clip
- [Epona](https://www.openrobotics.dev/models/tsinghua/epona.md): `tsinghua/epona`, $0.60 per clip
