v3
latestOpenAPI 3.1.02026-07-3197486526.1 KBanalyzeAsync > batches
Create a batch
Use this method to submit many video analysis requests in a single call. Each request creates an analysis task. The response contains one batch identifier and one task identifier per request. Use the batch identifier to check progress and retrieve results.
<Note title="Model requirement"> You must use Pegasus 1.5 for batch analysis. Set the `model_name` parameter to `pegasus1.5`. </Note>When to use this method:
- Run the same model and analysis settings across many videos.
- Track a single batch instead of many individual analysis tasks.
Do not use this method for:
- Single videos that require immediate results. Use the POST method of the /analyze endpoint instead.
- Background processing of a single video. Use the POST method of the /analyze/tasks endpoint instead.
Retention and retry:
- Batches expire 24 hours after creation. You can retrieve results for 30 days after creation.
- If processing does not finish for some items in time, resubmit them in a new batch.
Limits:
- Up to 1,000 requests per batch.
- Up to 2,000 total content hours per batch.
- Up to 5 active batches per account.
post/analyze/batches
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
The platform has created the batch and queued an analysis task for each request.