POST
/
files
Create files
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>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

multipart/form-data

Response

200
application/json

Successful response

The response is of type object.