Skip to main content
GET
/
v1
/
files
/
{fileId}
/
content
Download file contents
curl --request GET \
  --url https://api.infery.ai/v1/files/{fileId}/content \
  --header 'Authorization: <api-key>'
"<string>"
curl https://api.infery.ai/v1/files/file_abc123.../content \
  -H "Authorization: Bearer $INFERY_API_KEY" \
  --output report.pdf
Streams directly from GCS — no buffering, safe for large files. Served through our signed proxy so GCS URLs never leak to the client.

Authorizations

Authorization
string
header
required

API key in format: Bearer inf_***

Path Parameters

fileId
string
required

Response

Raw file bytes. Content-Type and Content-Disposition reflect the stored metadata.

The response is of type file.