Logo
Artificial Intelligence API Documentation

Upload files

POST {{baseUrl}}/files

Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.openai.com/v1/files' -F '{"name"=>"file", "value"=>nil, "datatype"=>"null"}=' -F '{"name"=>"purpose", "value"=>"search", "datatype"=>"string"}='

ENDPOINTS