Create Project
Generate clips from a video source
Required scope: clips.write
This method requires authentication
Start generating clips from a source. Restream's AI analyzes the source and
produces clips asynchronously — the response returns immediately. Poll
Project Details to retrieve clips as they become
available; generatingClipsNow indicates whether more are still being generated.
Each source has one clip project. The first call creates it; later calls
for the same source add clips to that project instead of starting a new one. What
gets processed depends on whether you pass selectedTimeRange:
- Without
selectedTimeRange— Restream clips the whole video. If it was already clipped this way, the request returns409ClipsInputAlreadyProcessedinstead of clipping again. That's a no-op, not a real failure, so a repeated call is harmless. To clip the whole video again from scratch, setforceReprocess: true. - With
selectedTimeRange— Restream clips only that span and adds the results to the project. Call again with a different range to clip another part of the same video.
The video must be at least 10 seconds long, whether you clip all of it or a
selectedTimeRange.
Request Body
singleClipMode:
By default Restream's AI scans the video, picks the most engaging moments, and
produces several clips. With singleClipMode: true it skips that step and turns
the video into a single clip as-is. Use selectedTimeRange to pick which part
becomes the clip, or omit it to use the whole video. The clip is capped at
10 minutes; anything longer fails with 400 InvalidBodyParams.
selectedTimeRange: