Files

Upload a file that can be used across various endpoints. The Batch API only supports `.jsonl` files up to 100 MB in size. The input also has a specific required [format](/docs/batch). Please contact us if you need to increase these storage limits.

post/openai/v1/files

Response

OK

bytesinteger

The size of the file, in bytes.

created_atinteger

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

filenamestring

The name of the file.

idstring

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

object'file'

The object type, which is always file.

purpose'batch' | 'batch_output'

The intended purpose of the file. Supported values are batch, and batch_output.

Changes