Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
videoUrl
string<uri>
required

Public video URL, such as a YouTube link.

targetDuration
enum<string>
default:auto

Clip length: auto (up to 90s), under 30s, 30–60s, 60–90s, 90s–3min, or 3–5min.

Available options:
auto,
lt30,
30-60,
60-90,
90-3min,
gt3min
ratio
enum<string>
default:original
Available options:
9:16,
1:1,
4:5,
16:9,
original
limit
integer

Maximum number of clips.

Required range: 1 <= x <= 20
query
string

Describe the moments to find, e.g. funny reactions.

Maximum string length: 500
enableCaption
boolean
default:false
captionStyle
string

Caption preset when enableCaption is true, e.g. classic-yellow, bold-white, glow-pink, gaming-cyan.

sourceLang
string

Language spoken in the video.

targetLang
string

Language for the captions.

Response

Job queued

success
boolean
required
data
object
required
creditsDeducted
integer
creditsRemaining
integer