Skip to main content
POST
Get frame

Authorizations

Authorization
string
header
required

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

Path Parameters

document_id
string
required

Body

application/json
time
number<double>
required

The moment to show, in seconds from the start. It shows the frame the moment falls in, and a moment past the end shows the last frame.

alias
string

An alias, such as latest; latest when neither this nor version is given.

format
enum<string> | null

jpg (the default), png or webp.

Available options:
jpg,
png,
webp
height
integer<uint32> | null

The image's height in pixels.

Required range: x >= 0
version
integer<uint64>

A version, by number.

Required range: x >= 0
width
integer<uint32> | null

The image's width in pixels; the video's when neither width nor height is given. With only one of them, the other follows the video's aspect ratio; with both, the image is the largest that fits in them.

Required range: x >= 0

Response

OK

asset
string
required

The asset it's saved as, in the workspace's renders/ folder.

expires_at
string
required

RFC 3339.

format
enum<string>
required

How an image is encoded.

Available options:
jpg,
png,
webp
height
integer<uint32>
required

The image's height, in pixels.

Required range: x >= 0
time
number<double>
required

When the frame it shows starts, in seconds.

url
string
required

The image, signed: it downloads without an API key until expires_at.

version
integer<uint64>
required

The version it shows.

Required range: x >= 0
width
integer<uint32>
required

The image's width, in pixels.

Required range: x >= 0