Skip to main content
POST
Upload file
Upload the batch input file so that it can be correctly referenced when creating a batch.

Request Headers

string
必須
Enum: application/json
string
必須
Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

file
必須
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.
All requests within a single batch JSONL file must target the same model. Do not mix requests for different models in one batch.
Here is an example of an input file containing two requests:
string
必須
The purpose of the uploaded file. For batch processing, this should be set to batch.Enum: batch

Response

string
必須
The unique identifier of the uploaded file.
string
必須
The object type, which is always file.
integer
必須
The size of the uploaded file in bytes.
integer
必須
The Unix timestamp (in seconds) when the file was created.
string
必須
The name of the uploaded file.
string
必須
The purpose of the uploaded file.
object
Additional metadata about the uploaded file.
最終更新日 2026年5月15日