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 sync embeddings
      • Create async embeddings
    • 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
LogoLogo
Sample appsIntegrationsDiscordPlaygroundDevEx repo
On this page
  • Choose a method
Python SDK

Create embeddings v2

Use the Embed API v2 to create embeddings for text, images, audio, and video content. Embeddings are vector representations that enable semantic search and content understanding.

Choose a method

  • For text, images, or audio/video under 10 minutes use the embed.v_2.create method. This method returns embeddings immediately in the response.
  • For audio and video up to 4 hours, use the embed.v_2.tasks.create method. This method creates embeddings asynchronously
Was this page helpful?
Previous

Create sync embeddings

Next
Built with