Skip to main content
GET
Get generation

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Path Parameters

generation_id
string
required

The generation, from create_generation.

Response

OK

created_at
string
required

RFC 3339.

error
string | null
required

Why it failed.

id
string
required

gen_….

inputs
object[]
required

The assets it was given.

model
string
required

The model it uses, author/model.

output
string
required

Where its files are saved.

outputs
object[]
required

The assets it made, once it has succeeded.

params
any
required

The model's parameters it was given, as the model's params schema describes them.

project_id
string
required

The project its assets go in.

prompt
string | null
required

The prompt it was given, when it was given one.

provider
string | null
required

The provider that served it, once one has.

status
string
required

running, succeeded, failed or cancelled.

updated_at
string
required

RFC 3339: when its status last changed.

usage
object | null
required

What the provider reported using, once it has succeeded, or once a cancelled one's task has ended (none used when the provider stopped it in time).