v3
latestOpenAPI 3.1.02026-07-3197486526.1 KBanalyzeAsync > tasks
Create an async analysis task
This method asynchronously analyzes your videos. It supports two analysis modes: general analysis (prompt-based text generation) and video segmentation with custom segment definitions. Video segmentation requires Pegasus 1.5.
<Accordion title="Input requirements"> - Minimum duration: 4 seconds - Maximum duration: 2 hours - Formats: [FFmpeg supported formats](https://ffmpeg.org/ffmpeg-formats.html) - Resolution: 360x360 to 5184x2160 pixels - Aspect ratio: Between 1:1 and 1:2.4, or between 2.4:1 and 1:1. </Accordion>When to use this method:
- Generate custom text from your video using a prompt (general analysis)
- Extract timestamped metadata with custom segment definitions from your video (Pegasus 1.5 only)
- Analyze videos longer than 1 hour
- Process videos asynchronously without blocking your application
Do not use this method for:
- Videos for which you need immediate results or real-time streaming. Use the POST method of the /analyze endpoint instead.
Analyzing videos asynchronously requires three steps:
- Create an analysis task using this method. The platform returns a task ID.
- Poll the status of the task using the GET method of the /analyze/tasks/{task_id} endpoint. Wait until the status is ready.
- Retrieve the results from the response when the status is ready 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>post/analyze/tasks
Headers
x-api-keystring required
Your API key.
<Note title="Note"> You can find your API key on the <a href="https://playground.twelvelabs.io/dashboard/api-keys" target="_blank">API Keys</a> page. </Note>Request body
Response
Analysis task created successfully.