File object

This File object represents documents that have been uploaded to OpenAI.

id

string

File identifier, which can be referenced in API endpoints

bytes

integer

File Size (bytes)

created_at

integer

Unix timestamp at file creation (seconds)

filename

string

filename

url

string

file path

object

string

Object type, always file

purpose

string

Intended use of the document. Supported values are fine-tune, fine-tune-results, assistants, and assistants_output

status

string

Obsolete. The current status of the file can be uploaded, processed, or error.

status_details

string

Obsolete. For more information about tuning training file validation failures, see error field in fine_tuning.job

{
  "id": "file-BK7bzQj3FfZFXr7DbL6xJwfo",
  "object": "file",
  "bytes": 120000,
  "created_at": 1677610602,
  "filename": "salesOverview.pdf",
  "url": "https://xxxxx.com/file/cdn/0HtSV.pdf",
  "purpose": "assistants"
}

Last updated