The file object

The File object represents a document that has been uploaded to OpenAI.source

The file identifier, which can be referenced in the API endpoints.source

The size of the file, in bytes.source

The Unix timestamp (in seconds) for when the file was created.source

The name of the file.source

The object type, which is always file.source

The intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results and vision.source

Deprecated. The current status of the file, which can be either uploaded, processed, or error.source

Deprecated. For details on why a fine-tuning training file failed validation, see the error field on fine_tuning.job.source

OBJECT The file object
1
2
3
4
5
6
7
8
{
  "id": "file-abc123",
  "object": "file",
  "bytes": 120000,
  "created_at": 1677610602,
  "filename": "salesOverview.pdf",
  "purpose": "assistants",
}