Skip to content

Shorts from the library

Start a clip request on a video that is already imported.

Terminal window
curl -sS -X POST "$BRAIV_API_BASE/videos/$VIDEO_ID/shorts" \
-H "Authorization: Bearer $BRAIV_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"kind":"shorts","numClips":5,"minDuration":15,"maxDuration":45}'

Poll shorts_{shortsRequestId}. When it is ready, GET /shorts/{id} returns the outputs.