Cut short clips out of a video
POST
http://localhost:4000/api/v1 /media/{id}/clips Answers the job; list a video's jobs and their clips with GET /media/{id}/clips. findMoments lets the model choose the clips from the transcript (the job's segments are empty until it has, then carry a title and reason); captions burns the spoken words into the picture; language (ISO 639-1, such as en) tells the transcription service what is spoken, auto lets it detect the language, and left out it is the language you chose for the interface, if any. Both need AI switched on for the workspace (403 otherwise) and a transcription service on the server: without one the job ends as unavailable and says why.
Parameters
idstring
path
required
Request body
application/json
segmentsobject[]
Show child parameters
startMsinteger
required
endMsinteger
required
secondsinteger
maxinteger
verticalboolean
findMomentsboolean
captionsboolean
languagestring
{
"segments": [
{
"startMs": 0,
"endMs": 0
}
],
"seconds": 60,
"max": 5,
"vertical": true,
"findMoments": false,
"captions": false,
"language": "string"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/media/{id}/clips" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"segments":[{"startMs":0,"endMs":0}],"seconds":60,"max":5,"vertical":true,"findMoments":false,"captions":false,"language":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated