API reference

API reference · Account

One render plan with its shots

GET/api/studio/plans/{id}Signed in session

Shots whose job's poll is due are moved on first. A 404 while video and sound jobs are switched off. The signed in account.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe plan's id, spl_ followed by hex.

Answer 200

The plan.

Fields of the 200 answer
FieldTypeWhat it is
idstring
objectstringOne of "studio.plan".
project_idstring
statusstringOne of "running", "completed", "cancelled".
quote_microsintegerThe total the balance was checked against.
microsintegerSettled shots' charges plus running shots' holds.
countsobject
shotsarray of object
shots[].idstring
shots[].objectstringOne of "studio.shot".
shots[].indexinteger
shots[].titlestring or null
shots[].modelstring
shots[].statusstringOne of "waiting", "starting", "running", "completed", "failed", "cancelled".
shots[].microsintegerThe quote while it waits, the job's hold while it runs, the charge once done.
shots[].job_idstring or null
shots[].jobobject or nullThe shot's job, as /api/studio/jobs answers it.
shots[].errorobject or null
shots[].error.codestring
shots[].error.messagestring
shots[].created_atinteger
shots[].started_atinteger or null
shots[].finished_atinteger or null
created_atinteger
finished_atinteger or null

Errors

  • 401OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter