cURL
curl --request POST \ --url https://api.gravixlayer.com/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form purpose=assistants
Upload a file for use across various endpoints
API key authentication. Get your API key from the Gravix Layer Dashboard.
The file to upload
The intended purpose of the file
assistants
vision
batch
fine-tune
File uploaded successfully