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