For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sample appsIntegrationsDiscordPlaygroundDevEx repo
GuidesSDK ReferenceAPI Reference
GuidesSDK ReferenceAPI Reference
  • Python SDK
    • The TwelveLabs class
    • Manage indexes
    • Upload content
    • Index content
    • Manage videos
    • Manage entities
    • Search
    • Create embeddings v2
    • Create embeddings v1
    • Analyze and segment videos
  • Node.js SDK
    • The TwelveLabs class
    • Manage indexes
    • Upload content
    • Index content
    • Manage videos
    • Manage entities
    • Search
    • Create embeddings v2
    • Create embeddings v1
    • Analyze and segment videos
      • Sync analysis
      • Async analysis
LogoLogo
Sample appsIntegrationsDiscordPlaygroundDevEx repo
On this page
  • Choose a method
Node.js SDK

Analyze and segment videos

The TwelveLabs Node.js SDK provides methods to analyze videos, generate text based on their content, and extract structured, timestamped segments.

Choose a method

  • For videos under 1 hour, use the analyze or analyzeStream method. These methods return results immediately in the response.
  • For videos up to 2 hours, or for video segmentation, use the analyzeAsync.tasks.create method. This method processes videos asynchronously.
Was this page helpful?
Previous

Sync analysis

Next
Built with