# Cosmos Predict 1 API

> The first Cosmos world foundation model platform, released with video tokenizers, a curation pipeline and post-training examples for robotics and driving.

## Details

- Model id: `nvidia/cosmos-predict-1`
- Provider: NVIDIA
- Type: World model · Video prediction
- Output: Diffusion and autoregressive future video prediction
- Embodiments: Any (video), Single arm, Autonomous vehicle
- Endpoint: `POST /v1/predict`
- Price: $0.80 per clip
- Checkpoint served: `nvidia/Cosmos-1.0-Diffusion-7B-Video2World`
- License: NVIDIA Open Model License
- Released: January 2025
- Status: Live
- Paper or model card: https://arxiv.org/abs/2501.03575

## Inputs

What a request to Cosmos Predict 1 needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/nvidia/cosmos-predict-1` as `inputs`).

- `prompt` (required): What should happen in the video.
- `image` (optional): The first frame.
- `frames` (optional): A clip to continue, oldest first (at least 9 frames).
- Notes: Send one of image or frames (no text-only generation). Video: 960×704 by default, 121 frames by default, at most 121 frames, clips of 8k + 1 frames, a context clip needs at least 9 frames, 24 fps (models.json config).

## Call Cosmos Predict 1

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

## Guides about Cosmos Predict 1

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

## Cosmos Predict 1 FAQ

### How do I run Cosmos Predict 1 without my own GPU?

Call POST /v1/predict on the OpenRobotics API with "model": "nvidia/cosmos-predict-1". We run Cosmos Predict 1 on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the Cosmos Predict 1 API cost?

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

### What license does Cosmos Predict 1 use?

The weights we serve (nvidia/Cosmos-1.0-Diffusion-7B-Video2World) are released under NVIDIA Open Model License. Check the license for your use case.

### Is Cosmos Predict 1 open source?

Cosmos Predict 1's weights are publicly available under NVIDIA Open Model License. OpenRobotics serves them behind an API so you can use the model without hosting it.

## Similar models

- [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
- [RoboTransfer](https://www.openrobotics.dev/models/horizonrobotics/robotransfer.md): `horizonrobotics/robotransfer`, $0.30 per clip
- [Cosmos Predict 2](https://www.openrobotics.dev/models/nvidia/cosmos-predict-2.md): `nvidia/cosmos-predict-2`, $0.40 per clip
- [Cosmos 3](https://www.openrobotics.dev/models/nvidia/cosmos-3.md): `nvidia/cosmos-3`, $0.60 per clip
