---
title: Clip
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/typescript)

[Stream](https://developers.cloudflare.com/api/typescript/resources/stream)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Clip

##### [Clip videos given a start and end time](https://developers.cloudflare.com/api/typescript/resources/stream/subresources/clip/methods/create)

client.stream.clip.create(ClipCreateParams { account\_id, clippedFromVideoUID, endTimeSeconds, 11 more } params, RequestOptionsoptions?): [Video](https://developers.cloudflare.com/api/typescript/resources/stream#%28resource%29%20stream%20%3E%20%28model%29%20video%20%3E%20%28schema%29) { allowedOrigins, clippedFrom, created, 23 more } 

POST/accounts/{account\_id}/stream/clip

##### ModelsExpand Collapse 

Clip { allowedOrigins, clippedFromVideoUID, created, 12 more } 

allowedOrigins?: Array<[AllowedOrigins](https://developers.cloudflare.com/api/typescript/resources/stream#%28resource%29%20stream%20%3E%20%28model%29%20allowed%5Forigins%20%3E%20%28schema%29)\>

Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.

clippedFromVideoUID?: string

The unique video identifier (UID).

maxLength32

created?: string

The date and time the clip was created.

formatdate-time

creator?: string

A user-defined identifier for the media creator.

maxLength64

endTimeSeconds?: number

Specifies the end time for the video clip in seconds.

maxDurationSeconds?: number

The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of `-1` means the value is unknown.

maximum36000

minimum1

meta?: unknown

A user modifiable key-value store used to reference other systems of record for managing videos.

modified?: string

The date and time the live input was last modified.

formatdate-time

playback?: Playback { dash, hls } 

dash?: string

DASH Media Presentation Description for the video.

hls?: string

The HLS manifest for the video.

preview?: string

The video’s preview page URI. This field is omitted until encoding is complete.

formaturi

requireSignedURLs?: boolean

Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.

startTimeSeconds?: number

Specifies the start time for the video clip in seconds.

status?: "pendingupload" | "downloading" | "queued" | 4 more

Specifies the processing status for all quality levels for a video.

One of the following:

"pendingupload"

"downloading"

"queued"

"inprogress"

"ready"

"error"

"live-inprogress"

thumbnailTimestampPct?: number

The timestamp for a thumbnail image calculated as a percentage value of the video’s duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.

maximum1

minimum0

watermark?: Watermark { uid } 

uid?: string

The unique identifier for the watermark profile.

maxLength32