Python (SDK)
Files
Upload file
Upload a file that can be used with Assistants, Vector Stores, and other features. Files are uploaded to S3 for durable storage.
POST
Python (SDK)
Documentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Body
multipart/form-data
Response
200 - application/json
OK
The file identifier
The size of the file in bytes
Required range:
-9007199254740991 <= x <= 9007199254740991Unix timestamp when the file was created
Required range:
-9007199254740991 <= x <= 9007199254740991The name of the file
The intended purpose of the file
Available options:
assistants, batch, fine-tune, vision, user_data, evals Unix timestamp when the file expires
Required range:
-9007199254740991 <= x <= 9007199254740991DEPRECATED: File processing status
Available options:
uploaded, processed, error DEPRECATED: Details about file status