# LeWorldModel (LeWM) API

> Stable end-to-end JEPA world model trained from pixels with only two loss terms (prediction plus SIGReg), giving fast latent planning (MPC/CEM) on PushT, Cube, TwoRoom and Reacher.

## Details

- Model id: `mila/leworldmodel`
- Provider: Mila / NYU / Brown (Balestriero, LeCun et al.)
- Type: World model · Latent prediction
- Parameters: 15M
- Output: Action-conditioned latent (embedding) prediction for planning
- Embodiments: Single arm
- Endpoint: `POST /v1/predict`
- Price: $0.0003 per clip
- Checkpoint served: `quentinll/lewm-pusht`
- License: MIT (weights; le-wm and stable-worldmodel code: MIT); trained from scratch, no pretrained base
- Released: March 2026
- Status: Live
- Paper or model card: https://arxiv.org/abs/2603.19312

## Inputs

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

- `frames` (required): Context frames (or one `image`).
- `actions` (optional): 2-value actions, one row per env step.
- `goal_image` (optional): A goal frame: with no actions, the response is a plan.

## Call LeWorldModel (LeWM)

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": "mila/leworldmodel",
    "frames": ["<base64 JPEG or PNG>", "<base64 JPEG or PNG>", "…"],
  },
).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: "mila/leworldmodel",
    frames: ["<base64 JPEG or PNG>", "<base64 JPEG or PNG>", "…"],
  }),
}).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":"mila/leworldmodel","frames":["<base64 JPEG or PNG>","<base64 JPEG or PNG>","…"]}'
```

## Guides about LeWorldModel (LeWM)

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

## LeWorldModel (LeWM) FAQ

### How do I run LeWorldModel (LeWM) without my own GPU?

Call POST /v1/predict on the OpenRobotics API with "model": "mila/leworldmodel". We run LeWorldModel (LeWM) on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the LeWorldModel (LeWM) API cost?

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

### What license does LeWorldModel (LeWM) use?

The weights we serve (quentinll/lewm-pusht) are released under MIT (weights; le-wm and stable-worldmodel code: MIT); trained from scratch, no pretrained base. Check the license for your use case.

### Is LeWorldModel (LeWM) open source?

LeWorldModel (LeWM)'s weights are publicly available under MIT (weights; le-wm and stable-worldmodel code: MIT); trained from scratch, no pretrained base. 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
- [DINO-WM](https://www.openrobotics.dev/models/nyu/dino-wm.md): `nyu/dino-wm`, $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
