Files
Upload file
Upload a file that can be used across various endpoints. Files must be text only.
POST
/
files
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multipart/form-data
file
file
requiredThe file object (not file name) to be uploaded.
purpose
string
requiredThe intended purpose of the uploaded file, must be 'fine-tune'.
Response
200 - application/json
id
string
Auto-assigned UUID file identifier.
object
string
Object type, which will always be 'file'.
bytes
integer
Size of the uploaded file in bytes.
created_at
integer
Unix timestamp for when the file was created.
filename
string
The name of the uploaded file.
purpose
string
The purpose of the uploaded file, must be 'fine-tune'.