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
  • TwelveLabs API
    • Introduction
    • Authentication
  • API Reference
    • Manage indexes
    • Upload content
      • Direct uploads
      • Multipart uploads
      • Video indexing tasks
    • Index content
    • Manage videos
    • Manage entities
    • Any-to-video search
    • Create embeddings v2
    • Create embeddings v1
    • Analyze and segment videos
    • Error codes
LogoLogo
Sample appsIntegrationsDiscordPlaygroundDevEx repo
On this page
  • Direct uploads
  • Multipart uploads
  • Video indexing tasks
API Reference

Upload content

Was this page helpful?
Previous

Direct uploads

Next
Built with

Upload your videos, images, and audio files to the TwelveLabs platform. Uploading creates an asset that you can then use in different workflows.

Depending on your requirements, choose one of the methods below.

Direct uploads

Upload whole files in a single request.

Supported content: Video, audio, and images.

Use this method when:

  • You want to upload a file in a single request
  • You are uploading images (multipart uploads do not support images)
  • You are uploading a file from a URL (multipart uploads support only local files)
  • Your files are small enough that chunking adds no benefit

Upload limits:

  • Video and audio, local files: Up to 200 MB
  • Video and audio, public URLs: Up to 4 GB
  • Images: Up to 5 MB
Direct uploads

Multipart uploads

Upload files as multiple chunks processed in parallel.

Supported content: Video.

Use this method when:

  • You need to upload a larger local video file
  • You need automatic retry on failure
  • You need improved reliability, performance, or observability
  • You want to track upload progress
  • You want parallel chunk uploads for faster performance

Upload limits: Local video files up to 4 GB.

Multipart uploads

Video indexing tasks

This method will be deprecated in a future version. New implementations should use direct or multipart uploads followed by separate indexing.

Upload and index videos in one operation. This method bundles upload and indexing together.

Video indexing tasks