Request Headers
Enum:
application/json
Bearer authentication format, for example: Bearer {{API Key}}.
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: batch
Response
The unique identifier of the uploaded file.
The object type, which is always
file
.The size of the uploaded file in bytes.
The Unix timestamp (in seconds) when the file was created.
The name of the uploaded file.
The purpose of the uploaded file.
Additional metadata about the uploaded file.