Upload file (validation)

POST {{baseUrl}}/files

Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"purpose", "value"=>"fine-tune", "datatype"=>"string"}]

RESPONSES

status: Created

{"id":"file_ilxk82ff822x2zxfalkxffkyzb","bytes":6575,"created_at":"2024-03-17T03:31:34.073359+00:00","filename":"fine-tuning-validation.jsonl"}