Skip to content

Video Last Frame

POST
/api/video/last-frame
curl --request POST \
--url https://example.com/api/video/last-frame \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "prompt_id": "example", "video": "example" }'

Extract a clip’s final frame as an image, so the next shot can start where it ended.

Chaining shots this way is what turns separate clips into one continuous take: animate a start frame, take the last frame of the result, animate that. Without it a caller would have to download the video, run ffmpeg itself and upload the frame back, which a remote agent cannot do at all.

The frame is cataloged like an upload, so it appears in the gallery and can be passed straight back as image — or edited first, if the next shot needs a change that motion alone can’t make.

Media typeapplication/json
LastFrameRequest

Name the clip to take the last frame of, by job or by filename.

object
prompt_id
Any of:
string
video
Any of:
string
Examplegenerated
{
"prompt_id": "example",
"video": "example"
}

Successful Response

Media typeapplication/json
Response Video Last Frame Api Video Last Frame Post
object
key
additional properties
any
Examplegenerated
{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}