Guides

Picture to video

Bring your own first frame: a product photo, a character or an artwork becomes a video that keeps its look.

Uploading images or using public URLs

A picture video is a normal POST /v1/videos request with an image. The image can be:

  • A public https URL we can download, such as a CDN link to your product photo.
  • An upload id (upload_…) for files that are not public. Call POST /v1/uploads with the file's contentType and size, PUT the bytes to the uploadUrl it returns with exactly that Content-Type and Content-Length, then pass the id. The SDKs do both steps in one call: uploads.upload(file).

Pictures can be JPEG, PNG or WebP, up to 10 MB. The uploadUrl expires 15 minutes after you ask for it (expiresAt), so PUT the file straight away; the upload id itself keeps working for your requests.

Start frame, end frame and both

  • image alone: the video opens on your picture and the prompt says what happens next.
  • image and endImage: the video moves from the first picture to the second. Good for before-and-after shots, product reveals and transitions. Videos with an end frame are up to 15 seconds.

The prompt still matters: describe the motion and the camera ("the camera slowly pulls back as the lid opens"), not what is already in the picture.

Keeping the look of a product photo or a character

The first frame is your picture exactly, so colours, labels and faces start right. Keep the motion gentle and say what must stay the same ("the label stays facing the camera"). references are for films from text; when you want reference images or voices as well, make a film from text and put the picture in references.images instead.

Use a sharp picture at least as large as the resolution you ask for. A clean background helps the motion stay clean.

Shapes and lengths for picture videos

Picture videos take the same lengths (5 to 60 seconds, in steps of 5; up to 15 with an endImage), resolutions (480p, 720p, 1080p) and shapes (16:9, 9:16, 1:1, 21:9, 4:3, 3:4) as films, and cost the same, from $0.06 a second: see film prices. Pick the aspectRatio that matches your picture.