Cut short clips out of a video

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-mediajobs-clip"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/75b4e454-8f13-4266-97ec-86416e4b3ee8/social-card.svg?v=3e7ae33eec8b" alt="Cut short clips out of a video" width="600" height="315"></a>
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

id
string
path
required

Request body

application/json
segments
object[]
Show child parameters
startMs
integer
required
endMs
integer
required
seconds
integer
= 60
max
integer
= 5
vertical
boolean
= true
findMoments
boolean
= false
captions
boolean
= false
language
string
{
  "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