API reference
Batches
5 operations. Each page has the request, the response, the errors and examples in curl, TypeScript, Python and the CLI.
- GETList batches in the project, newest first
/v1/batches - POSTCreate a batch from an uploaded file of requests (validated and run asynchronously)
/v1/batches - GETGet a batch: status, request counts, stage times, cost so far
/v1/batches/{batch_id} - GETList the lines of a batch in input order: status, error, tokens and cost
/v1/batches/{batch_id}/lines - POSTCancel a batch (requests in flight may finish; completed ones are kept and charged)
/v1/batches/{batch_id}/cancel