World models

Get a job

Check a job's status and, once it succeeds, get its result.

View as Markdown
GET/v1/jobs/{id}

Poll every few seconds. A key sees only its own jobs.

Authorization

Path parameters

Response

  • idstring

    The job id.

  • objectstring

    "job".

  • taskstring

    "predict".

  • modelstring

    The model.

  • statusstring

    "queued", "running", "succeeded" or "failed".

  • progressnumber

    From 0 to 1 while it runs.

  • created_atstring

    ISO 8601 time.

  • started_atstring | null

    When a GPU started it.

  • finished_atstring | null

    When it succeeded or failed.

  • resultobject | null

    Once it succeeds.

    Show 6 child attributes
    • videoobject

      Video models: { url, content_type, bytes, width, height, frames, fps }. Download url with the same key; it's kept for 7 days.

    • seedinteger

      Video models: the random seed the video was generated with.

    • latentsobject

      Latent models: { dim, steps, frames_per_step }, where steps has one vector per predicted step, oldest first.

    • surprisenumber[]

      Latent models given future: per step, the mean L1 distance between predicted and observed latents.

    • energynumber[]

      Latent models given goal_image: per step, the mean L1 distance to the goal's latent.

    • planobject

      Planners given a goal and no future actions: { actions, energy }, the planned actions (one row per step) and the predicted distance to the goal after them.

  • errorobject | null

    If it failed: { code, message }. See the failure codes below.

  • usageobject | null

    Once it succeeds: { cost_usd, latency_ms }.

A failed job is never billed. Its error.code says why:

Code Why
400 The model refused the input (for example, its safety checker refused the prompt), or the model is no longer served
402 Credit ran out before the job finished; the result is discarded
403 The key that created the job was deleted or disabled
500 The job's request was lost on our side
502 The model failed, its GPU worker stopped twice, or its output was too large to keep
503 No GPU was free within 30 minutes

Errors

404

No job with this id for this key

Plus the errors every endpoint shares: invalid input, keys, credits and cold starts. See Errors.