Create a batch
Authentication
Request
The analysis approach for every item in this batch.
general: Generate text from each video based on the prompt (the item’spromptfield if set, otherwisedefaults.prompt). Supports structured JSON output by usingjson_schemain theresponse_format.typefield.time_based_metadata: Extract timestamped metadata by usingsegment_definitionsin theresponse_format.typefield.
Batches with mixed modes are not supported.
Default values applied to every item that does not override them. Every field is optional. Items in the requests array override these values. To override the prompt or response_format field, provide the full object on the item. You cannot change only some of its nested fields.
Response
The status of a batch. For the meaning of each value, see the Batch statuses section on the The batch object page.
The date and time, in the RFC 3339 format, when the batch expires (the created_at field value plus 24 hours). Unfinished items at expiration are canceled. Items that finished before then remain retrievable for 30 days after creation, when the batch and its results are deleted.