Trim Video Endpoint
PUT/v1/videos/{video_id}/trim
Crop an uploaded video by trimming time off the beginning and/or the end.
On a processed video this drops the cut-out portion's faces, speakers,
transcript, and facial/audio/text emotion data by re-analyzing only the
kept window (timestamps re-based to the new start). The video re-enters
processing; poll the status endpoint for completion.
Request
Responses
- 200
- 422
Successful Response
Request validation failed ({"detail": str} only), or processing_fps_over_budget: the video is too long to process at its frame rate. Nothing was charged. The body then also offers the frame rates that fit (recommended_processing_fps, fits_processing_fps) and each tier's longest video (duration_s, max_duration_by_fps), so the client can suggest a lower frame rate or a trim.