Indexes store and organize your video data, allowing you to group related videos. For example, you can create one index for all videos from a car race, then search for specific moments across all those videos in a single request.
When you create an index, configure which video understanding models process your videos and what modalities those models analyze.
Select one or both video understanding models based on your tasks:
For each model, specify which modalities you want the platform to analyze:
Create a new index by calling the client.indexes.create function with the following parameters:
name: A descriptive name for your indexmodels: Your model configurationThis example creates an index with the Marengo model for video search, processing both visual and audio content:
The response should look similar to the following one:
Note that the response contains, among other information, a field named id, representing the unique identifier of your new index. Store this value to reference your index in future operations.