# DrivingWorld API

> GPT-style autoregressive driving world model with spatial-temporal fusion and a VQ-VAE, generating 40+ second driving videos with controllable ego trajectories.

## Details

- Model id: `yvanyin/drivingworld`
- Provider: HKUST / Horizon (YvanYin)
- Type: World model · Action-conditioned video prediction
- Parameters: 1B
- Output: Autoregressive driving video plus ego pose (video GPT)
- Embodiments: Autonomous vehicle
- Endpoint: `POST /v1/predict`
- Price: $0.20 per clip
- Checkpoint served: `huxiaotaostasy/DrivingWorld`
- License: MIT (weights and code); trained from scratch
- Released: December 2024
- Status: Live
- Paper or model card: https://arxiv.org/abs/2412.19505

## Inputs

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

- `frames` (required): The context clip, oldest first, 1/fps apart: at least 15 frames.
- `driving` (optional): Ego motion for the generated frames: {trajectory | speed | command}.
- Notes: Video: 512×256 by default, 10 frames by default, at most 40 frames, 5 fps (models.json config).

## Call DrivingWorld

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": "yvanyin/drivingworld",
    "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], "…"],
    "frames": "<…>",  # The context clip, oldest first, 1/fps apart: at least 15 frames.
  },
).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: "yvanyin/drivingworld",
    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], "…"],
    frames: "<…>",  // The context clip, oldest first, 1/fps apart: at least 15 frames.
  }),
}).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":"yvanyin/drivingworld","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],"…"],"frames":"<…>"}'
```

## Guides about DrivingWorld

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

## DrivingWorld FAQ

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

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

### How much does the DrivingWorld API cost?

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

### What license does DrivingWorld use?

The weights we serve (huxiaotaostasy/DrivingWorld) are released under MIT (weights and code); trained from scratch. Check the license for your use case.

### Is DrivingWorld open source?

DrivingWorld's weights are publicly available under MIT (weights and code); trained from scratch. 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
- [Vista](https://www.openrobotics.dev/models/opendrivelab/vista.md): `opendrivelab/vista`, $0.15 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
