API ReferenceFilesCopy MarkdownRetrieve file contentfiles.content(file_id) -> StringIOGET/files/{file_id}/contentReturns a response containing the contents of the specified file. Retrieve file contentSDK languageRubyrequire "openai" openai = OpenAI::Client.new(api_key: "My API Key") response = openai.files.content("file_id") puts(response)ParametersExpand Collapse file_id: StringReturnsExpand Collapse StringIOReturns Examples