Upload a file
Upload File
Accepts a single file via multipart upload alongside a purpose field that
declares how the file will be used. Subject to per-file and per-organization
storage limits.
POST
Upload a file
Upload a file as
Need higher limits? Contact us.
Rate limit: 60 requests/min.
multipart/form-data (file + purpose) to reference by id in later requests. Compatible with OpenAI’s Upload file endpoint.
The response returns the file’s id (e.g. file-abc123). See Working with files for how to reference it in a chat completion.
Limits
| Limit | Value |
|---|---|
| Maximum file size | 512 MiB |
| Total storage per organization | 100 GiB |
Authorizations
Bearer token authentication using your Perceptron API key
Body
multipart/form-data
Response
File uploaded.
File size in bytes.
Unix timestamp (seconds) when the file was created.
Original file name.
File ID, e.g. file-abc123.
Always "file".
File purpose.
Available options:
vision, user_data