Skip to content
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>