twelvelabs-video-understanding
Use when an agent must make TwelveLabs do real video-understanding work: indexing footage, semantic/visual search across an archive, generating descriptions…
by calesthio★ 262 GitHub stars
Install twelvelabs-video-understanding in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
TwelveLabs video understanding
TwelveLabs builds video foundation models that read footage the way a human editor does — across visuals, on-screen text, motion, sound, speech, and music — and expose that understanding through a REST API, SDKs (Python, Node), an MCP server, and NLE plugins. This skill is for driving that platform to log, search, describe, segment, and tag video for production work. It is not a video generator; TwelveLabs does not synthesize or edit pixels.
All volatile facts below carry a verification date. Everything moves fast here — re-verify model names, limits, and pricing against docs.twelvelabs.io before quoting them to a user as current.
When this skill applies
Reach for TwelveLabs when the job is any of:
- Archive / footage search — "find every shot where the CEO is on stage," "clips with a red car at night," "where does someone say 'quarterly earnings'." Natural-language, image, or combined queries against indexed video.
- Logging & tagging — auto-generate loggable metadata (who/what/where/action) for raw footage or dailies.
- Segmentation — chapters, scene breaks, highlights, speaker changes, sports plays, ad-break points.
- Video-to-text — summaries, descriptions, captions, Q&A over a clip, structured JSON extraction (e.g. shot lists, compliance flags).
- Embeddings — multimodal vectors for a custom recommender, dedup, similarity, or a RAG-over-video store.
- Compliance / brand-safety review — locate logos, on-screen text, spoken phrases, or sensitive content across a library.
Do not use it to create video, apply visual effects, transcode, or as a general speech-to-text tool (it does speech understanding for search/analysis, but a dedicated ASR is cheaper if plain transcripts are all you need).
The two model families
[Documented — docs.twelvelabs.io/docs/concepts/models, verified 2026-07-10]
TwelveLabs is not one model. Pick by task:
| Marengo | Pegasus | |
|---|---|---|
| Purpose | Search + embeddings (retrieval) | Analysis + text generation |
| Output | Ranked video segments; vectors | Natural-language / structured text |
| Current version | Marengo 3.0 (GA Nov 2025) | Pegasus 1.5 (Apr 2026); 1.2 still available |
| You call it via | /search, /embed |
/analyze |
| Modalities read | visual, audio, on-screen text/OCR, logos, speech, music | visual, audio, speech, on-screen text |
Rule of thumb: if the answer is "which moments/videos?" → Marengo (search). If the answer is "tell me / describe / summarize / extract" → Pegasus (analyze). Embeddings for your own vector DB → Marengo (embed). An index can enable one or both; enable only what you'll use, because each model you enable is billed at index time.
Marengo 3.0 facts [Documented, verified 2026-07-10]
- Unifies video, image, audio, and text into one representation space; 512-dimensional embeddings.
- Fine-grained: detects brand logos, small objects, on-screen text, shot techniques, and can count objects.
- Video input: 4 seconds to 4 hours, ≤ 4 GB, resolution 360×360 to 5184×2160, aspect ratio between 1:1 and 1:2.4 (either orientation), any FFmpeg-decodable container.
- 36 languages plus English for speech/search.
- Text query / text embedding input: up to 500 tokens (raised from 77).
- Marengo 2.7 was sunset on 2026-03-30 — indexes built only on 2.7 can no longer be searched or have embeddings retrieved. If you inherit an old index, check its model version first.
Pegasus 1.5 facts [Documented, verified 2026-07-10]
- Video-to-text over multiple modalities. Introduced (vs 1.2): structured video segmentation, multimodal prompts with up to 4 reference images, per-clip time ranges (
start_time/end_time), and a much larger context window. - Context window: 261,120 tokens shared across input + output. Max response: 98,304 tokens (raised from 65,536 on 2026-05-28). Default response 4,096 tokens, set via
max_tokens. - Video input: 4 seconds to 2 hours, ≤ 2 GB (note: tighter than Marengo). The synchronous
/analyzeendpoint accepts clips up to 1 hour; longer content uses the async analyze task. - Direct video URLs only — no YouTube or cloud-share links.
- Pegasus 1.2 remains for general analysis; it has smaller token limits (≈2,000-token prompt, ≤4,096 response) and cheaper input pricing. Use 1.5 for segmentation, reference images, or long structured output; 1.2 to save cost on short simple prompts.
The API in practice
[Documented — base https://api.twelvelabs.io, version v1.3, verified 2026-07-10]
Everything hangs off an index. An index is a collection of videos configured with the model(s) that will process them.
Core object flow
Index ──► Asset / video upload ──► Indexing task (async) ──► ready video
│
┌──────────────────────────────
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- EVAL.md
FAQ
What does the twelvelabs-video-understanding skill do?
Use when an agent must make TwelveLabs do real video-understanding work: indexing footage, semantic/visual search across an archive, generating descriptions, summaries, chapters, highlights, and tags from video, producing multimodal embeddings, or wiring TwelveLabs into a media-production pipeline (NLE panels, logging, compliance review, metadata). Covers the current model families (Marengo for search/embeddings, Pegasus for video-to-text analysis), the v1.3 Video Understanding API (indexes, assets, tasks, search, analyze, embed), prompt construction for analysis, capability and format limits, pricing/quota math, output quality review (hallucination and timestamp accuracy), and privacy/rights obligations when footage shows real people. Not for generating or editing video pixels — this is analysis and retrieval.
How do I install the twelvelabs-video-understanding skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the twelvelabs-video-understanding skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…