Files
Last updated
Was this helpful?
Last updated
Was this helpful?
"Files" are used to upload documents that can be used with features like "Fine-tuning", and "Inference Batch API". You need to first create the file object using "/v1/files" and get the presigned upload url. Then upload the file through presigned url.
Fine-tuning
512 MB
.jsonl
Inference Batch API
100 MB
.jsonl
The file upload API returns a presigned upload URL, and the file needs to be uploaded using this presigned URL. The presigned URL is valid for 2 hours.
In this step, you create a file object, which initializes the upload process by providing essential metadata like the file name and type. The "purpose" parameter can be set to either "fine-tune" or "batch".
Example Request:
Example Response:
Example Request:
Example Response: