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
      • Sync analysis
      • Async analysis
  • 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
LogoLogo
Sample appsIntegrationsDiscordPlaygroundDevEx repo
On this page
  • Choose a method
Python SDK

Analyze and segment videos

Was this page helpful?
Previous

Sync analysis

Next
Built with

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

Related quickstart notebook

Choose a method

  • For videos under 1 hour, use the analyze or analyze_stream method. These methods return results immediately in the response.
  • For videos up to 2 hours, or for video segmentation, use the analyze_async.tasks.create method. This method processes videos asynchronously.