📦 Batch Official Documentation

â‹™ Create Batch

Creates and executes a batch from an uploaded file of requests.

msg.payload Properties

input_file_id string
The ID of an uploaded file that contains requests for the new batch.
endpoint string
The endpoint to be used for all requests in the batch. Currently only /v1/chat/completions is supported.
completion_window string
The time frame within which the batch should be processed. Currently only 24h is supported.
metadata string
Optional custom metadata for the batch.

â‹™ Retrieve Batch

Retrieves a batch.

msg.payload Properties

batch_id string
The ID of the batch to retrieve.

â‹™ Cancel Batch

Cancels an in-progress batch.

msg.payload Properties

batch_id string
The ID of the batch to cancel.

â‹™ List Batch

List your organization's batches.

msg.payload Properties

after string
A cursor for use in pagination. after is an object ID that defines your place in the list.
limit integer
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.