v45

latestOpenAPI 3.0.1raw.githubusercontent.com2026-06-2223106188.8 KB
Files

Returns information about a file.

get/openai/v1/files/{file_id}

Path parameters

file_idstring required

The file to retrieve

Response

OK

idstring

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

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.

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.