After successfully uploading the input file , initiate a batch by using the ID of the uploaded file. Note that the completion window is set to a fixed duration of 48 hours and cannot be modified.
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
ID of the uploaded input file containing batch requests
The endpoint to use for batch processing. Available endpoints are /v1/chat/completions
and /v1/completions
. Set the endpoint
parameter to /v1/chat/completions
or /v1/completions
for OpenAI API compatibility.
Time window for batch completion. The completion window is fixed at 48h
and is currently non-adjustable.
Response
A unique identifier for the batch job.
The object type, which is always batch
.
The API endpoint that the batch job is using for processing requests.
The ID of the input file containing the batch requests.
The ID of the output file containing the batch results. Empty until the batch is completed.
The ID of the error file containing any errors that occurred during batch processing. Empty until errors occur.
The time window for batch completion. Currently fixed at 48h
.
The timestamp when the batch started processing. Null if not yet started.
The timestamp when the batch will expire. Null if not set.
The timestamp when the batch started finalizing. Null if not yet finalizing.
The timestamp when the batch was completed. Null if not yet completed.
The timestamp when the batch failed. Null if not failed.
The timestamp when the batch expired. Null if not expired.
The timestamp when the batch started cancelling. Null if not cancelling.
The timestamp when the batch was cancelled. Null if not cancelled.
The current status of the batch job. Available statuses:
VALIDATING
- The input file is being validated before the batch can begin
PROGRESS
- Batch is in progress
COMPLETED
- Batch processing completed successfully
FAILED
- Batch processing failed
EXPIRED
- Batch exceeded deadline
CANCELLING
- Batch is being cancelled
CANCELLED
- Batch was cancelled
Error messages if any errors occurred during batch processing.
The version number of the batch job.
The timestamp when the batch job was created.
The timestamp when the batch job was last updated. Null if never updated.
The unique identifier of the user who created the batch job.
The API key ID used to create the batch job.
Optional remark or note for the batch job.
The total number of requests in the batch.
The number of completed requests in the batch.
The number of failed requests in the batch.
Additional metadata associated with the batch job. Null if no metadata is provided.
Detailed request count information. The total number of requests in the batch.
The number of successfully completed requests.
The number of failed requests.