Cosmos Predict 2 API

Open Video2World and Text2Image world foundation models meant to be post-trained for robotics and AV. Now replaced by Predict 2.5 and Cosmos 3.

Live$0.40 per clipGet an API key

Call Cosmos Predict 2

Send one request with your API key. Generation runs as a job: the call answers 202 right away and you poll for the result. See the API reference for every field.

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",    "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

GPUs start on demand. If Cosmos Predict 2 hasn't been called for a while, the first request returns 503 with a Retry-After header while it boots (usually a few minutes, never billed).

Inputs

What Cosmos Predict 2 needs in a request as served (nvidia/Cosmos-Predict2-2B-Video2World), beyond the fields every /v1/predict call takes. The same spec is in inputs on GET /v1/models.

prompt
Required. What should happen in the video.
image
Optional. The first frame.
frames
Optional. A clip to continue, oldest first (at least 5 frames).
Notes
Send one of image or frames (no text-only generation). Video: 832×480 by default, 93 frames by default, at most 93 frames, a context clip needs at least 5 frames, 16 fps (models.json config).

Guides about Cosmos Predict 2

NVIDIA Cosmos explained: Predict, Transfer, Reason and Cosmos 3
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
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 2 FAQ

How do I run Cosmos Predict 2 without my own GPU?
Call POST /v1/predict on the OpenRobotics API with "model": "nvidia/cosmos-predict-2". We run Cosmos Predict 2 on cloud GPUs that start on demand, so there is nothing to install or host.
How much does the Cosmos Predict 2 API cost?
$0.40 per clip, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.
What license does Cosmos Predict 2 use?
The weights we serve (nvidia/Cosmos-Predict2-2B-Video2World) are released under NVIDIA Open Model License. Check the license for your use case.
Is Cosmos Predict 2 open source?
Cosmos Predict 2'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.

Run Cosmos Predict 2 with one API call

Create a key, send POST /v1/predict with "model": "nvidia/cosmos-predict-2", and pay $0.40 per clip.

Get an API keyRead the /v1/predict referenceBrowse world models