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.
A world model predicts how an environment might evolve from observations, sometimes conditioned on actions. In robotics, that prediction can support policy evaluation, synthetic data generation or planning. It is not a physics guarantee: a plausible video can violate contact mechanics, and a small latent prediction error does not prove that a robot action is safe.
Choose by the output and conditioning you actually need. A video model produces pixels for inspection or downstream processing. A latent model predicts learned features for scoring or planning. An action-conditioned model must understand the particular action representation you supply; describing an arm movement in a prompt is not equivalent to applying a calibrated robot command.
This guide separates those research capabilities from OpenRobotics' implemented /v1/predict contract, checked on December 1, 2026. Its worked example is entirely synthetic and offline: it validates result handling and time indexing, not model quality or live service availability.
How a world model works
An observation is incomplete. A camera sees an object's surface, not its mass, friction or hidden contact state. A learned world model compresses observations into an internal representation and predicts a distribution or estimate of what comes next. Training teaches regularities from recorded transitions; it does not automatically identify every causal variable.
The original World Models paper demonstrated learning compressed spatial and temporal representations, then training a policy inside a model-generated environment. Modern systems scale the representation, training data and conditioning, but retain the distinction between the model that predicts consequences and the policy that chooses actions.
A useful conceptual loop is observation → representation → predicted future → score. A planner compares candidate futures against a goal, selects an action sequence, executes only an appropriate portion, and observes again. Replanning limits open-loop drift; it does not eliminate model bias. For the separate observation-to-action component, see VLA models explained; for where both sit in a robot's model stack, see physical AI explained.
How is a world model different from an LLM?
An LLM typically predicts text tokens and can describe physical events or propose plans in language. A robotics world model predicts an environment representation, such as future camera frames or learned visual features, optionally under numerical actions. The distinction is the prediction target and conditioning, not a claim that language models know nothing about physics. A verbal plan still needs grounding in observations, action conventions and outcome evaluation before it can control a robot. Conversely, a video predictor does not automatically understand a language instruction or produce executable commands.
Video predictions versus latent predictions
| Property | Video world model | Latent world model |
|---|---|---|
| Output | Generated frames, often encoded as MP4 | Learned feature vectors or feature maps |
| Human inspection | Watch the imagined scene | Inspect scores or use a separate visualization |
| Typical evaluation | Temporal consistency, task outcomes, action response | Feature prediction errors and downstream task success |
| Main integration risk | Visual plausibility mistaken for physical correctness | Feature distance mistaken for calibrated probability |
Video generation is useful when the next consumer expects images: a visual policy, a data inspection tool or a human reviewer. The Cosmos world foundation model paper describes a platform built around video models and supporting data and tokenization infrastructure. A family name alone does not specify whether an individual checkpoint supports text, control images, robot actions or camera motion. The NVIDIA Cosmos guide discusses that family separately, and Cosmos Predict 2.5 is one of its video checkpoints.
Latent prediction avoids requiring a pixel reconstruction at the public interface. V-JEPA 2 learns video representations through feature prediction, then adds an action-conditioned stage, V-JEPA 2-AC, for robot planning. The paper's robot experiments are evidence for its tested setup, not evidence that an arbitrary robot's commands can be inserted unchanged.
There is also a difference between a research feature map and an API summary. OpenRobotics' latent result contains one spatially averaged vector per predicted step. Internal scoring may use richer token-level representations. You cannot generally reproduce an adapter's surprise by subtracting the returned averaged vectors: averaging before taking absolute differences loses information.
Conditioning determines what you can test
Text conditioning asks for a plausible described future. Action conditioning asks for a future under a numerical input sequence. Camera conditioning changes viewpoint and is not the same as commanding an end effector. Control clips, such as depth or edge images, constrain video appearance but are not automatically a robot dynamics interface.
For policy evaluation, hold the initial observation and evaluation procedure fixed, then compare actions supported by the same checkpoint. If the world model ignores or misinterprets an action channel, policy ranking can reflect visual priors instead of consequences. Test interventions explicitly: reverse a movement, change its magnitude, and check whether the predicted outcome changes coherently.
For synthetic training data, preserve provenance. Record the generator, conditioning, seed, filtering rules and any process used to infer actions from video. A generated demonstration with invented or misaligned action labels can teach a policy the wrong transition even when the video looks convincing.
For planning, separate the model cost from physical constraints. A goal-image distance can reward an image that resembles success while ignoring grip force, collisions or an unseen obstruction. Independent sensing, controller limits and a validated safety system remain necessary.
The actual asynchronous prediction contract
OpenRobotics implements prediction as a job task. POST /v1/predict accepts a request and returns HTTP 202 with a job object; it does not return a completed rollout synchronously. Read the job through GET /v1/jobs/:id, authenticating with the same bearer API key that submitted it. Public states are queued, running, succeeded and failed. Read result only after success and inspect error on failure. Use a bounded polling policy with backoff and an application deadline, rather than an unlimited tight loop.
The job envelope includes id, task, model, status, progress, created_at, started_at, finished_at, result, error and usage. Creation, start and finish timestamps describe server job lifecycle events. They are not camera capture timestamps. Successful usage includes latency_ms, which is a recorded job duration, not a promise about future requests or the duration of the predicted scene.
The shared schema is broader than each model's supported inputs:
- Video-prediction models require a nonempty prompt. The gateway rejects latent-specific inputs such as
future,states,actionsandgoal_imagefor this task class. - Latent-prediction models require
imageorframes, reject a prompt and reject control clips. Individual workers impose further conditions. - Action-conditioned video models require observations and reject
future,goal_imageandcontrol. They generate pixels rather than the latent scoring output.
Send either one image or a list of frames, not both. Context and observed-future frame lists are oldest first, with 1–32 images each at the gateway. The gateway limits the combined image strings, including applicable goal and control images, to 6 MiB of base64 characters. That is not the same as 6 MiB of decoded pixels. The prediction API reference is the request-field reference; checkpoint-specific validation can be stricter.
For example, the masked V-JEPA worker refuses robot states and actions because it is not action-conditioned. The V-JEPA 2-AC path requires one state row per context frame and action rows beginning with the transitions between context frames, followed by the transitions to predict. Its rows contain the configured state width, described as xyz, Euler xyz and gripper. Array length alone does not establish compatible units, frame conventions, rotation order or gripper semantics. Match those to the checkpoint and training pipeline before supplying real data.
Reading video and latent results correctly
For video, the worker returns base64 MP4 data with content_type, width, height, frames and fps. The gateway stores the MP4 and exposes result.video.url, retaining the metadata and adding bytes. Public clients consume the file URL; they should not expect the worker's inline data field. The URL is not public or presigned: downloading it also requires the submitting bearer API key. Another key cannot read the job or its files. Files are retained for seven days after completion; see the job-file reference. Do not place bearer keys in URLs or expose them in a browser video element.
Width and height are pixels, frame count is an integer, and fps is frames per second. A constant-rate clip with 24 frames at 12 fps has a playback duration of 2 seconds, although its first-to-last frame timestamp span is 23/12 seconds. Neither quantity measures inference execution time.
For latent output, result.latents contains dim, steps and frames_per_step. Conceptually, steps has shape [S, D]: S predicted steps, D dimensionless feature coordinates. Validate every row against dim, not merely the first. In the masked V-JEPA path, frames_per_step is the encoder tubelet size. Other adapters can report 1 while advancing through action blocks with a separate frameskip convention. It is not a universal timestamp stride: converting steps into seconds requires the specific adapter's sampling semantics and source timing.
Optional surprise scores compare predictions with supplied observed future representations. Optional energy scores compare against a goal representation. A plan may contain actions and a final cost. These are model-space quantities, not joules, probabilities or calibrated collision risks. Planner costs can differ between adapters, so do not compare numbers across checkpoints as though they share a universal scale.
Offline Python example: validate a job and align steps
This standard-library example uses a synthetic fixture, not live inference. Assume the last context frame is at 1,000 milliseconds and subsequent sampled frames arrive at 20 fps. Each predicted step covers two future frames; the labels below use the end of each two-frame group. This is an explicit local convention, not a timestamp field returned by the API.
Save this as world_model_fixture.py and run python3 world_model_fixture.py:
import math
job = {
"status": "succeeded",
"result": {
"latents": {
"dim": 3,
"steps": [[0.2, 0.4, 0.6], [0.3, 0.5, 0.7]],
"frames_per_step": 2,
},
"surprise": [0.15, 0.25],
},
}
def summarize(job, fps, last_context_ms):
if job["status"] != "succeeded":
raise ValueError("prediction is not complete")
if not math.isfinite(fps) or fps <= 0:
raise ValueError("fps must be positive")
result = job["result"]
latent = result["latents"]
dim = latent["dim"]
stride = latent["frames_per_step"]
rows = latent["steps"]
if type(dim) is not int or dim < 1:
raise ValueError("invalid dim")
if type(stride) is not int or stride < 1 or not rows:
raise ValueError("invalid steps")
if any(len(row) != dim or
not all(math.isfinite(x) for x in row) for row in rows):
raise ValueError("invalid latent row")
scores = result["surprise"]
if len(scores) != len(rows) or not all(map(math.isfinite, scores)):
raise ValueError("invalid surprise")
times = [last_context_ms + (i + 1) * stride * 1000 / fps
for i in range(len(rows))]
return times, sum(scores) / len(scores)
times, score = summarize(job, 20, 1000)
assert times == [1100.0, 1200.0]
assert math.isclose(score, 0.2)
try:
summarize({"status": "running"}, 20, 1000)
except ValueError:
print("unfinished job rejected")
else:
raise AssertionError("unfinished job accepted")
print("step_end_ms:", times)
print(f"mean_surprise: {score:.3f} (dimensionless)")
Expected output:
unfinished job rejected
step_end_ms: [1100.0, 1200.0]
mean_surprise: 0.200 (dimensionless)
The arithmetic verifies alignment and aggregation only. It deliberately consumes supplied surprise values instead of claiming to reconstruct token-level scores from pooled features. If frames were irregularly sampled or duplicated by preprocessing, store their actual capture times and the resampling map beside the request rather than inventing a uniform time axis.
Debugging and evaluation limits
Start with input errors before changing the model. A prompt sent to a latent model, simultaneous image and frames, a future clip without context or mismatched frame sizes can fail validation. A syntactically valid shared request can still fail the worker's checkpoint-specific requirements. Keep the job ID and sanitized request metadata so these failures can be distinguished from execution failures.
Next inspect alignment. Reversed frame order, a one-step action offset, inconsistent crops or a camera change can look like poor dynamics learning. Separate context-transition actions from future actions and document which observation each action precedes. Do not use the server's created_at timestamp to repair missing sensor timestamps.
Finally evaluate held-out episodes, not a single attractive rollout. Measure errors by prediction horizon and relevant task slice: occlusion, contact, lighting changes, unfamiliar objects and unusual actions. Compare policy rankings with real or independently validated outcomes before trusting model-based selection. A predictor that ranks familiar actions well may fail precisely where a planner searches for novel shortcuts.
FAQ
What is a world model in AI?
A world model is a model that predicts how an environment might evolve from observations, sometimes conditioned on actions. It compresses observations into an internal representation and predicts what comes next, as future video frames or learned features. In robotics, those predictions support policy evaluation, synthetic data generation and planning.
How is a world model different from an LLM?
An LLM typically predicts text tokens. A robotics world model predicts an environment representation, such as future camera frames or learned visual features, optionally under numerical robot actions. The difference is the prediction target and the conditioning.
What are examples of world models for robotics?
NVIDIA's Cosmos family is built around video world models that generate the frames that follow a prompt, image or clip. Meta's V-JEPA 2 is a latent world model that predicts features instead of pixels, and V-JEPA 2-AC adds action conditioning for robot planning.
Is a world model a simulator?
It can act as a learned environment surrogate, but it does not inherit a simulator's explicit mechanics or constraints. Validate the behaviors needed for your application rather than assuming visual realism means physical accuracy.
Does a latent prediction endpoint return video?
Not necessarily. The public result supports video or latent outputs. A latent model returns numerical representations; reconstructing a video would require an appropriate decoder that this result does not provide.
Can a low energy score authorize robot motion?
No. It is a representation-space objective, not a safety certificate. Keep motion authorization and physical safety checks outside the learned score.
Does a catalog entry prove a model is running now?
No. Catalog metadata and repository implementation describe intended routing and contracts, not a measured availability result. This guide made no production request and establishes no serving latency or hardware requirement.
Try V-JEPA 2-AC in one API call
VLAs, world models, vision encoders and perception models behind one key and one request format. No GPUs to manage, priced per call.