Batch
Upload file
Upload a .jsonl batch input file with purpose set to batch, where each line is a request with a unique custom_id; all requests must use the same model.
POST
Upload file
Upload the batch input file so that it can be correctly referenced when creating a batch.
Request Headers
Request Body
The batch input file to be uploaded should be in
.jsonl format, with each line detailing an API inference request.Each request must have a unique custom_id to identify inference results in the output file after batch processing. The parameters within the body field of each line are used as the actual inference request parameters for the endpoint.Here is an example of an input file containing two requests:The purpose of the uploaded file. For batch processing, this should be set to
batch.Enum: batchResponse
Last modified on November 5, 2026
Upload file