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.
Call LeWorldModel (LeWM)
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": "mila/leworldmodel", "frames": ["<base64 JPEG or PNG>", "<base64 JPEG or PNG>", "…"], },).json()job = res # poll GET /v1/jobs/{job["id"]} for result.latentsGPUs start on demand. If LeWorldModel (LeWM) 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 LeWorldModel (LeWM) needs in a request as served (quentinll/lewm-pusht), beyond the fields every /v1/predict call takes. The same spec is in inputs on GET /v1/models.
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.
Guides about LeWorldModel (LeWM)
- 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.
- 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.
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.
Run LeWorldModel (LeWM) with one API call
Create a key, send POST /v1/predict with "model": "mila/leworldmodel", and pay $0.0003 per clip.