tutorials
Find a clip in a video you already stored, with Twelve Labs
A documentation route for natural-language, clip-level search on footage you already have: current official model names (Marengo 3.0 for search, not Marengo 3.5), the v1.3 index-and-search path, plan units, and Terms of Use training opt-out language. Example code was not executed, and no video was watched.

If the footage already exists — a product walkthrough, a support recording, a training session — the job is not to generate a new video. It is to ask a natural-language question and get back a timestamped clip. That is the official search path on Twelve Labs, documented in the Search quickstart for the Video Understanding Platform, and it is a different task from the published comparisons of generative tools such as Runway vs Luma Dream Machine vs Pika or the short-form versus long-form video stack.
This article follows the documented index-and-search route, including the model names that were current on the review day. It does not report a retrieval accuracy score, and it does not use, or claim to have watched, anyone’s video.
How this article was written
Twelve Labs docs, pricing pages, and the Terms of Use were opened first-hand on 10 November 2026 (Asia/Shanghai) and rechecked on official pages on 1 December 2026 (Asia/Shanghai). The default API docs version on both days was v1.3. No API key was created, no video was uploaded, and the example below was not executed. Use only media you have the rights to; do not send unauthorized films, television, or third-party YouTube copies.
Use the search model, not a neighboring one
Twelve Labs publishes more than one model family. For clip-level search, the official quickstart creates an index with marengo3.0 and the model options visual and audio. The Marengo 3.0 page says that model is available for search, indexing, and embeddings. It describes 512-dimensional embeddings, queries in 36 listed languages, a 500-token text limit for search queries and text embeddings, and video or audio up to four hours.
A later embedding model is easy to mix up with that search path. The 31 August 2026 release notes introduce Marengo 3.5 and state, explicitly, that Marengo 3.5 creates embeddings only. The live Marengo 3.5 page, rechecked on 1 December 2026, still says the /search endpoint does not support Marengo 3.5; to search content with the platform, enable Marengo 3.0 for your index, and to search Marengo 3.5 embeddings, query them in your own system. Marengo 3.5 also documents no duration limit for video and audio embeddings, whereas Marengo 3.0 supports up to four hours. If your job is clip search through POST /search, do not substitute marengo3.5 because the name is newer.
Pegasus is a different job: video analysis and text generation, not the clip-search index in the quickstart. Pegasus 1.2 was removed on 18 August 2026; requests that name it are rejected, and omitted model_name values default to Pegasus 1.5 for analysis. Pegasus 1.6 was introduced on 6 October 2026 for analysis features such as egocentric video and image analysis. Those analysis endpoints can sit beside a search index. They are not a substitute for Marengo search when you need start and end times of a matching clip.
The official path: index first, then search
The Search quickstart (v1.3) is a linear path:
- Create a client with an API key.
- Create an index (a container for videos) with
marengo3.0and the modalities you need. - Create an asset by uploading a video, either from a URL or as a local file.
- Poll the asset until its status is
ready(or handlefailed). - Add the asset to the index (
indexed_assets.create). - Poll the indexed asset until its status is
ready. - Call
search.querywith theindex_id, aquery_text, andsearch_options. - Read each hit’s video identifier, rank, and start–end times.
Uploads have official limits on that page: public video URLs up to 4 GB, or local videos up to 200 MB (local files up to 4 GB are documented on the upload-and-processing-methods page). Use a direct link to a raw media file. Video hosting platforms and cloud-storage sharing links are not supported. Marengo 3.0’s own input table adds a duration window of 4 seconds to 4 hours, a file-size cap of 4 GB, a resolution range of 360×360 to 5184×2160, and aspect-ratio bounds, with FFmpeg-supported formats.
The example below is copied in structure from that official Python quickstart. Placeholders are in angle brackets. It was not run for this article.
# Example from the official Twelve Labs Search quickstart (API v1.3).
# Not executed in this article. Replace the placeholders; do not embed a real API key.
import time
from twelvelabs import TwelveLabs
client = TwelveLabs(api_key="<YOUR_API_KEY>")
index = client.indexes.create(
index_name="<YOUR_INDEX_NAME>",
models=[{"model_name": "marengo3.0", "model_options": ["visual", "audio"]}],
)
if not index.id:
raise RuntimeError("Failed to create an index.")
asset = client.assets.create(
method="url",
url="<YOUR_VIDEO_URL>", # Direct raw media URL, not a sharing page
)
while True:
asset = client.assets.retrieve(asset.id)
if asset.status == "ready":
break
if asset.status == "failed":
raise RuntimeError(f"Asset processing failed: id={asset.id}")
time.sleep(5)
indexed_asset = client.indexes.indexed_assets.create(
index_id=index.id,
asset_id=asset.id,
)
while True:
indexed_asset = client.indexes.indexed_assets.retrieve(index.id, indexed_asset.id)
if indexed_asset.status == "ready":
break
elif indexed_asset.status == "failed":
raise RuntimeError("Indexing failed")
time.sleep(5)
search_results = client.search.query(
index_id=index.id,
query_text="<YOUR_QUERY>",
search_options=["visual", "audio"],
)
for i, clip in enumerate(search_results):
print(i + 1, clip.video_id, clip.rank, clip.start, clip.end)
The official Node.js SDK example follows the same steps with apiKey, indexName, modelName, and searchOptions.
What to check in the request and the response
The search API (POST https://api.twelvelabs.io/v1.3/search) is more precise than the quickstart’s defaults. Official fields that matter for validation:
index_idis required. Searching the wrong index is a silent miss, not a platform failure.query_textis required for text queries. The platform is documented as supporting full natural-language search.search_optionsis required. Documented values includevisual,audio(non-speech audio), andtranscription(spoken words). You may send more than one option and combine them withoperator:or(default) orand.- When
transcriptionis included,transcription_optionscan belexical(exact words),semantic(meaning), or both (the documented default is both). group_bycan beclip(default, ungrouped clips) orvideo(clips grouped by video).page_limitcaps items per page (videos per page when grouping by video). The documented maximum is 50.filteraccepts a stringified JSON object for system or user metadata (for example a video id or duration range).
A useful check after a successful call, still from the official result shape: each clip includes a video identifier, a rank (1 is most relevant), and a start and end time in seconds. If you need to open the moment in a player, those timestamps are the contract. This article does not claim a threshold at which a rank is “good enough.”
Before you search, confirm both status polls returned ready. Searching while an asset is still processing is not the happy path the quickstart describes. If you supply a hosting-platform URL instead of a direct file, expect the upload to fail for the reason the docs already give.
Plans, units, and a dated pricing change
Pricing, rechecked on 1 December 2026, lists monthly plans of Free at $0, Plus at $29, Pro at $99, and Enterprise as custom, with included cumulative storage of 3 GB, 50 GB, and 200 GB on Free, Plus, and Pro. Annual billing is advertised with a 17% discount. Each plan includes Managed Intelligence (storage, processing, API access) and a separate monthly Workload allowance. Using less storage does not increase Workload.
Officially, Jockey Search is included in Managed Intelligence for assets indexed into a Knowledge Store. Marengo Search counts toward the Workload allowance. Analyze, Segment, Embed, Marengo Search, and Jockey Responses are the listed workload types. Without overage, new workload requests and new uploads are blocked when their allowances are exhausted. Free and Plus do not support overage. On Pro, overage is off by default, can be enabled in the Dashboard, and is billed at the end of the cycle at list prices.
List prices confirmed on that page include Managed Intelligence overage at $0.065 per GB per month of stored ready assets; Jockey Responses at $2 per 1M tokens; Analyze input on Pegasus 1.6 at $1.75 per hour of video and $3 per 1M tokens for images; and Index Search (POST /search) on Marengo 3.0 at $4 per 1,000 queries. Other workload rows were not fully extracted in the fetch used for this article and are not invented here.
Existing customers are on a dated move: accounts begin moving to the new pricing automatically on 4 January 2027. Paid Jockey Plus or Pro subscriptions cannot switch early and move on the next billing date on or after that day. Others may switch earlier, or be moved to the new Free plan if they do not choose. Assets uploaded before a switch can be “protected” from the new storage allowance, with limits on re-indexing until that protection is removed. If you are on legacy billing, do not assume the $29 / $99 table already applies. A rate-limits page splits new billing from legacy billing, but the numeric tables were not extracted first-hand, so request-per-minute figures are not verified here.
Data use, training, and what you may upload
For most self-serve customers, the Terms of Use (last updated 25 August 2026) apply; an Enterprise Order Form is governed by a separate Enterprise Terms of Service. This is not legal advice. Three operational points from the Terms of Use:
- You grant Twelve Labs a license to use Customer Data — including videos you upload and Output — to provide, maintain, enhance, train, and improve the services, including training, re-training, and fine-tuning, unless you opt out of training through your account settings. If training use is a problem for your footage, look for that setting before you upload, and confirm it with Twelve Labs if the control is unclear.
- You must have the rights and consents needed for processing. The Terms prohibit uploading material you do not have the lawful right to send, and they list categories you must not post, including certain sensitive and government-regulated data. Do not index someone else’s YouTube library or unlicensed film.
- Subject to compliance with the Terms, Twelve Labs assigns you its rights in Output, while warning that Output may be inaccurate, may lack copyright protection, and may not be unique.
Enterprise terms, a DPA, and an acceptable-use page exist for those contracts. Read the agreement that binds your account. Enterprise terms describe a path to request deletion of Customer Data within 60 days after termination; do not assume the same steps from the enterprise form if you are on the self-serve Terms of Use.
A short validation list, without a test run
- The index was created with
marengo3.0, not an embeddings-only model and not a Pegasus analysis model. - The asset URL was a direct file, or the local file was within the documented size cap.
- Asset status and indexed-asset status both reached
readybeforesearch.query. - The response you handle includes
video_id(orvideoId),rank,start, andend. - The clip times are checked in a player you control, on media you own or are licensed to use.
- Workload versus storage allowances, and whether Marengo Search is drawing down Workload, are visible on the plan you actually have.
What this article did not verify
No index was created and no clip was retrieved. Rate-limit numbers, complete list-price rows beyond those quoted, and the in-app location of the training opt-out were not verified in a logged-in account. Nothing here is a commercial-use legal opinion or a retrieval-quality benchmark.