The upload object

The Upload object can accept byte chunks in the form of Parts.source

The Upload unique identifier, which can be referenced in API endpoints.source

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

The name of the file to be uploaded.source

The intended number of bytes to be uploaded.source

The intended purpose of the file. Please refer here for acceptable values.source

The status of the Upload.source

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

The object type, which is always "upload".source

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

OBJECT The upload object
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "id": "upload_abc123",
  "object": "upload",
  "bytes": 2147483648,
  "created_at": 1719184911,
  "filename": "training_examples.jsonl",
  "purpose": "fine-tune",
  "status": "completed",
  "expires_at": 1719127296,
  "file": {
    "id": "file-xyz321",
    "object": "file",
    "bytes": 2147483648,
    "created_at": 1719186911,
    "filename": "training_examples.jsonl",
    "purpose": "fine-tune",
  }
}