Skip to main content

Upload a file

POST 

/v1/files

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.

Request​

Responses​

The uploaded file.