World models

Create a prediction job

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

View as Markdown
POST/v1/predict

Poll Get a job every few seconds until status is "succeeded" or "failed", then download the video. 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

Request body

JSON, with Content-Type: application/json.

  • modelstringrequired

    The world model to run, e.g. nvidia/cosmos-predict-2.5. The live models for this endpoint are listed below.

  • promptstring

    What should happen, up to 4,000 characters. Required by video prediction models; latent models take none.

  • imagestring

    A first frame to continue from. Send image or frames, not both.

  • framesstring[]

    A clip to continue, 1–32 frames, oldest first.

  • futurestring[]

    Latent models: the observed continuation of frames (1–32 frames), scored against the prediction as surprise.

  • goal_imagestring

    Latent models: a goal observation. Rollouts get an energy per step; planners return a plan toward it.

  • statesnumber[][]

    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.

  • actionsnumber[][]

    Action-conditioned models: the actions to imagine, one row per step. 1–64 rows of up to 64 numbers.

  • drivingobject

    Driving models (Vista): the car's actions, any subset.

    Show 5 child attributes
    • commandstring

      "right", "left", "forward" or "stop".

    • trajectorynumber[][]

      Future waypoints [x, y] in meters (x forward, y left), up to 16.

    • speednumber[]

      Future speeds in km/h, up to 16.

    • steeringnumber[]

      Future steering-wheel angles in degrees, up to 16.

    • goalnumber[2]

      Where to go: [x, y] as fractions (0–1) of the frame's width and height.

  • controlobject

    Video models that follow a control clip (Cosmos Transfer).

    Show 3 child attributes
    • kindstringrequired

      "edge", "depth", "segmentation", "blur" or "normal".

    • framesstring[]required

      The pre-computed control clip, 1–121 frames, oldest first. The video follows it frame by frame.

    • scalenumber

      How strongly it steers generation, 0–2. Default 1.

  • controlsobject[]

    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_framesstring[]

    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.

  • cameraobject

    Camera-controlled video models (LingBot-World, Yume): where the camera goes. Send poses or keys.

    Show 3 child attributes
    • posesnumber[][]

      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.

    • intrinsicsnumber[4]

      [fx, fy, cx, cy] in pixels of the input image. Default: per model.

    • keysstring[]

      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_framesinteger

    Frames to generate (video) or predict (latent), 1–121. Default and limits are per model.

  • widthinteger

    Video width in pixels, 64–1920, up to the model's size.

  • heightinteger

    Video height in pixels, 64–1920, up to the model's size.

  • seedinteger

    For reproducible output, 0 to 2³² − 1.

Response

  • idstring

    The job id. Also in the Location header.

  • objectstring

    "job".

  • taskstring

    "predict".

  • modelstring

    The model.

  • statusstring

    "queued" at first. See Get a job.

  • progressnumber

    0.

  • created_atstring

    ISO 8601 time.

  • started_atstring | null

    null until a GPU picks the job up.

  • finished_atstring | null

    null until the job ends.

  • resultobject | null

    null until the job succeeds. See Get a job.

  • errorobject | null

    null unless the job fails.

  • usageobject | 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: invalid input, keys, credits and cold starts. See Errors.

Models

25 live models for /predict. Each page has a ready-made request.

6 more are coming soon. See the models page.