API ReferenceCopy MarkdownFilesFiles are used to upload documents that can be used with features like Assistants and Fine-tuning. Retrieve file content$ openai files contentGET/files/{file_id}/contentUpload file$ openai files createPOST/filesDelete file$ openai files deleteDELETE/files/{file_id}List files$ openai files listGET/filesRetrieve file$ openai files retrieveGET/files/{file_id}ModelsExpand Collapse file_deleted: object { id, deleted, object } View schema detailsfile_object: object { id, bytes, created_at, 6 more } The File object represents a document that has been uploaded to OpenAI. View schema detailsfile_purpose: "assistants" or "batch" or "fine-tune" or 3 moreThe intended purpose of the uploaded file. One of: assistants: Used in the Assistants API batch: Used in the Batch API fine-tune: Used for fine-tuning vision: Images used for vision fine-tuning user_data: Flexible file type for any purpose evals: Used for eval data sets View schema details