Skip to main content
POST
Create generation

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required

The model, from list_models, such as bytedance/seedance-2.5.

inputs
object[]

Assets the model takes as input, each with its role.

output
string | null

Where the files it makes are saved: an asset path such as launch/shot.mp4 (other files it makes go next to it, as launch/shot.last_frame.png), or a folder ending in /, where each file is named by its role, as launch/video.mp4. generations/<id>/ when absent.

overwrite
boolean
default:false

Replace assets already at those names. Without it, a name that's taken is refused with asset.name_taken; one taken while the generation runs gets its file saved in generations/<id>/ instead, and the generation says so in its error.

params
any

The model's params, as its schema in list_models describes them.

project_id
string | null

The project its files go in; the workspace's default project when absent.

prompt
string | null

What to make, for models that take a prompt.

provider
object | null

Which providers may serve it: order, only, ignore, allow_fallbacks, and options, each provider's own request fields.

Response

Accepted

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).