Create Openai Batch
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The ID of an uploaded file that contains requests for the new batch.
The endpoint to be used for all requests in the batch. Currently /v1/chat/completions, /v1/completions, /v1/embeddings are supported.
/v1/chat/completions, /v1/completions, /v1/embeddings The time frame within which the batch should be processed. Currently only 24h is supported.
"24h"Optional metadata to be stored with the batch.
The expiration policy for the output and/or error file generated for the batch.
Response
Successful Response
The batch ID.
The API endpoint used for the batch.
The ID of the input file for the batch.
The time frame within which the batch should be processed.
The current status of the batch.
The Unix timestamp of when the batch was created.
The Unix timestamp of when the batch will expire.
The object type, which is always batch.
"batch"Errors that occurred during the batch.
The ID of the output file.
The ID of the error file.
The Unix timestamp of when the batch started processing.
The Unix timestamp of when the batch started finalizing.
The Unix timestamp of when the batch completed.
The Unix timestamp of when the batch failed.
The Unix timestamp of when the batch expired.
The Unix timestamp of when the batch started cancelling.
The Unix timestamp of when the batch was cancelled.
Request counts for the batch.
Metadata associated with the batch.
The model used for the batch.
Token usage accumulated for the batch.