Upload a file that can be used with various endpoints
cURL
curl --request POST \ --url https://api.anyapi.ai/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form purpose=fine-tune \ --form file=@example-file
{ "id": "<string>", "object": "file", "bytes": 123, "created_at": 123, "filename": "<string>", "purpose": "<string>", "status": "uploaded", "status_details": "<string>" }
Bearer token authentication. Get your API key from the dashboard.
Successful response
The response is of type object.
object