Skip to main content
POST
Cancel a generation

Authorizations

x-api-key
string
header
required

Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.

Path Parameters

id
string
required

The generation's ID, gen_....

Response

The generation, canceled, or as it was if it had already ended.

One run of a model or preset, with its status, its outputs and what it cost.

id
string
required

The generation's ID, gen_ and 24 letters and digits.

object
string
required
Allowed value: "generation"
model
string
required

The model or preset it runs, with a preset's version.

modality
enum<string>
required

What it makes: image, video, audio, 3d or text.

Available options:
image,
video,
audio,
3d,
text
status
enum<string>
required

queued, then running, then one of succeeded, failed or canceled. Only succeeded is charged.

Available options:
queued,
running,
succeeded,
failed,
canceled
provider
string | null
required

Which upstream ran it, once one did. Informational: the model ID and input stay the same whichever runs it.

revision
string
required

The model's schema and price revision the run used.

Pattern: ^\d{4}-\d{2}-\d{2}$
input
object
required

The input as it runs, with the defaults filled in.

output
object[]
required
error
object | null
required

Why a failed run failed, such as a refused prompt or a provider error; null otherwise. A failed run isn't charged.

usage
object
required

What the run cost your workspace.

source
enum<string> | null
required

Where it was started: api, mcp or studio.

Available options:
studio,
api,
mcp
batch_id
string | null
required

The batch it belongs to, bat_...; null if none.

created_at
string<date-time>
required

When it was created.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
started_at
string<date-time> | null
required

When it started running; null while queued.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
completed_at
string<date-time> | null
required

When it reached a final status; null before.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
preview
object

While a preset that makes a still first is running: that still, once it exists, before the video it becomes. Absent for every other run, and for a run whose video also reads words or a photo you sent, such as a line to say or a photo the clip starts from: that still comes with the video.

Last modified on October 4, 2026