Get a job
Check a job's status and, once it succeeds, get its result.
Poll every few seconds. A key sees only its own jobs.
Authorization
AuthorizationheaderrequiredBearer sk-orb-v1-…, your API key, or a free test key (sk-orb-test-…; no account? get one withPOST /sandbox/keys).
Path parameters
idstringrequiredThe job id from Create a prediction job, e.g.
job_9f2c41d07a5e8b3c6d1e2f40.
Response
idstringThe job id.
objectstring"job".taskstring"predict".modelstringThe model.
statusstring"queued","running","succeeded"or"failed".progressnumberFrom 0 to 1 while it runs.
created_atstringISO 8601 time.
started_atstring | nullWhen a GPU started it.
finished_atstring | nullWhen it succeeded or failed.
resultobject | nullOnce it succeeds.
Show 6 child attributes
videoobjectVideo models:
{ url, content_type, bytes, width, height, frames, fps }. Downloadurlwith the same key; it's kept for 7 days.seedintegerVideo models: the random seed the video was generated with.
latentsobjectLatent models:
{ dim, steps, frames_per_step }, wherestepshas 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.planobjectPlanners 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 | nullIf it failed:
{ code, message }. See the failure codes below.usageobject | nullOnce 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.