POST
/
files
Upload file
curl --request POST \
  --url https://vaeroapi.com/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form purpose=fine-tune \
  --form file=@example-file
{
  "id": "file-abc123",
  "object": "file",
  "bytes": 120000,
  "created_at": 1677610602,
  "filename": "mydata.txt",
  "purpose": "fine-tune"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

The file object (not file name) to be uploaded.

purpose
string
required

The intended purpose of the uploaded file, must be 'fine-tune'.

Example:

"fine-tune"

Response

200 - application/json

Successful file upload. Returns the uploaded file object.

id
string

Auto-assigned UUID file identifier.

Example:

"file-abc123"

object
string

Object type, which will always be 'file'.

Example:

"file"

bytes
integer

Size of the uploaded file in bytes.

Example:

120000

created_at
integer

Unix timestamp for when the file was created.

Example:

1677610602

filename
string

The name of the uploaded file.

Example:

"mydata.txt"

purpose
string

The purpose of the uploaded file, must be 'fine-tune'.

Example:

"fine-tune"