embed
모든 영상,하나의 벡터로.
벡터화하고, 확장하세요.
이미지, 텍스트, 오디오를 포함한 풍부한 영상 데이터를 하나의 멀티모달 벡터로 변환해
시맨틱 검색, 추천 시스템, 이상 탐지 등 새로운 가능성을 간편하게 실현합니다.
Python
Node.js
1import requests
2
3# Step 2: Define the API URL and the specific endpoint
4API_URL = "https://api.twelvelabs.io/v1.3"
5INDEXES_URL = f"{API_URL}/indexes"
6
7# Step 3: Create the necessary headers for authentication
8headers = {
9 "x-api-key": "<YOUR_API_KEY>"
10}
11
12# Step 4: Prepare the data payload for your API request
13INDEX_NAME = "<YOUR_INDEX_NAME>"
14data = {
15 "models": [
16 {
17 "model_name": "marengo3.0",
18 "model_options": ["visual", "audio"]
19 }
20 ]
21}






