curl --request POST \
--url https://api.cloudglue.dev/v1/collections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"collection_type": "entities",
"name": "<string>",
"description": "<string>",
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": false,
"enable_visual_scene_description": false
},
"default_segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 31,
"hop_seconds": 30.5
},
"shot_detector_config": {
"threshold": 1,
"min_seconds": 31,
"max_seconds": 31,
"detector": "adaptive"
},
"start_time_seconds": 1,
"end_time_seconds": 1
}
}'
{
"id": "<string>",
"object": "collection",
"name": "<string>",
"description": "<string>",
"collection_type": "entities",
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": false,
"enable_visual_scene_description": false
},
"default_segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 31,
"hop_seconds": 30.5
},
"shot_detector_config": {
"threshold": 1,
"min_seconds": 31,
"max_seconds": 31,
"detector": "adaptive"
},
"start_time_seconds": 1,
"end_time_seconds": 1
},
"created_at": 123,
"file_count": 123
}
Create a new collection to organize and process video files. Collections are used to group files together and process them in a consistent way.
curl --request POST \
--url https://api.cloudglue.dev/v1/collections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"collection_type": "entities",
"name": "<string>",
"description": "<string>",
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": false,
"enable_visual_scene_description": false
},
"default_segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 31,
"hop_seconds": 30.5
},
"shot_detector_config": {
"threshold": 1,
"min_seconds": 31,
"max_seconds": 31,
"detector": "adaptive"
},
"start_time_seconds": 1,
"end_time_seconds": 1
}
}'
{
"id": "<string>",
"object": "collection",
"name": "<string>",
"description": "<string>",
"collection_type": "entities",
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": false,
"enable_visual_scene_description": false
},
"default_segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 31,
"hop_seconds": 30.5
},
"shot_detector_config": {
"threshold": 1,
"min_seconds": 31,
"max_seconds": 31,
"detector": "adaptive"
},
"start_time_seconds": 1,
"end_time_seconds": 1
},
"created_at": 123,
"file_count": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Collection creation parameters
The body is of type object
.
Successful collection creation
The response is of type object
.