files
Upload files once and name them by file_id in requests.
List files
Your files, newest first by default. Page with `after` set to the previous page's `last_id`.
Upload a file
Upload a file as `multipart/form-data`, then name it by `file_id` in a request. `user_data` takes PDF, text, Markdown, CSV, JSON and images, up to 50 MB; `vision` takes images, up to 50 MB; `batch` takes a `.jsonl` file up to 200 MB. Files are visible only to the user who uploaded them.
Delete a file
Hard delete: the bytes and the metadata are both gone. A request that names it afterwards gets a 404.
Retrieve a file
The file's metadata. Download its bytes from `/v1/files/{file_id}/content`.
Download a file's content
The file's bytes, with its original type and name. A batch's output file is held while its organization owes for the batch's usage.