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 container file content

containers.files.content.retrieve(file_id, **kwargs) -> StringIO
GET/containers/{container_id}/files/{file_id}/content

Retrieve Container File Content

ParametersExpand Collapse
container_id: String
file_id: String
ReturnsExpand Collapse
StringIO

Retrieve container file content

require "openai"

openai = OpenAI::Client.new(api_key: "My API Key")

content = openai.containers.files.content.retrieve("file_id", container_id: "container_id")

puts(content)
<binary content of the file>
Returns Examples
<binary content of the file>