Uploads a file for use by other operations.
post/files
Response
A representation of the uploaded file.
object'file' required
The object type, which is always 'file'.
idstring required
The identifier, which can be referenced in API endpoints.
bytesinteger required
The size of the file, in bytes.
filenamestring required
The name of the file.
created_atinteger required
The Unix timestamp, in seconds, representing when this object was created.
purpose'fine-tune' | 'fine-tune-results' | 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'vision' required
The possible values denoting the intended usage of a file.
status'uploaded' | 'pending' | 'running' | 'processed' | 'error' | 'deleting' | 'deleted'
The state of the file.
status_detailsstring
The error message with details in case processing of this file failed. This field is available in Azure OpenAI only.