Video Piper APIv1 Home OpenAPI spec

Docs › Concepts

Concepts

Video lifecycle

UPLOADING→ complete →RUNNING→SUCCEEDEDorFAILED/TIMED_OUT/ABORTED
StatusMeaning
UPLOADINGCreated; waiting for parts and complete.
READY_TO_STARTUpload finished but processing didn't start; call complete again.
RUNNINGProcessing. progress shows the stages.
SUCCEEDEDDone. downloadUrl is present.
FAILED / TIMED_OUTProcessing failed. Check the file plays elsewhere, then upload again or reprocess.
ABORTEDCancelled.

If processing fails

A video is never half done. Processing runs as a few jobs: planning, audio, the picture in two-minute chunks, then packaging. A job that crashes, loses its machine or runs out of time is retried once by itself, and the retry carries on from the work that finished: a chunk is recorded only once it is complete, so nothing partial is ever used. Playback and download links appear only after every part has been checked and packaged, so the result is either a whole SUCCEEDED video or FAILED / TIMED_OUT with a video.failed webhook, and a failed video is not billed. Problems with the file itself (it can't be read, has no duration, uses something unsupported) are not retried: they fail at once. A video may take at most 24 hours in all. Nothing restarts by itself after that; reprocess runs it again from the same upload without uploading again.

Priority processing

Paid plans get priority. Videos from paid plans are scheduled ahead of free-tier videos when capacity is contended, so paid customers never wait behind a free-tier backlog. Plan changes take effect within ~60 seconds.

Conventions

  • IDs: videoId is 32 lowercase hex characters.
  • Times are seconds (decimals allowed). An end of null means "to the end".
  • Positions on screen (x, y, w, h) are fractions of the frame from 0 to 1, so they work at every quality level.
  • Strict input: unknown fields are refused with 400 INVALID_REQUEST, so a typo can't be silently ignored.
  • Results: each finished video has an MP4 (H.264/AAC, with fast start for streaming playback).