Create an async analysis task
Changed onThis method analyzes a video or one or more images asynchronously. Each request must contain a video or one or more images, but not both.
The method supports two analysis modes:
- General analysis: Prompt-based text generation with a video or one or more images.
- Video segmentation: Timestamped metadata with custom segment definitions.
Images
- You can provide one to twenty images per request.
- Formats: JPEG, PNG, WebP, GIF, and BMP.
- Maximum size: 20 MB per image.
- Maximum pixel count: 16,777,216 pixels per image (width × height). </Accordion>
When to use this method:
- Generate custom text from your video or one or more images using a prompt (general analysis)
- Extract timestamped metadata with custom segment definitions from your video
- Analyze videos longer than 1 hour, or a portion of a video up to 4 hours long
- Process videos or images asynchronously without blocking your application
Do not use this method for:
- Videos or images for which you need immediate results or real-time streaming. Use the POST method of the /analyze endpoint instead.
Analyzing content asynchronously requires three steps:
- Create an analysis task using this method. The platform returns a task identifier.
- Poll the status of the task using the GET method of the /analyze/tasks/{task_id} endpoint. Wait until the status is ready, failed, or canceled.
- When the status is ready, retrieve the results using the GET method of the /analyze/tasks/{task_id} endpoint.
On the Free plan, you have a total of 600 minutes (10 hours) shared across indexing, analysis, and segmentation. For details, see the Video hours and video count limits section.
<Note title="Note"> This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page. </Note>Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/analyze/tasks
- Auth: API key in header x-api-key
Request body
Response
Analysis task created successfully.
Changes
- breaking
the
request property type changed fromintegerto no type - info
added the new optional request property
- info
added the new optional request property
////// - info
the request property
became optional - info
added the new
objectenum value to the request property////// - info
added the new
pegasus1.6enum value to the request property - info
added the new
time_arrayenum value to the request property///// - info
added
subschema #1to therequest propertyoneOflist
- breaking
- warning
added the new
canceledenum value to theresponse property for the response status
- warning