---
title: "Download the contents of a file as a stream of raw bytes. The response
`Content-Type` is `application/octet-stream`. Use this for the binary
payload; use `GET /v1/files/{file_id}` for metadata only."
method: GET
path: "/v1/files/{file_id}/content"
tags: ["v1"]
---

# Download the contents of a file as a stream of raw bytes. The response
`Content-Type` is `application/octet-stream`. Use this for the binary
payload; use `GET /v1/files/{file_id}` for metadata only.

`GET /v1/files/{file_id}/content`

## Path parameters

- `file_id` string, required

## Query parameters

- `format` 'original' | 'text' — Format of the downloaded file content.

## Response `200`

Success -- raw file bytes streamed in chunks.

## Other responses

- `404` — File not found, deleted, or expired.

---

[API](https://skmtc.net/x/apis/xai-s-rest-api.md) · [All operations](https://skmtc.net/x/apis/xai-s-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/x/xai-s-rest-api/versions/8f6014272113/schema)
