Skip to content
Primary navigation

Retrieve file content

$ openai files content
GET/files/{file_id}/content

Returns the contents of the specified file.

ParametersExpand Collapse
--file-id: string

The ID of the file to use for this request.

ReturnsExpand Collapse
unnamed_schema_0: file path

Retrieve file content

openai files content \
  --api-key 'My API Key' \
  --file-id file_id
Returns Examples