Files

Retrieve file content

Changed on

Returns a response containing the contents of the specified file.

get/files/{file_id}/content

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/files/{file_id}/content
  • Auth
    HTTP bearer

Path parameters

file_idstring required

The ID of the file to use for this request.

Response

OK

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • info

      added the media type application/octet-stream for the response with the status