Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Retrieve file content

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

Returns a response containing 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