Skip to main content
Reference for the objects returned by the Batch API.

The Batch object

Most batch endpoints return a Batch object describing a batch job.

Batch status

A batch moves through the following statuses:

errors

request_counts

The BatchUsage object

Token usage statistics aggregated across all requests in the batch.

Example

Batch object of a completed batch: