Containers

Download container file content

Streams the raw bytes of a file in a container.

get/containers/{container_id}/files/{file_id}/content

Request

  • Base URL: https://openrouter.ai/api/v1
  • URL: https://openrouter.ai/api/v1/containers/{container_id}/files/{file_id}/content
  • Auth: HTTP bearer

Path parameters

container_idstring required

The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own -r<nonce>-suffixed id. A session-derived id is always sess_ + the sanitized session key, which is not necessarily the raw session id that was sent.

Example:sess_abc123
file_idstring required

Container file id (cfile_ + base64url of the file path).

Example:cfile_b3V0L3JlcG9ydC5jc3Y

Response

The raw file content.

Changes

No recorded changes to this operation across all 375 revisions of this API.