Docs › Thumbnails
Thumbnails
When a video finishes, we save its automatic poster frame plus up to six more frames spread through the video. List them, then pick one, pick any moment of the video, or upload your own JPEG or PNG (up to 2 MB, base64-encoded), and crop it if you like. Your choice becomes posterUrl everywhere: status, listings and webhooks.
GET /videos/{id}/thumbnails
→ {"current": {"source": "auto"}, "candidates": [{"index": 0, "time": 6.0, "url": "https://…"}, {"index": 1, "time": 15.0, "url": "https://…"}, …]}
POST /videos/{id}/thumbnail {"candidate": 1}
POST /videos/{id}/thumbnail {"image": "<base64>", "contentType": "image/png"}
POST /videos/{id}/thumbnail {"time": 42.5}
POST /videos/{id}/thumbnail {"candidate": 1, "crop": {"x": 0.21875, "y": 0, "w": 0.5625, "h": 1}}
{"candidate": 0} goes back to the automatic frame. time is seconds into the video (under durationSeconds from the list). crop works with any of them: the part to keep, as fractions of the picture's width and height from its top-left corner (the example is the middle square of a 16:9 frame).
A frame or image without a crop applies at once (200). A time or a crop is made by a short job, usually within a minute: you get 202 with current.status: "processing", and GET /videos/{id}/thumbnails shows ready (or failed, with error) when it's done. Building your own picker? Crop in the browser and send {"image"} for an instant answer, or drop in the ready-made <video-piper-thumbnail>. Videos made before thumbnail choices existed have no candidates, but you can still pick a moment or upload your own image.