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.
When to use this method:
- Run the same 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.
Headers
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.
Changes
Changed in 1 of the 9 revisions of this API.1518
- ▲
the
defaults/prompt/input_textrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
defaults/prompt/media_sources/items/namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
defaults/response_format/segment_definitions/items/descriptionrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
defaults/response_format/segment_definitions/items/fields/items/descriptionrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
defaults/response_format/segment_definitions/items/fields/items/namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
defaults/response_format/segment_definitions/items/idrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
defaults/response_format/segment_definitions/items/media_sources/items/namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/prompt/input_textrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/prompt/media_sources/items/namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/response_format/segment_definitions/items/descriptionrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/response_format/segment_definitions/items/fields/items/descriptionrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/response_format/segment_definitions/items/fields/items/namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/response_format/segment_definitions/items/idrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
requests/items/response_format/segment_definitions/items/media_sources/items/namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
added the pattern
^[a-zA-Z0-9_-]{1,64}$to the request propertyrequests/items/custom_idrequest-property-pattern-added
- ●
the
defaults/prompt/media_sources/items/namerequest property's maxLength was set to50request-property-max-length-set
- ●
the
defaults/response_format/segment_definitions/items/fields/items/enum/items/request property's maxLength was set to100request-property-max-length-set
- ●
the
defaults/response_format/segment_definitions/items/fields/items/namerequest property's maxLength was set to50request-property-max-length-set
- ●
the
defaults/response_format/segment_definitions/items/idrequest property's maxLength was set to100request-property-max-length-set
- ●
the
defaults/response_format/segment_definitions/items/media_sources/items/namerequest property's maxLength was set to50request-property-max-length-set
- ●
the
requests/items/prompt/media_sources/items/namerequest property's maxLength was set to50request-property-max-length-set
- ●
the
requests/items/response_format/segment_definitions/items/fields/items/enum/items/request property's maxLength was set to100request-property-max-length-set
- ●
the
requests/items/response_format/segment_definitions/items/fields/items/namerequest property's maxLength was set to50request-property-max-length-set
- ●
the
requests/items/response_format/segment_definitions/items/idrequest property's maxLength was set to100request-property-max-length-set
- ●
the
requests/items/response_format/segment_definitions/items/media_sources/items/namerequest property's maxLength was set to50request-property-max-length-set
- ●
the
defaults/max_tokensrequest property's max was set to98304.00request-property-max-set
- ●
the
requests/items/max_tokensrequest property's max was set to98304.00request-property-max-set
- ●
the
defaults/max_segment_durationrequest property's min was set to2.00request-property-min-set
- ●
the
defaults/max_tokensrequest property's min was set to512.00request-property-min-set
- ●
the
defaults/min_segment_durationrequest property's min was set to2.00request-property-min-set
- ●
the
requests/items/max_segment_durationrequest property's min was set to2.00request-property-min-set
- ●
the
requests/items/max_tokensrequest property's min was set to512.00request-property-min-set
- ●
the
requests/items/min_segment_durationrequest property's min was set to2.00request-property-min-set
- ▲