Cancel a batch
Cancel an in-progress batch. Already completed requests in the batch are not affected.
Path parameters
batch_id
The unique identifier of the batch to cancel. Format: batch_xxxxx
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects an object.
Response
Batch cancellation initiated.
id
Batch ID.
status
Batch status.
input_file_id
output_file_id
Output file ID (available when completed).
error_file_id
Error file ID (if errors occurred).
endpoint
completion_window
created_at
completed_at
request_counts
metadata
Errors
401
Unauthorized Error
404
Not Found Error