# Create a prediction job

> Ask a world model what happens next. Generation takes minutes, so the call answers `202` with a job right away.

`POST https://api.openrobotics.dev/v1/predict`

Poll [Get a job](https://www.openrobotics.dev/docs/api/get-job) every few seconds until `status` is `"succeeded"` or `"failed"`, then [download the video](https://www.openrobotics.dev/docs/api/get-job-file). A job is billed once, at the model's price per clip, and only if it succeeds. A key can have 8 jobs queued or running at once.

Which inputs a model takes depends on its task, shown on its model page:

- **Video prediction** (Cosmos Predict, Cosmos Transfer, LingBot-World, Yume, RoboTransfer): `prompt` is required, optionally with a first frame (`image`), a clip to continue (`frames`), a `control` clip to follow, or a `camera` path. RoboTransfer takes no prompt: it re-renders depth and normal clips (`controls`) in the look of a reference `image`.
- **Latent prediction** (V-JEPA 2): no prompt. Send `frames` or `image` and get `result.latents`. Add the observed `future` for a surprise score per step, or a `goal_image` for an energy per step. Action-conditioned models (V-JEPA 2-AC) also take `states` and `actions`; with a goal and no future actions they return a `plan`.
- **Action-conditioned video prediction** (Ctrl-World, Vista, AdaWorld): `frames` or `image` plus the actions to imagine: robot `states` and `actions`, a car's `driving` inputs, or a `reference_frames` clip whose motion is replayed from `image` (AdaWorld).

## Authorization

`Authorization: Bearer sk-orb-v1-…`, your [API key](https://www.openrobotics.dev/docs/authentication), or a free [test key](https://www.openrobotics.dev/docs/authentication#test-keys) (`sk-orb-test-…`; no account? get one with [`POST /sandbox/keys`](https://www.openrobotics.dev/docs/api/create-sandbox-key)).

## Request body

JSON, with `Content-Type: application/json`.

- `model` (string, required): The world model to run, e.g. `nvidia/cosmos-predict-2.5`. The live models for this endpoint are listed below.
- `prompt` (string): What should happen, up to 4,000 characters. Required by video prediction models; latent models take none.
- `image` (string): A first frame to continue from. Send `image` or `frames`, not both.
- `frames` (string[]): A clip to continue, 1–32 frames, oldest first.
- `future` (string[]): Latent models: the observed continuation of `frames` (1–32 frames), scored against the prediction as `surprise`.
- `goal_image` (string): Latent models: a goal observation. Rollouts get an `energy` per step; planners return a `plan` toward it.
- `states` (number[][]): Action-conditioned models: the robot state per context frame (e.g. end-effector position, rotation and gripper). 1–32 rows of up to 64 numbers.
- `actions` (number[][]): Action-conditioned models: the actions to imagine, one row per step. 1–64 rows of up to 64 numbers.
- `driving` (object): Driving models (Vista): the car's actions, any subset.
  - `command` (string): `"right"`, `"left"`, `"forward"` or `"stop"`.
  - `trajectory` (number[][]): Future waypoints `[x, y]` in meters (x forward, y left), up to 16.
  - `speed` (number[]): Future speeds in km/h, up to 16.
  - `steering` (number[]): Future steering-wheel angles in degrees, up to 16.
  - `goal` (number[2]): Where to go: `[x, y]` as fractions (0–1) of the frame's width and height.
- `control` (object): Video models that follow a control clip (Cosmos Transfer).
  - `kind` (string, required): `"edge"`, `"depth"`, `"segmentation"`, `"blur"` or `"normal"`.
  - `frames` (string[], required): The pre-computed control clip, 1–121 frames, oldest first. The video follows it frame by frame.
  - `scale` (number): How strongly it steers generation, 0–2. Default `1`.
- `controls` (object[]): Video models that follow several control clips at once, 1–4, one per kind, all the same length, each like `control`. RoboTransfer takes a `"depth"` clip (16-bit grayscale PNGs in millimetres) and a `"normal"` clip (surface normals as RGB), three camera views side by side.
- `reference_frames` (string[]): Action-transfer models (AdaWorld): a source clip, 2–32 frames, oldest first. The motion between each pair of its frames is replayed from `image`, so the video has as many frames as the clip.
- `camera` (object): Camera-controlled video models (LingBot-World, Yume): where the camera goes. Send `poses` or `keys`.
  - `poses` (number[][]): A camera-to-world 4×4 matrix per frame (16 numbers, row-major, OpenCV axes: x right, y down, z forward), 2–121 frames. The first is the input image's camera.
  - `intrinsics` (number[4]): `[fx, fy, cx, cy]` in pixels of the input image. Default: per model.
  - `keys` (string[]): The keys held at each frame, 1–121: `w` `a` `s` `d` move forward, left, back and right; `i` `j` `k` `l` look up, left, down and right; `""` for none.
- `num_frames` (integer): Frames to generate (video) or predict (latent), 1–121. Default and limits are per model.
- `width` (integer): Video width in pixels, 64–1920, up to the model's size.
- `height` (integer): Video height in pixels, 64–1920, up to the model's size.
- `seed` (integer): For reproducible output, 0 to 2³² − 1.

## Response

- `id` (string): The job id. Also in the `Location` header.
- `object` (string): `"job"`.
- `task` (string): `"predict"`.
- `model` (string): The model.
- `status` (string): `"queued"` at first. See [Get a job](https://www.openrobotics.dev/docs/api/get-job).
- `progress` (number): `0`.
- `created_at` (string): ISO 8601 time.
- `started_at` (string | null): `null` until a GPU picks the job up.
- `finished_at` (string | null): `null` until the job ends.
- `result` (object | null): `null` until the job succeeds. See [Get a job](https://www.openrobotics.dev/docs/api/get-job).
- `error` (object | null): `null` unless the job fails.
- `usage` (object | null): `null` until the job succeeds and is billed.

All images in a request (`image`, `frames`, `future`, `goal_image`, `reference_frames`, control frames) must total under 6 MB of base64. GPUs start on demand: after a quiet spell a job waits `queued` for a few minutes while one boots.

## Errors

- `400`: The model doesn't take an input you sent (the message says which), or a video model got no `prompt`
- `429`: This key already has 8 jobs queued or running
- `503`: No GPU workers serve this model right now

Plus the errors every endpoint shares: see [Errors](https://www.openrobotics.dev/docs/errors).

## Example request

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": "nvidia/cosmos-predict-2.5",
    "prompt": "The robot arm picks up the red block and places it in the bowl.",
    "image": "<base64 JPEG or PNG>",
  },
).json()
job = res                # 202: poll GET /v1/jobs/{job["id"]}
```

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: "nvidia/cosmos-predict-2.5",
    prompt: "The robot arm picks up the red block and places it in the bowl.",
    image: "<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":"nvidia/cosmos-predict-2.5","prompt":"The robot arm picks up the red block and places it in the bowl.","image":"<base64 JPEG or PNG>"}'
```

## Example response

```json
{
  "id": "job_9f2c41d07a5e8b3c6d1e2f40",
  "object": "job",
  "task": "predict",
  "model": "nvidia/cosmos-predict-2.5",
  "status": "queued",
  "progress": 0,
  "created_at": "2026-11-25T12:00:00.000Z",
  "started_at": null,
  "finished_at": null,
  "result": null,
  "error": null,
  "usage": null
}
```

## Models

25 live for `/predict`:

- [Cosmos 3](https://www.openrobotics.dev/models/nvidia/cosmos-3.md): `nvidia/cosmos-3`, $0.60 per clip
- [Cosmos Predict 2.5](https://www.openrobotics.dev/models/nvidia/cosmos-predict-2.5.md): `nvidia/cosmos-predict-2.5`, $1.50 per clip
- [Cosmos Predict 2](https://www.openrobotics.dev/models/nvidia/cosmos-predict-2.md): `nvidia/cosmos-predict-2`, $0.40 per clip
- [Cosmos Transfer 2.5](https://www.openrobotics.dev/models/nvidia/cosmos-transfer-2.5.md): `nvidia/cosmos-transfer-2.5`, $1.50 per clip
- [Cosmos Predict 1](https://www.openrobotics.dev/models/nvidia/cosmos-predict-1.md): `nvidia/cosmos-predict-1`, $0.80 per clip
- [DreamDojo](https://www.openrobotics.dev/models/nvidia/dreamdojo.md): `nvidia/dreamdojo`, $0.40 per clip
- [DreamGen (GR00T-Dreams)](https://www.openrobotics.dev/models/nvidia/dreamgen.md): `nvidia/dreamgen`, $1.50 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-AC](https://www.openrobotics.dev/models/meta/v-jepa-2-ac.md): `meta/v-jepa-2-ac`, $0.05 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
- [Ctrl-World](https://www.openrobotics.dev/models/stanford/ctrl-world.md): `stanford/ctrl-world`, $0.15 per clip
- [LingBot-World](https://www.openrobotics.dev/models/robbyant/lingbot-world.md): `robbyant/lingbot-world`, $1.50 per clip
- [GigaWorld-0](https://www.openrobotics.dev/models/gigaai/gigaworld-0.md): `gigaai/gigaworld-0`, $1.00 per clip
- [IRASim](https://www.openrobotics.dev/models/bytedance/irasim.md): `bytedance/irasim`, $0.25 per clip
- [Vista](https://www.openrobotics.dev/models/opendrivelab/vista.md): `opendrivelab/vista`, $0.15 per clip
- [LeWAM (JEPA world-action model)](https://www.openrobotics.dev/models/brown/lewam.md): `brown/lewam`, $0.0003 per clip
- [RoboTransfer](https://www.openrobotics.dev/models/horizonrobotics/robotransfer.md): `horizonrobotics/robotransfer`, $0.30 per clip
- [AdaWorld](https://www.openrobotics.dev/models/little-podi/adaworld.md): `little-podi/adaworld`, $0.05 per clip
- [LeWorldModel (LeWM)](https://www.openrobotics.dev/models/mila/leworldmodel.md): `mila/leworldmodel`, $0.0003 per clip
- [DINO-WM](https://www.openrobotics.dev/models/nyu/dino-wm.md): `nyu/dino-wm`, $0.0003 per clip
- [Matrix-Game 3.0](https://www.openrobotics.dev/models/skywork/matrix-game-3.md): `skywork/matrix-game-3`, $0.10 per clip
- [Yume 1.5](https://www.openrobotics.dev/models/stdstu12/yume-1.5.md): `stdstu12/yume-1.5`, $0.10 per clip
- [Vidar / Vidarc](https://www.openrobotics.dev/models/thu-ml/vidar.md): `thu-ml/vidar`, $0.15 per clip
- [Epona](https://www.openrobotics.dev/models/tsinghua/epona.md): `tsinghua/epona`, $0.60 per clip
- [DrivingWorld](https://www.openrobotics.dev/models/yvanyin/drivingworld.md): `yvanyin/drivingworld`, $0.20 per clip
