Create a new segmentation job
Changed onCreate intelligent segments for video or audio files based on shot detection or narrative analysis.
Audio File Support:
- Audio files support narrative criteria only (shot detection is not available for audio).
- Audio files default to the 'balanced' strategy and may opt into 'transcript'.
Note: YouTube URLs and audio files are supported for narrative-based segmentation only. Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.
Narrative Segmentation Strategies:
- comprehensive (default for non-YouTube/non-audio files): Uses a VLM to deeply analyze logical segments of video. Only available for video files (not YouTube or audio).
- balanced (default for YouTube videos and audio files): Balanced analysis approach using multiple modalities. Supports YouTube URLs and audio files.
- transcript: Cheap and fast speech-transcript-based segmentation. Requires a transcript and returns an error when none is available — use balanced for silent or visual-only content (or comprehensive for non-YouTube/non-audio video files).
YouTube URLs and Audio Files: Only the 'balanced' and 'transcript' strategies are accepted. 'comprehensive' will be rejected with an error.
Chapter Count Parameters:
- number_of_chapters: Target number of chapters. If only this is provided, min_chapters and max_chapters are calculated automatically.
- min_chapters: Minimum number of chapters. If provided with number_of_chapters and max, validates min is less than or equal to number_of_chapters which is less than or equal to max.
- max_chapters: Maximum number of chapters. If provided with number_of_chapters and min, validates min is less than or equal to number_of_chapters which is less than or equal to max.
- If none are provided, chapter counts are calculated automatically based on file duration.
Request
- Base URLhttps://api.cloudglue.dev/v1
- AuthHTTP bearer
Request body
Response
Successful response
Changes
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
the
/response property's min was decreased from1.00to0.60for the response status - breaking
the
/response's property type changed fromintegertonumberfor status - breaking
the
/response's property type changed fromintegertonumberfor status - info
the
/request property's min was decreased from1.00to0.60 - info
the
/request property type was generalized fromintegertonumber - info
the
/request property type was generalized fromintegertonumber
- breaking